I have a product to which I am creating an upgrade to. Now I have updated the App code , and not the upgrade code to let it work as an upgrade.
I am not using MajorUpgrade tag in WIX xml as of now.
The following configuration uninstalls any previous configuration and installs the newer files to the directory, but it is installing only those files which has changed version number.
<Property Id="PREVIOUSVERSIONSINSTALLED" Secure="yes" />
<Upgrade Id="$(var.SleakSoft_UpgradeCode)">
<UpgradeVersion Minimum="4.12.0" Maximum="$(var.SleakSoft_AppVersion)" Property="OLDERVERSIONBEINGUPGRADED" OnlyDetect="no" IncludeMinimum="yes" IncludeMaximum="no" />
<UpgradeVersion Minimum="$(var.SleakSoft_AppVersion)" IncludeMinimum="yes" OnlyDetect="yes" Language="!(loc.LANG)" Property="NEWPRODUCTFOUND" />
<UpgradeVersion Minimum="4.12.0" Maximum="5.0.0" OnlyDetect="no" Language="!(loc.LANG)" IncludeMaximum="yes" Property="UPGRADEFOUND" />
</Upgrade>
<CustomAction Id="PreventDowngrading" Error="Newer version of Sleak Talk is already installed." />
<InstallExecuteSequence>
<Custom Action="PreventDowngrading" After="FindRelatedProducts">NEWPRODUCTFOUND</Custom>
<RemoveExistingProducts After="InstallInitialize" />
</InstallExecuteSequence>
Now How can I make it install all the files in installer after it removes the existing product.
I have already tried InstallExecure After="RemoveExistingProducts" and InstallExecuteAgain After="RemoveExistingProduct" but no luck.