Property names are case sensitive. It should be "NOT Installed"
NOT INSTALLED always succeeds because its not defined anywhere.


-----Original Message-----
From: daniel.knoep...@noser.com [mailto:daniel.knoep...@noser.com] 
Sent: 20 July 2010 17:16
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Custam Action Install conditions (why is CA
executed upon uninstall when condition is set to NOT INSTALLED )

Hi

I have some problems when it comes to install conditions. There are some
custom actions that should only run upon the first installation and not
upon uninstall, upgrade, repair, modify..etc.

The conditions i tried to use was the following:


<Custom Action="CopyChangingFilesAction.SetProperty"
After="CheckFeaturesAction">NOT INSTALLED</Custom>



However, upon uninstall the action runs. How is this possible? This
should be so easy.  What could be the reason for it?









Below i have listed some conditions and when they should return true.
Please correct me if anything is wrong:



Only on install:           NOT INSTALLED



Only on uninstall:      (NOT UPGRADINGPRODUCTCODE) AND (REMOVE ~= "ALL")



Always except uninstall:   NOT ((NOT UPGRADINGPRODUCTCODE) AND (REMOVE
~= "ALL"))



Modify or upgrade:         (INSTALLED AND UPGRADINGPRODUCTCODE)
------------------------------------------------------------------------
------
This SF.net email is sponsored by Sprint What will you do first with
EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
</pre>
<BR style="font-size:4px;">
<a href = "http://www.sdl.com";><img src="http://www.sdl.com/images/email 
logo_150dpi-01.png" alt="www.sdl.com" border="0"/></a>
<BR>
<font face="arial"  size="2" "><a href = "http://www.sdl.com"; 
style="color:005740; font-weight: bold">www.sdl.com</a>
<BR>
<BR>
<font face="arial"  size="1" color="#736F6E">
<b>SDL PLC confidential, all rights reserved.</b>
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.<BR>
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.<BR>
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.
</font>



------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to