Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   ExecWait bug found (http://forums.winamp.com/showthread.php?t=276307)

o_owd 22nd August 2007 16:44

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.

Afrow UK 22nd August 2007 16:49

ExecWait `"program name.exe"`

Stu

o_owd 22nd August 2007 17:31

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

Afrow UK 22nd August 2007 17:39

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

o_owd 22nd August 2007 17:54

you are right.

my mistake. :down:


All times are GMT. The time now is 17:45.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.