I use ProductCode ????????-????-????-????-???????????? (auto-generated) for
my installer, with a constant UpgradeCode so that upgrades are performed
fairly seamlessly. A few questions about the upgrade process.
1) I want to write a regkey that tells other apps how to uninstall my app.
The command should look something like "msiexec /q /x{__MY_PRODUCT_CODE__}".
Is there any variable or property where I can find out what the ProductCode
is if it was auto-generated?
2) Is there any way for the upgrading installation to perform actions (such
as getting values from registry, filesystem, etc) before the previous
version is uninstalled by RemoveExistingProducts?
<Upgrade Id='$(var.AppUpgradeCode)'>
<UpgradeVersion IgnoreRemoveFailure="no"
IncludeMaximum="yes"
Maximum="$( var.AppProductVersion)"
MigrateFeatures="yes"
Property="APP_UPGRADE" />
</Upgrade>
<InstallExecuteSequence>
<RemoveExistingProducts
After="InstallValidate">APP_UPGRADE</RemoveExistingProducts>
</InstallExecuteSequence>
<Property Id="RemovePreviousVersions" Value='True' />
<Property Id="DetectNewerInstalledVersion" Value='True' />
3) My understanding is that the UPGRADINGPRODUCTCODE variable will tell an
uninstalling MSI what product code is causing its uninstall. Is this
correct?
Thanks!
--
===========
Brian Patton
http://people.bu.edu/bjp/
http://people.bu.edu/reallife/ourstories.html
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users