The Upgrade stuff is good at detecting specific versions of installed products using UpgradeCode. That can be used to set a property if the product is found. There's a potential sequencing issue because FindRelatedProducts is what detects previous versions, so I'd use a type 19 custom action sequenced after FindRelatedProducts conditioned on the property in the Upgrade search (that's set to only detect).
If there's a specific component guid unique to that previous version, then (impersonating Rob) I'd do a ComponentSearch for that component guid, then that property can be used in a launch condition. Phil Wilson -----Original Message----- From: Colin Bleckner [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2008 2:34 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] ALLUSERS property and upgrades That's unfortunate, thanks for confirming that for me though. Any idea how to craft a Condition element that's based on a previous installation's Product's Version setting? On Wed, Dec 3, 2008 at 2:11 PM, Ian Elliott (Excell Data Corporation) < [EMAIL PROTECTED]> wrote: > I think you are stuck with the dialog option. Per-user can only uninstall > that user, and per-machine can only uninstall per-machine, AFAIK. > > > -----Original Message----- > From: Colin Bleckner [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 03, 2008 1:38 PM > To: General discussion for Windows Installer XML toolset. > Subject: [WiX-users] ALLUSERS property and upgrades > > A previous version of my installer erroneously included a ALLUSERS property > line: > <Property Id='ALLUSERS' Value='1' /> > > I tried taking it out in my new installer (I want the application to be > installed on a per-user basis) but noticed that installing over an old > version no longer removes the previous installation. Searching the mailing > list looks like RemoveExistingProducts only uninstalls previous versions > who's ALLUSERS value match the current installer's version. Is there a way > to force the installer to uninstall a previous version, regardless of it's > ALLUSERS value? Or am I forced to pop up a dialog telling the user they > need to manually uninstall previous versions first? > > Thanks, > Colin > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users