It depends how many prior versions you've got as to how cumbersome this is, but 
if you had 1.0, 2.0 and 3.0 then you can simply use upgrade elements to detect 
each of them with onlydetect=yes, and if the corresponding property is set show 
a message.

It's not obvious what version you really want - the product version of your 
installed product is the same as the version of an installed assembly only if 
you deliberately made it the same.

Phil Wilson

-----Original Message-----
From: Sergey Abakumoff [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 16, 2008 11:20 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Detect the version of already installed product.


Howdy gang,
In my installer I need to notify user if the previous version of product is
installed and show the version number. I was hoping that I can find the
already installed version number in PATCHFOUND property I use in
UpgradeVersion stuff:
    <Upgrade Id="5F966E51-1220-47e4-9825-9909C91033D4">
      <UpgradeVersion OnlyDetect="no" Property="PATCHFOUND"
Minimum="0.0.0.0">
      </UpgradeVersion>
    </Upgrade>
However, the value of property is just some GUID.
I know the way I can accomplish this task - call the custom action that
executes the external program that loads the installed assembly and returns
it's version number, likely the assembly version is the same as the
installed product version. However this way is not straightforward . I am
sure that Wix has the way to detect the already installed version number,
just can't find it.
Can anyone help me?
--
View this message in context: 
http://n2.nabble.com/Detect-the-version-of-already-installed-product.-tp1344094p1344094.html
Sent from the wix-users mailing list archive at Nabble.com.


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