I'm currently using wix to build a installer, here are some requirements that I've no idea how to do it.
(installer of the same build or new build, but the same version) user can click the installer to reinstall the software without the need to uninstall it first.
while installation there are some configuration in the UI process, and the result has been written to a file in the installation folder, can we load these parameters from the file while reinstalling the software?
I've tried the
- same product id;
- modify the Product Version from "1.0.0" to "1.0.1"
in the wxs, and I've added with the same upgrade code in the , added RemoveExistingProducts Before="InstallInitialize"
in Installation sequence, but I still get "wix another version of this product is already installed" Error.
Please help.
<Product Id='fixed-ID'
UpgradeCode='fixed-upgrade-ID'
Version='1.1.1' >
<Package InstallerVersion='300'/>
<Property Id="PREVIOUSVERSIONSINSTALLED" Secure="yes" />
<Upgrade Id="fixed-upgrade-ID">
<UpgradeVersion Property="PREVIOUSVERSIONSINSTALLED"
Minimum="0.0.0"
Maximum="1.1.1"
IncludeMaximum="no"
IncludeMinimum="yes"
OnlyDetect="no"
/>
</Upgrade>
<InstallExecuteSequence>
<RemoveExistingProducts Before="InstallInitialize" />
</InstallExecuteSequence>
</Product>