This works for us:
<CustomAction
Id="SetLoadDB"
Property="LoadDB"
Value=""[#JAMSDBAEXE]" LOAD/UI=[UILevel]"/>
<CustomAction
Id="LoadDB"
BinaryKey="wixca"
DllEntry="CAQuietExec"
Execute="deferred"
Impersonate="yes"
Return="check"/>
<Binary Id="wixca"
SourceFile="..\ExternalReferences\wixca.dll"/>
<InstallExecuteSequence>
<Custom Action="SetLoadDB"
After="InstallFiles" />
<Custom Action="LoadDB"
After="StartServices"><![CDATA[REMOVE<>"ALL"]]></Custom>
</InstallExecuteSequence>
From: Harini Gurusamy [mailto:[EMAIL PROTECTED]
Sent: Monday, October 22, 2007 1:43 AM
To: John Vottero; wix-users@lists.sourceforge.net
Subject: RE: [WiX-users] Wix CA
Still My catsign.exe is not executed. I tried
(SourceFile=c:\windows\system32\catsign.exe ) also
<InstallExecuteSequence>
<Custom Action='Launchfile' After='InstallFinalize'>NOT
Installed</Custom>
</InstallExecuteSequence>
<CustomAction Id ="Launchfile" Return="check" FileKey="catsign.exe"
ExeCommand="" />
<CustomAction Id="LaunchFile" BinaryKey="wixca" DllEntry="CAQuietExec"
Execute="deferred"
Impersonate="yes"
Return="check"/>
<Binary Id="wixca"
SourceFile="catsign.exe"/>
From: John Vottero [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 21, 2007 9:22 PM
To: Harini Gurusamy; wix-users@lists.sourceforge.net
Subject: RE: [WiX-users] Wix CA
What's missing is:
<CustomAction
Id="LaunchFile"
BinaryKey="wixca"
DllEntry="CAQuietExec"
Execute="deferred"
Impersonate="yes"
Return="check"/>
<Binary Id="wixca"
SourceFile="..\ExternalReferences\wixca.dll"/>
And the scheduling of that CA.
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Harini
Gurusamy
Sent: Sunday, October 21, 2007 10:18 PM
To: John Vottero; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Wix CA
Thanks for the quick help..
I tried this approach of using FileKey and doesn't work. Do I need the
second step even if I am using execommand ??
Whats missing here
<InstallExecuteSequence>
<Custom Action='LaunchFile' After='InstallFinalize'>NOT
Installed</Custom>
</InstallExecuteSequence>
< CustomAction Id='LaunchFile' return='check' FileKey='foo.exe'
ExeCommand='' / >
From: John Vottero [ma I ilto:[EMAIL PROTECTED]
Sent: Sunday, October 21, 2007 7:03 PM
To: Harini Gurusamy; wix-users@lists.sourceforge.net
Subject: RE: [WiX-users] Wix CA
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=""[#JAMSDBAEXE]" 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