You need a Custom Action Type 34 to run an exe with a working directory. 
Try this:

<CustomAction Id='LaunchMyExe' Directory='[INSTALLDIR]' ExeCommand='My.exe 
blah' Return='asyncNoWait' />

K-ballo.-

Patrick Steele escribió:
> After the end of my install, I wish to run my newly created exe with command 
> line parameters. The exe is dependent upon dlls that have been added during 
> the install, so I'm figuring maybe I have to set the working directory 
> somehow prior to running the exe so that it will correctly pick up the dlls?
> I'm not at work right now, but I think my code was something like:
>
>     <CustomAction Id='LaunchMyExe' FileKey='[INSTALLDIR]\My.exe' 
> ExeCommand='blah' Return='asyncNoWait' />
>     <InstallExecuteSequence>
>       <Custom Action='LaunchMyExe' After='InstallFinalize'>NOT 
> Installed</Custom>
>     </InstallExecuteSequence>
>   </Product>
> </Wix>
>
> At the minute, upon running the msi, as the final dialog shows up the exe 
> tries to run but fails and crashes ( however it does work if I go directly 
> to the installed location of the exe and dlls and double click it ). Am I 
> right in thinking I need to set the working directory somehow prior to 
> calling this custom action? If so, how do I do it or is it something else 
> completely?
> Thanks,
> Patrick
>
> _________________________________________________________________
> Find accommodation FAST with MSN Search! http://search.msn.ie/
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>   



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to