This component search seems promising!  When you mentioned a 'component
guid' do you mean the Product element's GUID or a GUID for any Component
element in the previous version?  Hopefully the Component elements as my
Product's GUID is *.  My plan is to reference one of the current Component's
GUIDs and change the GUID in this installer so future versions won't trigger
the property.  I tried playing around with ComponentSearch but things aren't
working quite as I hoped.  I have a Property set like this:
    <Property Id='OLD_INSTALL'>
      <ComponentSearch Id='SearchForOldInstall' Type='file'
Guid='44738CED-B555-4b28-BA03-12EB50A0D7C1' />
    </Property>

Where Guid is set to one of my Component's GUIDs.  And I have a Condition:
    <Condition Message='Already installed'>
      OLD_INSTALL
    </Condition>

If the ComponentSearch's type is "file" this is never triggered (regardless
of whether the application is currently installed or not).  If the type is
"directory" then it's always triggered.  Any ideas?

Colin


On Wed, Dec 3, 2008 at 2:45 PM, Wilson, Phil <[EMAIL PROTECTED]>wrote:

> 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
>
-------------------------------------------------------------------------
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

Reply via email to