Programmatically installing MSI packages

I find the Deployment Tools Foundation project mentioned above to be a solid way to do this from .NET. Having referenced Microsoft.Deployment.WindowsInstaller.dll, use code like this to install a package: Installer.SetInternalUI(InstallUIOptions.Silent); Installer.InstallProduct(msiFilename, “ACTION=INSTALL ALLUSERS=2 MSIINSTALLPERUSER=”); The documentation for the .NET wrapper is in a .chm file in the Windows Installer XML installation directory in Program … Read more

DIRCA_CHECKFX Return Value 3 – VS 2013 Deployment Project

Must be installed VS 2010 from which you can get the valid file “dpca.dll”. Close Visual Studio 2013 Copy file with replace dpca.dll from C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\Deployment to C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\VSI\bin. Open Project Rebuild

How to prevent “This program might not have installed correctly” messages on Vista

Include this section in the program’s manifest file: <compatibility xmlns=”urn:schemas-microsoft-com:compatibility.v1″> <application> <!–The ID below indicates application support for Windows Vista –> <supportedOS Id=”{e2011457-1546-43c5-a5fe-008deee3d3f0}”/> <!–The ID below indicates application support for Windows 7 –> <supportedOS Id=”{35138b9a-5d96-4fbd-8e2d-a2440225f93a}”/> <!–The ID below indicates application support for Windows 8 –> <supportedOS Id=”{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}”/> <!–The ID below indicates application support for Windows … Read more

Is there an alternative to GUID when using msiexec to uninstall an application?

First of all: it is normal that the product GUID changes for new versions of the application, though it is also possible to upgrade some applications without changing the product GUID (referred to as minor upgrades – as opposed to major upgrades that change the product GUID). What tends to remain stable between different releases … Read more