It's a two step process, you have to set the property with the command
you want to execute and then you have to execute the command.  Your
custom action sets the property.  I'm not sure if the [SourceDir]
reference will work or not, you can just use the file ID with a #, like
this:

 

                                <CustomAction 

                                                Id="SetLoadDB" 

                                                Property="LoadDB"

 
Value="&quot;[#JAMSDBAEXE]&quot; LOAD/UI=[UILevel]"/>

 

After that, you need to execute the command like this:

 

                                <CustomAction 

                                                Id="LoadDB" 

                                                BinaryKey="wixca" 

                                                DllEntry="CAQuietExec" 

                                                Execute="deferred" 

                                                Impersonate="yes" 

                                                Return="check"/>

                                <Binary Id="wixca"
SourceFile="..\ExternalReferences\wixca.dll"/>

 

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Harini
Gurusamy
Sent: Sunday, October 21, 2007 8:47 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Wix CA

 

 

 I am using WIX 2.0. I am trying to call an executable as part of my
install. The EXE file is one of the installed files.

 

But after the install , the EXE is never getting executed. Any pointers
??

 

 

My code snippet looks like

 

<InstallExecuteSequence>

  <Custom Action='LaunchFile' After='InstallFiles'>NOT
Installed</Custom>

</InstallExecuteSequence>

 

<CustomAction Id ="LaunchFile" Property="QtExecCmdLine"
Value='"[Sourcedir]foo.exe"' Return="check" />

 

**I tried InstallFinalize , still doesn't work

 

 

Thanks

Harini

 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to