Re: [WiX-users] Running an exe with a working directory
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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Running an exe with a working directory
You are completely right Scott, thank you! :D Answer: CustomAction Id='LaunchMyExe' Directory='INSTALLDIR' ExeCommand='[INSTALLDIR]My.exe' Return='asyncNoWait' / InstallExecuteSequence Custom Action='LaunchMatadorExe' After='InstallFinalize'NOT Installed/Custom /InstallExecuteSequence Original Message Follows From: Scott Palmer [EMAIL PROTECTED] To: Patrick Steele [EMAIL PROTECTED] Subject: Re: [WiX-users] Running an exe with a working directory Date: Fri, 5 Jan 2007 09:11:24 -0500 I think that in your example My.exe must be the full path to the exe. Scott On 1/5/07, Patrick Steele [EMAIL PROTECTED] wrote: 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! _ 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.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Running an exe with a working directory
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.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Running an exe with a working directory
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.phpp=sourceforgeCID=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.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Running an exe with a working directory
What version of the WiX toolset are you using? That syntax below shouldn't link. The FileKey attribute is supposed to refer to a File/@Id somewhere.unkunk-Original Message-unkFrom: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick SteeleunkSent: Thursday, January 04, 2007 16:06unkTo: wix-users@lists.sourceforge.netunkSubject: [WiX-users] Running an exe with a working directoryunkunkAfter the end of my install, I wish to run my newly created exe with commandunkline parameters. The exe is dependent upon dlls that have been added duringunkthe install, so I'm figuring maybe I have to set the working directoryunksomehow prior to running the exe so that it will correctly pick up the dlls?unkI'm not at work right now, but I think my code was something like:unkunkCustomAction Id='LaunchMyExe' FileKey='[INSTALLDIR]\My.exe'unkExeCommand='blah' Return='asyncNoWait' /unkInstallExecuteSequence unk Custom Action='LaunchMyExe' After='InstallFinalize'NOTunkInstalled/Customunk /InstallExecuteSequenceunk /Productunk/WixunkunkAt the minute, upon running the msi, as the final dialog shows up the exeunktries to run but fails and crashes ( however it does work if I go directlyunkto the installed location of the exe and dlls and double click it ). Am Iunkright in thinking I need to set the working directory somehow prior tounkcalling this custom action? If so, how do I do it or is it something elseunkcompletely?unkThanks,unkPatrickunkunk_unkFind accommodation FAST with MSN Search! http://search.msn.ie/unkunkunk-unkTake Surveys. Earn Cash. Influence the Future of ITunkJoin SourceForge.net's Techsay panel and you'll get the chance to share yourunkopinions on IT business topics through brief surveys - and earn cashunkhttp://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEVunk___unkWiX-users mailing list[EMAIL PROTECTED]unkhttps://lists.sourceforge.net/lists/listinfo/wix-usersunk - 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.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users