|
|
|
|
#1 |
|
Junior Member
|
!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... |
|
|
|
|
|
#2 |
|
Junior Member
|
Sorry wrong title, it should be :
!system not recognizing long file name ? |
|
|
|
|
|
#3 |
|
Member
|
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"..... |
|
|
|
|
|
#4 |
|
Junior Member
|
Already fix that...
But it still have the same error... Advice more please... |
|
|
|
|
|
#5 |
|
Member
|
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. |
|
|
|
|
|
#6 |
|
Junior Member
|
I have already change to
${NSISDIR}\Bin\lzma.exe and check that lzma.exe is exist and running well on command prompt. Another possibility... ??? |
|
|
|
|
|
#7 |
|
Senior Member
Join Date: Dec 2004
Location: Turkey
Posts: 447
|
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" |
|
|
|
|
|
#8 |
|
Moderator
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 |
|
|
|
|
|
#9 | |
|
Major Dude
|
Quote:
![]() afrow's solution should work. hand by comm@nder21 ---------- WiKi pages:CreateInternetShortcut|Enhanced FindWindow|Parse CSV-Data|Open/Close CD-Drive|Installer without Icon|Vista application compatibility |
|
|
|
|
|
|
#10 |
|
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: APPINF is already defined by the way... code: |
|
|
|
|
|
#11 |
|
Moderator
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 |
|
|
|
|
|
#12 |
|
M.I.A.
[NSIS Dev, Mod] 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 |
|
|
|
|
|
#13 | |
|
Junior Member
Join Date: Jan 2006
Posts: 5
|
Quote:
code: So thank you for your efforts everybody
|
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|