Old 8th December 2005, 04:47   #1
msdarmawan
Junior Member
 
msdarmawan's Avatar
 
Join Date: Jul 2005
Location: Jakarta, Indonesia
Posts: 20
Send a message via Yahoo to msdarmawan
!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 is offline   Reply With Quote
Old 8th December 2005, 04:51   #2
msdarmawan
Junior Member
 
msdarmawan's Avatar
 
Join Date: Jul 2005
Location: Jakarta, Indonesia
Posts: 20
Send a message via Yahoo to msdarmawan
Sorry wrong title, it should be :
!system not recognizing long file name ?
msdarmawan is offline   Reply With Quote
Old 8th December 2005, 05:52   #3
flyakite
Member
 
Join Date: Dec 2003
Location: Chicago
Posts: 50
Send a message via AIM to flyakite Send a message via Yahoo to flyakite
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".....
flyakite is offline   Reply With Quote
Old 8th December 2005, 06:01   #4
msdarmawan
Junior Member
 
msdarmawan's Avatar
 
Join Date: Jul 2005
Location: Jakarta, Indonesia
Posts: 20
Send a message via Yahoo to msdarmawan
Already fix that...
But it still have the same error...

Advice more please...
msdarmawan is offline   Reply With Quote
Old 8th December 2005, 06:07   #5
flyakite
Member
 
Join Date: Dec 2003
Location: Chicago
Posts: 50
Send a message via AIM to flyakite Send a message via Yahoo to flyakite
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.
flyakite is offline   Reply With Quote
Old 8th December 2005, 06:12   #6
msdarmawan
Junior Member
 
msdarmawan's Avatar
 
Join Date: Jul 2005
Location: Jakarta, Indonesia
Posts: 20
Send a message via Yahoo to msdarmawan
I have already change to

${NSISDIR}\Bin\lzma.exe

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

Another possibility... ???
msdarmawan is offline   Reply With Quote
Old 10th December 2005, 23:28   #7
onad
Senior Member
 
onad's Avatar
 
Join Date: Dec 2004
Location: Turkey
Posts: 447
Lightbulb

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?

"Just do it"
onad is offline   Reply With Quote
Old 11th December 2005, 11:00   #8
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
That would require compilation of the installer of course, so I'd recommend using !error "${NSISDIR}\Bin\lzma.exe"

-Stu
Afrow UK is offline   Reply With Quote
Old 11th December 2005, 13:08   #9
Comm@nder21
Major Dude
 
Join Date: Jul 2003
Location: germany, b-w
Posts: 734
Send a message via ICQ to Comm@nder21
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.
Comm@nder21 is offline   Reply With Quote
Old 26th January 2006, 01:04   #10
shrekkie
Junior Member
 
Join Date: Jan 2006
Posts: 5
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.

shrekkie is offline   Reply With Quote
Old 26th January 2006, 08:16   #11
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Try:
!system '"%COMSPEC%" /C "C:\Program Files\Windows CE Tools\wce420\POCKET PC 2003\Tools\cabwiz.exe" "${APPINF}.inf"'

-Stu
Afrow UK is offline   Reply With Quote
Old 26th January 2006, 17:13   #12
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 27th January 2006, 01:02   #13
shrekkie
Junior Member
 
Join Date: Jan 2006
Posts: 5
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
shrekkie 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