Old 22nd August 2007, 16:44   #1
o_owd
Senior Member
 
o_owd's Avatar
 
Join Date: Feb 2003
Location: TGM, Romania
Posts: 176
Send a message via ICQ to o_owd Send a message via Yahoo to o_owd
ExecWait bug found

Hello,

I wanted to make a 'launcher' for a application. A simple one, something like this :
PHP Code:
Name "LAUNCHER"

OutFile "launcher.exe"

Section bla
    
...
    
ExecWait "program name.exe"
    
...
SectionEnd 
The exe file that I need to open with ExecWait has spaces in the name.
Like "program name.exe"
In the same folder exists a file "program.exe"

The "program.exe" is launched, not "program name.exe" !

Try it.

Thanks,
OJi.
o_owd is offline   Reply With Quote
Old 22nd August 2007, 16:49   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
ExecWait `"program name.exe"`

Stu
Afrow UK is offline   Reply With Quote
Old 22nd August 2007, 17:31   #3
o_owd
Senior Member
 
o_owd's Avatar
 
Join Date: Feb 2003
Location: TGM, Romania
Posts: 176
Send a message via ICQ to o_owd Send a message via Yahoo to o_owd
Quote:
Originally posted by Afrow UK
ExecWait `"program name.exe"`
Yes, that way it works. But I quoted the text, it should work.
Guess this is not a bug after all...
o_owd is offline   Reply With Quote
Old 22nd August 2007, 17:39   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
If you typed program name.exe in command prompt without quotes then program.exe would be ran with name.exe as its parameter. Yes you used quotes, but only to prevent it becoming two parameters for ExecWait.

Stu
Afrow UK is offline   Reply With Quote
Old 22nd August 2007, 17:54   #5
o_owd
Senior Member
 
o_owd's Avatar
 
Join Date: Feb 2003
Location: TGM, Romania
Posts: 176
Send a message via ICQ to o_owd Send a message via Yahoo to o_owd
you are right.

my mistake.
o_owd is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump