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:chunyan.ji...@ge.com] 
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
WiX-users@lists.sourceforge.net
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to