Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   !system not recognizing short file name ? (http://forums.winamp.com/showthread.php?t=232789)

msdarmawan 8th December 2005 04:47

!system not recognizing short file name ?
 
I use !system but end up with following error :

!system: "C:\Program Files\NSIS\Bin\lzma "e" "C:\Program Files\NSIS\Contrib\DcryptDll\Ncrypt\Ncrypt.exe" "C:\Program Files\NSIS\Contrib\DcryptDll\Ncrypt.lza" "
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
!system: returned 1, aborting
Error in script "stdin" on line 214 -- aborting creation process

The script is :
!system '${NSISDIR}\Bin\lzma "e" "${NSISDIR}\Contrib\DcryptDll\Ncrypt\Ncrypt.exe" \
"${NSISDIR}\Contrib\DcryptDll\Ncrypt.lza" ' = 0

Advice carefully please...
thanks in advance...

msdarmawan 8th December 2005 04:51

Sorry wrong title, it should be :
!system not recognizing long file name ?

flyakite 8th December 2005 05:52

You're missing quotes around the first ${NSISDIR} path.

You have: !system '${NSISDIR}\Bin\lzma "e".....

And it should be: !system '"${NSISDIR}\Bin\lzma" "e".....

msdarmawan 8th December 2005 06:01

Already fix that...
But it still have the same error...

Advice more please...

flyakite 8th December 2005 06:07

Oh, probably because you have:

${NSISDIR}\Bin\lzma

That's not pointing to an actual file, it's just point to a directory. The errors says mentions it's not a valid internal or external command, OPERABLE PROGRAM or batch file.

msdarmawan 8th December 2005 06:12

I have already change to

${NSISDIR}\Bin\lzma.exe

and check that lzma.exe is exist and running well on command prompt.

Another possibility... ???

onad 10th December 2005 23:28

For debugging e.g. silent installs (or yours) a messagebox with displaying the variables at that moment my come in very handy:

strcpy $0 "${NSISDIR}\Bin\lzma.exe"
MessageBox MB_OK "My value is now: $0"

BTW you are not confusing INSTALLTIME with BUILDTIME variables and locations are you?

Afrow UK 11th December 2005 11:00

That would require compilation of the installer of course, so I'd recommend using !error "${NSISDIR}\Bin\lzma.exe"

-Stu

Comm@nder21 11th December 2005 13:08

Quote:

BTW you are not confusing INSTALLTIME with BUILDTIME variables and locations are you?
nope, he's not, but you are! :)
afrow's solution should work.

shrekkie 26th January 2006 01:04

I am having the same problem here, I am trying to call Cabwiz.exe to create a cab..
code:

!system '"C:\Program Files\Windows CE Tools\wce420\POCKET PC 2003\Tools\cabwiz.exe" "${APPINF}.inf"'


APPINF is already defined by the way...
code:

'C:\Program' is not recognized as an internal or external command, operable program or batch file.


Afrow UK 26th January 2006 08:16

Try:
!system '"%COMSPEC%" /C "C:\Program Files\Windows CE Tools\wce420\POCKET PC 2003\Tools\cabwiz.exe" "${APPINF}.inf"'

-Stu

kichik 26th January 2006 17:13

Use !execute instead. It's some weird fetish of the command line processor to remove the first set of quotes, if the command line contains any other quotes. Alternatively, you can use a short file name for the executable.

shrekkie 27th January 2006 01:02

Quote:

Originally posted by Afrow UK
[B]Try:
!system '"%COMSPEC%" /C "C:\Program Files\Windows CE Tools\wce420\POCKET PC 2003\Tools\cabwiz.exe" "${APPINF}.inf"'
That worked with a bit of modification...
code:

!system '"$%COMSPEC% /C" "C:\Program Files\Windows CE Tools\wce420\POCKET PC 2003\Tools\cabwiz.exe" "${APPINF}.inf"'



So thank you for your efforts everybody :)


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

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.