Old 6th January 2006, 18:52   #1
AndyM
Junior Member
 
AndyM's Avatar
 
Join Date: Dec 2005
Location: Canada
Posts: 18
Quoting a system command

Hello. I have the following:

!system '"${NSISDIR}\Bin\foo"' = 0

Trying to compile this using 2.12 I get this:

!system: ""C:\Program Files\NSIS\Bin\foo""
'C:\Program' is not recognized as an internal or external command, operable program or batch file.

If I remove the comparison:

!system '"${NSISDIR}\Bin\foo"'

...it compiles.

Bug?

- Andy
AndyM is offline   Reply With Quote
Old 6th January 2006, 19:15   #2
AndyM
Junior Member
 
AndyM's Avatar
 
Join Date: Dec 2005
Location: Canada
Posts: 18
[Stupd message board won't let me edit my own posts...]

I forgot to mention that I'm running Windows 2000.

- Andy
AndyM is offline   Reply With Quote
Old 6th January 2006, 19:22   #3
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Works fine for me with ${NSISDIR}\Bin\GenPat.exe. Please include a complete example.

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 6th January 2006, 19:49   #4
AndyM
Junior Member
 
AndyM's Avatar
 
Join Date: Dec 2005
Location: Canada
Posts: 18
Having tried a whole slew of things, I think it is actually an error with the error message...

It is truncating "C:\Program Files\NSIS\Bin\foo" to "C:\Program".

Based on the error message, I thought it was trying to execute "C:\Program", but it probably isn't - it is probably trying "C:\Program Files\NSIS\Bin\foo", and since I had a typo in the path it couldn't execute it.

- Andy
AndyM 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