On 12/20/2013 09:05 AM, Daniel Madill wrote: > Hello Gerry, > > I have custom actions that handle spaces in path names. Here is an example: > > ExeCommand="/install /min_version $(var.min_matlab) /max_version > $(var.max_matlab) "[MergeRedirectFolder]quarc"" > > I notice that in your case you quoted the path as > "[INSTALLDIR]"/myprogram.exe. The DOS interpreter won't handle that as you > want it to because the quote is in the middle of the path.
Thanks Daniel. It doesn't seem to matter. I've tried quoting the full path with same result. The problem is only when the quoted path is the first argument in ExeCommand. If the quoted path is in any other position, it works. Of course when you are trying to launch your own CUI program it has to be in the first position which is failing in the current version of WIX. > Try "[INSTALLDIR]/myprogram.exe" instead. If that doesn't work then > you can go to the lengths described in > http://blogs.msdn.com/b/twistylittlepassagesallalike/archive/2011/04/23/everyone-quotes-arguments-the-wrong-way.aspx. > > Sincerely, > > Daniel Madill > > -----Original Message----- > From: Gerry Reno [mailto:gr...@verizon.net] > Sent: December-19-13 8:31 PM > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] ExeCommand will not accept any path with spaces > > I have been trying to get WIX to deal with an ExeCommand which uses > INSTALLDIR which contains spaces in the path without > success. > > I won't repeat the bug I opened on this. Here is the link: > http://wixtoolset.org/issues/4257/ > > As you can see in the bug. I cannot get a cmd.exe to launch one of my > programs in INSTALLDIR because it cuts off the > path at the first space. > > The relevant code section is: > > <Binary Id='CMDEXE' SourceFile='C:\WINDOWS\System32\cmd.exe' /> > > <CustomAction Id='LaunchSetup' BinaryKey='CMDEXE' > Execute='deferred' > ExeCommand='/k "[INSTALLDIR]"/myprogram.exe' Return='asyncWait' > /> > > The result is this: > > 'C:\Program' is not recognized as an internal or external command, > operable program or batch file. > > C:\WINDOWS\system32> > > I've tried single-quote, double-quote, multiple-quotes, " , nothing > works. > > > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users