Re: [WiX-users] Running an Exe
Hi Jacob, Thanks very much for your very detailed answer. I do want to follow the best practices so I will look into maybe converting the exe to a merge module and if this is not possible recreate my dialogs in burn. Thanks again -Original Message- From: Hoover, Jacob [mailto:jacob.hoo...@greenheck.com] Sent: 05 September 2012 22:58 To: chr...@iswix.com; General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Running an Exe Natalie, It is not recommended to do concurrent installs with a pure MSI based approach (http://msdn.microsoft.com/en-us/library/windows/desktop/aa368010(v=vs.85).a spx). Either it has to be transformed into a merge module and thus a single install, or you need to generate a Burn bundle (or you could try another boot strapping application or write your own). If you don't heed this advice you are going to run into many problems and since it's unsupported you would be on your own to try to hack in fixes if they are even possible. Stripping out the UI from your MSI and putting it into a Burn based managed UX should be fairly easy to do. Then you could simply pass in any additional information you got in your UI as properties to your now UI less MSI. If this executable isn't a prerequisite in order for your application to run, you could also (conditionally) execute the exe after your install has completed. Jacob -Original Message- From: Christopher Painter [mailto:chr...@iswix.com] Sent: Wednesday, September 05, 2012 3:30 PM To: General discussion for Windows Installer XML toolset.; General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Running an Exe There is a mutex to prevent multiple execute sequences. If you are doing some kind of hack in MSI then you need to do it all from the UI sequence of the parent installer. If you want that parent to ever work silently the closest you'll get is 'non-interactive' using /qr. You didn't seem to 'like' Pally's answer. Well, to be honest, it is the right answer. You are in unsupported territory so you'll have to get your big boy pants on and figure it out yourself. I've been there, there are many gotchas to watch out for. Good luck. From: Natalie Carr natalie.c...@measuresoft.com Sent: Wednesday, September 05, 2012 5:52 AM To: General discussion for Windows Installer XML toolset. wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Running an Exe Hi, Thanks, I don't want to use Burn as I have spent a great deal of time making my own dialog set to cater for our needs and I do not like the way if you display your own MSI dialogs it still shows the Burn dialog. Thanks for your answer though..:) -Original Message- From: Pally Sandher [mailto:pally.sand...@iesve.com] Sent: 05 September 2012 11:04 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Running an Exe This is what you're doing wrong - http://msdn.microsoft.com/en-us/library/windows/desktop/bb204770.aspx#concur rent_installs This is how you fix it - http://wix.sourceforge.net/manual-wix3/authoring_bundle_intro.htm Palbinder Sandher Software Platform Engineer T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate + Innovate with the Virtual Environment** Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP Email Disclaimer -Original Message- From: Natalie Carr [mailto:natalie.c...@measuresoft.com] Sent: 04 September 2012 16:01 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Running an Exe I'm trying to run an exe when a user clicks a button, can anyone please tell me what i am doing wrong or tell me how to do it please. Thanks Binary Id=sentinelInstaller SourceFile=sentinel_setup.exe / CustomAction Id=sentinel_setup BinaryKey=sentinelInstaller ExeCommand=sentinel_setup.exe Execute=immediate Return=check HideTarget=no / Control Id=Sentinel Type=PushButton X=40 Y=100 Width=56 Height=34 Bitmap=yes Text=SuperProImage Publish Event=DoAction Value=sentinel_setup Order=1 / /Control Kind Regards, Natalie Carr -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has
Re: [WiX-users] Running an Exe
I had the ExeCommand as -switch but that didn't work so I tried the name of the exe. There is no error, it just doesn't run the exe. -Original Message- From: Nick Ramirez [mailto:nickra...@hotmail.com] Sent: 04 September 2012 19:29 To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Running an Exe Does the .exe get run at all? The ExeCommand should be the parameters passed to the executable. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Running-an-Exe -tp7580285p7580288.html Sent from the wix-users mailing list archive at Nabble.com. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Running an Exe
I've tried the full path also but that made no difference..:( -Original Message- From: Adam Kadzban [mailto:mightyshorta...@gmail.com] Sent: 05 September 2012 00:36 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Running an Exe What's the error you're getting? You might also have the path to the exe wrong in the Binary tag. On Tue, Sep 4, 2012 at 1:28 PM, Nick Ramirez nickra...@hotmail.com wrote: Does the .exe get run at all? The ExeCommand should be the parameters passed to the executable. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Running- an-Exe-tp7580285p7580288.html Sent from the wix-users mailing list archive at Nabble.com. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Running an Exe
This is what you're doing wrong - http://msdn.microsoft.com/en-us/library/windows/desktop/bb204770.aspx#concurrent_installs This is how you fix it - http://wix.sourceforge.net/manual-wix3/authoring_bundle_intro.htm Palbinder Sandher Software Platform Engineer T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate + Innovate with the Virtual Environment** Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP Email Disclaimer -Original Message- From: Natalie Carr [mailto:natalie.c...@measuresoft.com] Sent: 04 September 2012 16:01 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Running an Exe I'm trying to run an exe when a user clicks a button, can anyone please tell me what i am doing wrong or tell me how to do it please. Thanks Binary Id=sentinelInstaller SourceFile=sentinel_setup.exe / CustomAction Id=sentinel_setup BinaryKey=sentinelInstaller ExeCommand=sentinel_setup.exe Execute=immediate Return=check HideTarget=no / Control Id=Sentinel Type=PushButton X=40 Y=100 Width=56 Height=34 Bitmap=yes Text=SuperProImage Publish Event=DoAction Value=sentinel_setup Order=1 / /Control Kind Regards, Natalie Carr -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Running an Exe
Hi, Thanks, I don't want to use Burn as I have spent a great deal of time making my own dialog set to cater for our needs and I do not like the way if you display your own MSI dialogs it still shows the Burn dialog. Thanks for your answer though..:) -Original Message- From: Pally Sandher [mailto:pally.sand...@iesve.com] Sent: 05 September 2012 11:04 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Running an Exe This is what you're doing wrong - http://msdn.microsoft.com/en-us/library/windows/desktop/bb204770.aspx#concur rent_installs This is how you fix it - http://wix.sourceforge.net/manual-wix3/authoring_bundle_intro.htm Palbinder Sandher Software Platform Engineer T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate + Innovate with the Virtual Environment** Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP Email Disclaimer -Original Message- From: Natalie Carr [mailto:natalie.c...@measuresoft.com] Sent: 04 September 2012 16:01 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Running an Exe I'm trying to run an exe when a user clicks a button, can anyone please tell me what i am doing wrong or tell me how to do it please. Thanks Binary Id=sentinelInstaller SourceFile=sentinel_setup.exe / CustomAction Id=sentinel_setup BinaryKey=sentinelInstaller ExeCommand=sentinel_setup.exe Execute=immediate Return=check HideTarget=no / Control Id=Sentinel Type=PushButton X=40 Y=100 Width=56 Height=34 Bitmap=yes Text=SuperProImage Publish Event=DoAction Value=sentinel_setup Order=1 / /Control Kind Regards, Natalie Carr -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Running an Exe
There is a mutex to prevent multiple execute sequences. If you are doing some kind of hack in MSI then you need to do it all from the UI sequence of the parent installer. If you want that parent to ever work silently the closest you'll get is 'non-interactive' using /qr. You didn't seem to 'like' Pally's answer. Well, to be honest, it is the right answer. You are in unsupported territory so you'll have to get your big boy pants on and figure it out yourself. I've been there, there are many gotchas to watch out for. Good luck. From: Natalie Carr natalie.c...@measuresoft.com Sent: Wednesday, September 05, 2012 5:52 AM To: General discussion for Windows Installer XML toolset. wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Running an Exe Hi, Thanks, I don't want to use Burn as I have spent a great deal of time making my own dialog set to cater for our needs and I do not like the way if you display your own MSI dialogs it still shows the Burn dialog. Thanks for your answer though..:) -Original Message- From: Pally Sandher [mailto:pally.sand...@iesve.com] Sent: 05 September 2012 11:04 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Running an Exe This is what you're doing wrong - http://msdn.microsoft.com/en-us/library/windows/desktop/bb204770.aspx#concur rent_installs This is how you fix it - http://wix.sourceforge.net/manual-wix3/authoring_bundle_intro.htm Palbinder Sandher Software Platform Engineer T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate + Innovate with the Virtual Environment** Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP Email Disclaimer -Original Message- From: Natalie Carr [mailto:natalie.c...@measuresoft.com] Sent: 04 September 2012 16:01 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Running an Exe I'm trying to run an exe when a user clicks a button, can anyone please tell me what i am doing wrong or tell me how to do it please. Thanks Binary Id=sentinelInstaller SourceFile=sentinel_setup.exe / CustomAction Id=sentinel_setup BinaryKey=sentinelInstaller ExeCommand=sentinel_setup.exe Execute=immediate Return=check HideTarget=no / Control Id=Sentinel Type=PushButton X=40 Y=100 Width=56 Height=34 Bitmap=yes Text=SuperProImage Publish Event=DoAction Value=sentinel_setup Order=1 / /Control Kind Regards, Natalie Carr -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Running an Exe
Natalie, It is not recommended to do concurrent installs with a pure MSI based approach (http://msdn.microsoft.com/en-us/library/windows/desktop/aa368010(v=vs.85).aspx). Either it has to be transformed into a merge module and thus a single install, or you need to generate a Burn bundle (or you could try another boot strapping application or write your own). If you don't heed this advice you are going to run into many problems and since it's unsupported you would be on your own to try to hack in fixes if they are even possible. Stripping out the UI from your MSI and putting it into a Burn based managed UX should be fairly easy to do. Then you could simply pass in any additional information you got in your UI as properties to your now UI less MSI. If this executable isn't a prerequisite in order for your application to run, you could also (conditionally) execute the exe after your install has completed. Jacob -Original Message- From: Christopher Painter [mailto:chr...@iswix.com] Sent: Wednesday, September 05, 2012 3:30 PM To: General discussion for Windows Installer XML toolset.; General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Running an Exe There is a mutex to prevent multiple execute sequences. If you are doing some kind of hack in MSI then you need to do it all from the UI sequence of the parent installer. If you want that parent to ever work silently the closest you'll get is 'non-interactive' using /qr. You didn't seem to 'like' Pally's answer. Well, to be honest, it is the right answer. You are in unsupported territory so you'll have to get your big boy pants on and figure it out yourself. I've been there, there are many gotchas to watch out for. Good luck. From: Natalie Carr natalie.c...@measuresoft.com Sent: Wednesday, September 05, 2012 5:52 AM To: General discussion for Windows Installer XML toolset. wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Running an Exe Hi, Thanks, I don't want to use Burn as I have spent a great deal of time making my own dialog set to cater for our needs and I do not like the way if you display your own MSI dialogs it still shows the Burn dialog. Thanks for your answer though..:) -Original Message- From: Pally Sandher [mailto:pally.sand...@iesve.com] Sent: 05 September 2012 11:04 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Running an Exe This is what you're doing wrong - http://msdn.microsoft.com/en-us/library/windows/desktop/bb204770.aspx#concur rent_installs This is how you fix it - http://wix.sourceforge.net/manual-wix3/authoring_bundle_intro.htm Palbinder Sandher Software Platform Engineer T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate + Innovate with the Virtual Environment** Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP Email Disclaimer -Original Message- From: Natalie Carr [mailto:natalie.c...@measuresoft.com] Sent: 04 September 2012 16:01 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Running an Exe I'm trying to run an exe when a user clicks a button, can anyone please tell me what i am doing wrong or tell me how to do it please. Thanks Binary Id=sentinelInstaller SourceFile=sentinel_setup.exe / CustomAction Id=sentinel_setup BinaryKey=sentinelInstaller ExeCommand=sentinel_setup.exe Execute=immediate Return=check HideTarget=no / Control Id=Sentinel Type=PushButton X=40 Y=100 Width=56 Height=34 Bitmap=yes Text=SuperProImage Publish Event=DoAction Value=sentinel_setup Order=1 / /Control Kind Regards, Natalie Carr -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Live
Re: [WiX-users] Running an Exe
Does the .exe get run at all? The ExeCommand should be the parameters passed to the executable. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Running-an-Exe-tp7580285p7580288.html Sent from the wix-users mailing list archive at Nabble.com. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Running an Exe
What's the error you're getting? You might also have the path to the exe wrong in the Binary tag. On Tue, Sep 4, 2012 at 1:28 PM, Nick Ramirez nickra...@hotmail.com wrote: Does the .exe get run at all? The ExeCommand should be the parameters passed to the executable. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Running-an-Exe-tp7580285p7580288.html Sent from the wix-users mailing list archive at Nabble.com. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ 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
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
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