Apr 13, 2015 at 3:10 PM
Edited Apr 13, 2015 at 3:11 PM
First of all, great work! Wix# fulfills a dire need to be able to create MSI's relatively easily without the cost of an expensive license...
Here are my questions:
1) is it possible to pass the MSIEXEC command line parameters to the InstallFileAction parameters? I'm asking because I'm launching a custom executable which needs to know if it's an install or an uninstall, quiet mode or not, etc...
Related to that, I need to "plug" the /uninstall parameter when the app is uninstalled from Control Panel (i.e. when there is no explicit /uninstall parameter from a command line).
2) how do you implement an install/upgrade that will always work regardless of what may already be installed?
I tried this below, but that does not seem to work:
wix.Project.MajorUpgradeStrategy = new MajorUpgradeStrategy
UpgradeVersions = VersionRange.ThisAndOlder,
PreventDowngradingVersions = VersionRange.ThisAndNewer,
NewerProductInstalledErrorMessage = "Newer version already installed"
...namely the install will fail if the MSI is simply recompiled, and reapplied.