How to include prerequisites with msi/Setup.exe in WIX

I have removed the default setup.exe from Visual Studio and used the MSI file and dependencies from Visual Studio to create a WiX 3.6 Bootstrapper: <?xml version=”1.0″ encoding=”UTF-8″?> <Wix xmlns=”http://schemas.microsoft.com/wix/2006/wi” xmlns:bal=”http://schemas.microsoft.com/wix/BalExtension” xmlns:util=”http://schemas.microsoft.com/wix/UtilExtension”> <Bundle Name=”My Application” Version=”1.0″ IconSourceFile =”E:\logo.ico” Manufacturer=”My company” UpgradeCode=”4dcab09d-baba-4837-a913-1206e4c2e743″> <BootstrapperApplicationRef Id=”WixStandardBootstrapperApplication.RtfLicense”> <bal:WixStandardBootstrapperApplication LicenseFile=”E:\License.rtf” SuppressOptionsUI =”yes” LogoFile =”logo.ico” /> </BootstrapperApplicationRef> <Chain> <ExePackage SourceFile =”ReportViewer\ReportViewer.exe” … Read more

In WiX files, what does Name=”SourceDir” refer to?

From: https://robmensching.com/blog/posts/2010/1/26/stackoverflow-what-does-namesourcedir-refer-to/ Honestly, it’s something that we should have hidden from the developer but didn’t. Sorry. The truth of the matter is that the Windows Installer expects the Directory tree to always be rooted in a Directory row where the primary key (Directory/@Id) is “TARGETDIR” and the DefaultDir column (Directory/@Name) is “SourceDir”. During an install, … Read more

Failing condition wix

NOTE: The below has not been tested extensively – conditions are notorious for being difficult to get right. Testing conditions requires real-world testing. A few more links: Condition debugging WiX launch conditions Wix Tools update uses old custom actions (example of complex conditions) How to add a WiX custom action that happens only on uninstall … Read more

WIX merge c++ runtime

It seems Microsoft recommends you use one of the redist executables (vcredist_x86.exe, vcredist_x64.exe) instead of the merge modules (see towards bottom) these days since the 2015 versions of the runtimes are more complicated than before and the merge modules are basically insufficient: “There will not be a merge module for the Universal CRT“. UPDATE: How … Read more