Normally those are checked by your bootstrapper that sets the REINSTALL and
REINSTALLMODE values on the commandline. If your bootstrapper doesn't check
versions you will need to write that yourself.

Question: What use case do you have for using minor upgrades? Is it for
supporting patching?

-----Original Message-----
From: CP YEH [mailto:ntde...@gmail.com] 
Sent: Monday, January 18, 2010 11:08 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] minor upgrade - how to check installed program version?

Hi,

I have created setup msi and it works fine. Then, I created minor
upgrade msi and I would like to check what version of my program is
installed on the machine to see if I should proceed to install.

I added some code as follows.

    <Upgrade Id="fea8ad46-55f2-481a-8735-cbd721ccb3ec">
      <UpgradeVersion OnlyDetect="yes" Property="SELFFOUND"
                      Minimum="1.0.1" IncludeMinimum="yes"
                      Maximum="1.0.1" IncludeMaximum="yes" />
      <UpgradeVersion OnlyDetect='yes' Property='NEWERFOUND'
        Minimum='1.0.2' IncludeMinimum='no' />
    </Upgrade>

    <CustomAction Id='AlreadyUpdated' Error='[ProductName] is already
installed.' />
    <CustomAction Id='NoDowngrade' Error='A later version of
[ProductName] is already installed.' />

    <InstallExecuteSequence>
      <Custom Action="NoDowngrade"
After="FindRelatedProducts">NEWERFOUND</Custom>
      <Custom Action="AlreadyUpdated"
After="FindRelatedProducts">SELFFOUND</Custom>
    </InstallExecuteSequence>

But looking at the logs I found that actions are skipped because I am
running this msi in maintenance mode and thus, FindRelatedProducts
action is skipped.
So I am wondering how I can cause msi to run my custom actions to
check versions.
Please let me know if anyone dealt with this issue before. Thanks.


YEH <><

----------------------------------------------------------------------------
--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for
Conference
attendees to learn about information security's most important issues
through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to