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 <little.for...@ymail.com>
To: General discussion for Windows Installer XML toolset. 
<wix-users@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-users@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-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to