Thanks for that K-ballo. Ok, so here's my new version:
<CustomAction Id='LaunchMyExe' Directory='INSTALLDIR' ExeCommand='My.exe'
Return='asyncNoWait' />
<InstallExecuteSequence>
<Custom Action='LaunchMyExe' Before='InstallFinalize'>NOT Installed</Custom>
</InstallExecuteSequence>
But this doesn't seem to do anything at all! It compiles but doesn't even
appear to try to run the exe upon installation. Maybe the syntax is a bit
different for Wix v3 which I am using?
Thanks,
Patrick
----Original Message Follows----
From: Agustín K-ballo Bergé <[EMAIL PROTECTED]>
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Running an exe with a working directory
Date: Thu, 04 Jan 2007 21:13:25 -0300
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
_________________________________________________________________
Customise your home page with RSS feeds at MSN Ireland! http://ie.msn.com/
-------------------------------------------------------------------------
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