Hello,

Is it somehow possible to schedule RemoveExistingProducts at a different 
time depending on a condition?

For example, I tried to do the following:
     <InstallExecuteSequence>
         <FindRelatedProducts Before="LaunchConditions" />
         <RemoveExistingProducts After="InstallValidate">
             SOME_CONDITION
         </RemoveExistingProducts>

         <RemoveExistingProducts After="InstallFinalize">
             NOT (SOME_CONDITION)
         </RemoveExistingProducts>
     </InstallExecuteSequence>

But got error LGHT0091 : Duplicate symbol 'WixAction:Install
ExecuteSequence/RemoveExistingProducts' found.

Am I trying to do something that's not supposed to work that way? The 
reason why I wanted to schedule it in a different place depending on a 
condition was that I might need to uninstall a very old product that has 
very different components/guids than the new package. Uninstalling the 
very old product after the new one gets installed 
(After="InstallFinalize") has the side effect of deleting a few registry 
entries. I would like to
a) schedule RemoveExistingProducts at an earlier time only in case the 
very old product is detected, and
b) schedule RemoveExistingProducts after InstallFinalize in case we are 
upgrading a newer product

Any ideas how to archive that? Of course I could just schedule 
RemoveExistingProducts After="InstallValidate", but then upgrading newer 
products gets very slow.

P.S. I'm talking about major upgrades.

-- 
Thanks,
Kalev


On 10/30/2009 09:22 PM, Blair wrote:
> Why do 4.0 and 5.0 use different UpgradeCodes? Generally your entire
> product-series should have the same UpgradeCode. It makes things like
> downgrade detection easier, and reduces the amount of stuff you have to keep
> track of over time.
>
> You can place a condition on the RemoveExistingProducts action which will
> either allow or block the action in its entirety.
>
> <InstallExecuteSequence><RemoveExistingProducts
> ...>condition</RemoveExistingProducts></InstallExecuteSequence>
>
> where "..." is your Before/After/Sequence attribute and "condition" is the
> condition you wish to use to enable/disable that action.
>
> Be sure to make any/all properties secure that you use in your condition
> that need to be passed either from the UI or the command-line.
>
> -----Original Message-----
> From: Frank Neumann [mailto:frank.neumann.karlsho...@web.de]
> Sent: Friday, October 30, 2009 9:53 AM
> To: wix-users@lists.sourceforge.net
> Subject: [WiX-users] Tweaking RemoveExistingProducts depending on user input
>
> Our installer uses major upgrades as described in many Wix documents.
> I would like to add a little more comfort to the installer by giving the
> users the following choices:
>
> 1. Uninstall the previous major version (4.0) during install of 5.0 or
> 2. Have 4.0 and 5.0 installed side by side
>
> The install packages for 4.0 and 5.0 use different upgrade codes.
>
> Is there a way to tweak "RemoveExistingProducts" by user input?
>
> Best regards,
>
> Frank
>
> _______________________________________________________________
> Neu: WEB.DE DSL bis 50.000 kBit/s und 200,- Euro Startguthaben!
> http://produkte.web.de/go/02/
>
>
> ----------------------------------------------------------------------------
> --
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to