Command line executables with character output launch just fine without 
cmd.exe--I do it all the time.  The interface is immaterial.  Security and/or 
execution context (32-bit versus 64-bit) are another matter, but these can be 
resolved once you know the true execution requirements.

--
John Merryweather Cooper
Build & Install Engineer - ESA
Jack Henry & Associates, Inc.®
Shawnee Mission, KS  66227
Office:  913-341-3434 x791011
jocoo...@jackhenry.com
www.jackhenry.com



-----Original Message-----
From: Gerry Reno [mailto:gr...@verizon.net] 
Sent: Friday, December 20, 2013 1:04 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] ExeCommand will not accept any path with spaces

On 12/20/2013 01:57 PM, Jeremy Farrell wrote:
>> From: Gerry Reno [mailto:gr...@verizon.net]
>> Sent: Friday, December 20, 2013 6:46 PM On 12/20/2013 01:43 PM, 
>> Jeremy Farrell wrote:
>>>> From: Gerry Reno [mailto:gr...@verizon.net]
>>>> Sent: Friday, December 20, 2013 6:28 PM On 12/20/2013 01:16 PM, 
>>>> Edwin Castro wrote:
>>>>> On 12/20/13, 9:49 AM, Gerry Reno wrote:
>>>>>> It's not a Windows program.  It's a CUI program that you launch
>> from
>>>> cmd.exe
>>>>> Which you can still more easily start directly. If you insist in 
>>>>> wrapping the call with cmd.exe then you MUST adhere to cmd.exe's
>>>> funky
>>>>> quotation rules.
>>>>>
>>>>> Do it the easy way and remove cmd.exe from your invocation.
>>>>>
>>>>> It looks like you don't have command line arguments for
>>>> myprogram.exe...
>>>>> Assuming the File/@Id for myprogram.exe is myprogram.exe, I would
>> try
>>>>> <CustomAction Id="Launch_myprogram.exe"
>>>>>               FileKey="myprogram.exe"
>>>>>               ExeCommand=""
>>>>>               Execute="deferred"
>>>>>               Return="asyncWait"/>
>>>>>
>>>>> Or to run myprogram.exe without showing the Command Prompt
>> window...
>>>>> <SetProperty Id="Launch_myprogram.exe"
>>>>>              Before="Launch_myprogram.exe"
>>>>>              Sequence="execute"
>>>>>              Value="&quot;[#myprogram.exe]&quot;"/>
>>>>> <CustomAction Id="Launch_myprogram.exe"
>>>>>               BinaryKey="CAQuietExec"
>>>>>               Execute="deferred"
>>>>>               Return="asyncWait"/>
>>>> I not certain this will work.  It might with something like a .bat
>> file
>>>> since the system knows that .bat files are executed by cmd.exe.
>>>>
>>>> But what is there to tell the system that my exe requires being run
>> by
>>>> cmd.exe?
>>> Why does your program require being run by cmd.exe? How does it know
>> whether or not it was run by cmd.exe? It sounds rather unusual.
>>
>> Read first line.
> The line which says it's a CUI program? That's clear, you've said it many 
> times, but so what? Answer question.

This CUI program requires being executed in a command shell.  It's 
character-based not graphical-based.


>
>>> If myprogram.exe is a file which is being installed by this
>> installer, you've got other complications as well.
>>
>> How so?  Care to explain?
> Not my area of expertise, plenty of discussion in the archives. Depending on 
> the sequencing of the install the file may not be on the system at the time 
> you want to execute it.
So just normal WIX stuff.

>
> ----------------------------------------------------------------------
> -------- 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.c
> lktrk _______________________________________________
> 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
NOTICE: This electronic mail message and any files transmitted with it are 
intended
exclusively for the individual or entity to which it is addressed. The message, 
together with any attachment, may contain confidential and/or privileged 
information.
Any unauthorized review, use, printing, saving, copying, disclosure or 
distribution 
is strictly prohibited. If you have received this message in error, please 
immediately advise the sender by reply email and delete all copies.


------------------------------------------------------------------------------
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

Reply via email to