How is the BMXSCRIPT  property being set? did you consider using the FileSearch 
element and setting the property? Something on the lines of

<Property Id="BMXSCRIPT">
  <FileSearch Id="SearchBMXScript" Name="BMXSCRIPT" and other properties>
</Property>
 ....
<InstallExecuteSequence>
   <Custom Action "DoRegBmxScript Before="InstallFinalize"><![CDATA[(NOT 
Installed) AND ([BMXSCRIPT]) <> ""]]> </Custom
</InstallExecuteSequence>

Hope that helps.
Raghu
Microsoft Corp, Redmond.


________________________________
 From: Bastiaan de Waard <b.j.dewa...@tmx.nl>
To: "wix-users@lists.sourceforge.net" <wix-users@lists.sourceforge.net> 
Sent: Thursday, March 7, 2013 7:29 AM
Subject: [WiX-users] Multiple custom actions, urgent help needed!
 
 

Dear subscribers!

 
 
I have a problem with multiple conditions in a custom action. I have a custom 
action that runs a application file which is placed by the installer (if the 
component is installed):

 
 
                         <CustomAction Id="DoRegBmxScript" 

                               FileKey="bmxscript"

                               ExeCommand="/regserver" 

                               Execute="deferred"

                               Return="ignore"

                               HideTarget="no"

                               Impersonate="no" />

 
                               <InstallExecuteSequence>

                                                               <Custom 
Action="DoRegBmxScript" Before="InstallFinalize">NOT (Installed And (?BMXSCRIPT 
> 2))</Custom>

                               </InstallExecuteSequence>

 
The custom action should only be executed when the component BMXSCRIPT is 
installed, and it should never be executed on uninstall. I have been trying for 
weeks now but i can't figure out how to specify the condition between the 
<Custom Action> tags. With above conditions the installer still executes the 
custom action even when component BMXSCRIPT is not installed.

 
 
Thanks in advance,

 
 
Bastiaan de Waard

Kuipers Electronic Engineering B.V.

Houtkopersstraat 6, 3334 KD

Zwijndrecht - The Netherlands

KvK Rotterdam 23039023

T.: ++31 (0)78 - 6100 300

F.: ++31 (0)78 - 6100 391

E. b.j.dewa...@tmx.nl <mailto:b.j.dewa...@tmx.nl> 

 
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to