>  UPGRADINGPRODUCTCODE is set when you're being uninstalled during an
upgrade, so it sounds like the wrong condition.

Now I get it!!! the UPGRADINGPRODUCTCODE is NOT set when the product is 
installed during an upgrade, only when uninstalled during an upgrade. THX!


>  I think you probably want to use some variation on the following
(depending on what your upgrade table looks like) to run something on
the first install only.
NOT (Installed Or OLDERVERSIONBEINGUPGRADED)

Yes, this is what I'm using:
(NOT Installed) AND (NOT OLDAPPFOUND)
and works fine for me, I just didn't know why the UPGRADINGPRODUCTCODE is not 
working.



>  For example to force a CA to run on a full uninstall only, but not when it's 
> being
uninstalled because an upgrade is happening I use
REMOVE ~= "ALL" AND NOT UPGRADINGPRODUCTCODE]

by the way, speaking of this condition, I did the following in my code (I want 
to delete a log file only on a full uninstall):

[code]
<Component Id="RemoveLogFile" Guid="GUID">
  <RemoveFile Id="RemoveLogFile" Name="momo.log" On="uninstall"/>
  <!--see: http://msdn.microsoft.com/en-us/library/aa369786.aspx, but doesn't 
work for me!-->
  <Condition>REMOVE="ALL" AND NOT UPGRADINGPRODUCTCODE</Condition>
</Component>
[/code]

For some reason this doesn't work for me, the log file is still there after the 
full uninstall.
If instead I use the following condition:

[code]
  <!--... so use this one instead, which seems to be working-->
  <Condition>(NOT UPGRADINGPRODUCTCODE) AND (REMOVE=ALL)</Condition>
[/code]

then it is working exactly as I need. Still weird, b/c everywhere is 
docummented as being the first one. Am I doing smth wrong?

Thx a lot!
Viv






On 4/9/2010 3:41 AM, Sascha Beaumont wrote:
> UPGRADINGPRODUCTCODE is set when you're being uninstalled during an
> upgrade, so it sounds like the wrong condition. For example to force a
> CA to run on a full uninstall only, but not when it's being
> uninstalled because an upgrade is happening I use
>
> REMOVE ~= "ALL" AND NOT UPGRADINGPRODUCTCODE]
>
> I think you probably want to use some variation on the following
> (depending on what your upgrade table looks like) to run something on
> the first install only.
>
> NOT (Installed Or OLDERVERSIONBEINGUPGRADED)
>
>
>
> Sascha
>
>
>
> On Thu, Apr 8, 2010 at 7:29 PM, Viv Coco<vcotirl...@hotmail.com>  wrote:
>    
>> Hi all,
>>
>> I would like to run a CA only on the first install. The CA shouldn't be
>> run on an upgrade. The condition i used is:
>> (NOT Installed) AND (NOT UPGRADINGPRODUCTCODE)
>> but it's not working, as the CA is still run on upgrade also.
>>
>> I found the nice and detailed answer from Blair here:
>> http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg31160.html
>> which explains how this condition should look like, but what I didn't
>> understand is why can't we use the UPGRADINGPRODUCTCODE property in
>> order to detect when it's an upgrade. Can someone pls explain that or
>> point to a link that contains the explanation? I mean why the condition
>> I set is not correct?
>>
>> Thx,
>> Viv
>>
>> ------------------------------------------------------------------------------
>> Download IntelĀ® Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>>      
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>    


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to