Hi folks,
I have a few installers that I am writing in WIX 3.7
I was just using:
<MajorUpgrade Schedule="afterInstallValidate" AllowDowngrades="no"
DowngradeErrorMessage="A newer version of $(var.PlatformProductName) is
already installed. Setup will now exit." />
To handle upgrades (uninstall older version, install new version)
I saw a blog on upgrades and they recommended doing the below, my question
is, do I need to add all that??
<MajorUpgrade DowngradeErrorMessage="A newer version of
$(var.PlatformProductName) is already installed. Setup will now exit."
Schedule="afterInstallInitialize" AllowDowngrades="no"/>
<SetProperty After="FindRelatedProducts" Id="FirstInstall" Value="true">
NOT Installed AND NOT WIX_UPGRADE_DETECTED AND NOT
WIX_DOWNGRADE_DETECTED
</SetProperty>
<SetProperty After="SetFirstInstall" Id="Upgrading" Value="true">
WIX_UPGRADE_DETECTED AND NOT (REMOVE="ALL")
</SetProperty>
<SetProperty After="RemoveExistingProducts" Id="RemovingForUpgrade"
Sequence="execute" Value="true">
(REMOVE="ALL") AND UPGRADINGPRODUCTCODE
</SetProperty>
<SetProperty After="SetUpgrading" Id="Uninstalling" Value="true">
Installed AND (REMOVE="ALL") AND NOT (WIX_UPGRADE_DETECTED OR
UPGRADINGPRODUCTCODE)
</SetProperty>
<SetProperty After="SetUninstalling" Id="Maintenance" Value="true">
Installed AND NOT Upgrading AND NOT Uninstalling AND NOT
UPGRADINGPRODUCTCODE
</SetProperty>
<InstallExecuteSequence>
<FindRelatedProducts Before="AppSearch" />
<AppSearch Before="LaunchConditions" />
<ResolveSource Before="CostFinalize"></ResolveSource>
<InstallUISequence>
<FindRelatedProducts Before="AppSearch" />
<AppSearch Before="LaunchConditions" />
Thanks,
steve
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Upgrades-tp7584816.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete
for recognition, cash, and the chance to get your game on Steam.
$5K grand prize plus 10 genre and skill prizes. Submit your demo
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users