2012年9月6日 星期四

建立一個包含 VCREDIST_X86.EXE and Uninstall Setup project for Visual Studio 2008

1.建立一個Setup Project
image
1~2. under Project -> Properties... by clicking on the Pre-requisites button.
3.Select Visual C++ Runtime Libraries(x86)
image
When installing, it is important to choose the generated setup.exe file and not the .msi file. Setup.exe is a so-called bootstrapper that will - prior to executing the .msi - install all the pre-requisites.
參考
:http://stackoverflow.com/questions/3022739/how-to-install-vcredist-x86-exe-during-net-deployment-setup

建立UNINSTALL
1.add System Folder
image
2.Add file msiexec.exe
C:\Windows\System32\msiexec.exe
image
3.建立捷徑
image
4.Reman to “Uninstall Application” and set Arguments to /x{ProductName}
ex.  /x {DCB24E8B-D4FA-4D3F-B298-0EABA81EBD1B}
image