1.  Uhh, the ProductCode Property.

2.  The Properties you specify in your UpgradeVersion will be setup based on 
what the upgrade is doing.  The MSI SDK has more details about this.

3.  Yeah, that sounds right.  The MSI SDK talks about it more.

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Patton
Sent: Friday, December 29, 2006 18:07
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Getting ProductCode when auto-generated

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

Reply via email to