Hi Phil,
Thank you so much for your reply.
I got it working. Here is the code:
<CustomAction Id="Exec_Cmd"
Property="ExecProperty"
Value=""[#abc.exe]""
Execute="immediate"/>
<CustomAction Id="ExecProperty"
BinaryKey="WixCA"
DllEntry="CAQuietExec"
Execute="deferred"
Return="ignore"
Impersonate="no"/>
<InstallExecuteSequence>
<Custom Action="Exec_Cmd" After="CostFinalize"/>
<Custom Action="ExecProperty" Before="InstallFinalize"/>
</InstallExecuteSequence>
However I also have a couple of questions:
1. If I try to use "asyncNoWait" as the "Return" type, I'm getting this error:
The CustomAction/@Return attribute's value, 'asyncNoWait', cannot be specified without attribute ExeCommand present.
How can I resolve this?
2. About the customaction sequence, I was told that I can't "schedule a custom action after InstallFinalize". So I schedule it "Before the InstallFinalize". But is it gauranteed that the customaction must happen after "Exec_Cmd"? Can I make it something like After="Exec_Cmd"? If I do so, will the result be the same? Or, the "ExecProperty" action would have a different sequence from the current one?
Thanks.
________________________________
From: "Wilson, Phil" <***@wonderware.com>
To: General discussion for Windows Installer XML toolset. <wix-***@lists.sourceforge.net>
Sent: Wednesday, June 24, 2009 10:26:38 AM
Subject: Re: [WiX-users] WiX 3.0: How to run a program
Execute=Immediate is before any files are installed. It needs to be deferred.
Phil Wilson
-----Original Message-----
From: little.forest [mailto:***@ymail.com]
Sent: Wednesday, June 24, 2009 10:22 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] WiX 3.0: How to run a program
Can you WiX experts take a bit of your time to point me out the problems below? I used exactly the example code from wix.chm, but it doesn't work for me. Am I doing the right thing? I really appreciate it if you can give me some clue.
Basically, I'd just like to run a small program right after the installation but before the main application getting launched.
Thank you!
/Brian
________________________________
From: little.forest <***@ymail.com>
To: General discussion for Windows Installer XML toolset. <wix-***@lists.sourceforge..net>
Sent: Tuesday, June 23, 2009 2:51:17 PM
Subject: Re: [WiX-users] WiX 3.0: How to run a program
Hi,
I re-read the wix.chm and found "Quiet Execution Custom Action".
I tried to use the example in wix.chm. But when I run it, I got these errors:
MSI (s) (68!58) [13:58:06:803]: PROPERTY CHANGE: Deleting QtExecCmdLine property. Its current value is '"[INSTALLLOCATION]abc.exe"'.
CAQuietExec: Error 0x80070003: Command failed to execute.
CAQuietExec: Error 0x80070003: CAQuietExec Failed
Action ended 13:58:06: QtExecExample.. Return value 3.
Here is my code:
<Property Id="QtExecCmdLine" Value='"[INSTALLLOCATION]abc.exe"'/>
<CustomAction Id="QtExecExample" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="immediate" Return="check"/>
<InstallExecuteSequence>
<Custom Action="QtExecExample" Before="InstallFinalize"/>
</InstallExecuteSequence>
I'd like to run this "abc.exe" program after the installation but before the main application got launched(which is controlled by a checkbox on the final page). Can someone point out the errors here?
I did check the "C:\Program Files\MyApp" folder, the files are not even installed. That maybe the reason that abc.exe is not run? Is it okay to run it before "InstallFinalize"? If not, which action sequence I should use?
I'd really appreciate it.
/Brian
__________________________________________________________________
The new Internet Explorer® 8 - Faster, safer, easier. Optimized for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
__________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr!
http://www.flickr.com/gift/
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
__________________________________________________________________
Make your browsing faster, safer, and easier with the new Internet Explorer® 8. Optimized for Yahoo! Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/