Hi Blair,
Thank you for your explanation. The following is my Upgrade table:
<Upgrade Id='8517ae9a-667d-4bd3-9cea-4323be6d7040'>
<UpgradeVersion OnlyDetect='no' Property='PREVIOUSFOUND'
Minimum='1.0.0.0' IncludeMinimum='yes'
Maximum='3.0.0.0' IncludeMaximum='no' />
</Upgrade>
And the Custom Action is defined as:
<CustomAction Id='MyCA' FileKey='VPAdmin.exe' ExeCommand='VPAdmin -install
-quiet' Return='asyncWait' />
I don't know how to use RemoveExistingProducts element.
I will try "NOT Installed AND NOT REMOVEOLD". Thank you again for your help!
Chunyan
-----Ursprüngliche Nachricht-----
Von: Blair [mailto:[email protected]]
Gesendet: Mittwoch, 5. August 2009 19:08
An: 'General discussion for Windows Installer XML toolset.'
Betreff: Re: [WiX-users] How to call Custom Action only on first timeinstall,
not on Upgrade?
Please show us how you authored your Upgrade table.
UPGRADINGPRODUCTCODE is only set in the package being removed by the upgrade,
so that one won't help. PATCH is set only when you are attempting to add a
patch.
What you want is "NOT Installed AND NOT REMOVEOLD" or whatever you named your
property that contains the product codes for RemoveExistingProducts to remove.
-----Original Message-----
From: Jiang, Chunyan (GE Healthcare) [mailto:[email protected]]
Sent: Wednesday, August 05, 2009 8:17 AM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] How to call Custom Action only on first time install, not
on Upgrade?
Hi Wix-users,
I stuck at this issue: how to call Custom Action only on first install, but not
on Upgrade. I wrote one installation package, which is able to upgrade. In my
.msi there is one Custom Action, which should be called only on first
installation. I have tried the following ways to call this Custom Action. But
every time, it will be called both on first time install and on Upgrade.
<Custom Action="MyCA" After="InstallFinalize">NOT Installed</Custom>
<Custom Action="MyCA" After="InstallFinalize">NOT Installed AND NOT PATCHFOUND
</Custom>
<Custom Action="MyCA" After="InstallFinalize">NOT Installed AND NOT PATCH
</Custom>
<Custom Action="MyCA" After="InstallFinalize">NOT Installed AND NOT
UPGRADINGPRODUCTCODE </Custom>
Could some one give me some hint how to handle it?
Regards,
Chunyan
----------------------------------------------------------------------------
--
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
[email protected]
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
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users