- NSIS Discussion
- The bare minimum
Archive: The bare minimum
SteveRussell
22nd July 2006 00:52 UTC
The bare minimum
In my first attempt to use NullSoft, I have experimented with the sample "The bare minimum." Its content is:
# name the installer
outFile "installer.exe"
# default section start; every NSIS script has at least one section.
section
# default section end
sectionEnd
--------
For testing purposes, I have created the .nis file in this directory:
C:\Program Files\LS\NSIS_Script_Editor
The NSIS Script Editor log ends with these 2 lines:
!define "MUI_INSERT_NSISCONF" = ""
Can't open script "C\Program"
I have read various things about that first line, but still I must ask, What am I lacking?
Mark Nascimento
22nd July 2006 05:23 UTC
put some tomatoes there.
OutFile "installer.exe"
Section
MessageBox MB_Ok|MB_topmost "A car! pluft Where!? pluft"
SectionEnd
SteveRussell
22nd July 2006 05:51 UTC
I'm not quite sure what the tomatoes comment means, but I gave your notes a whirl. Here's the sum of what I now have in my editor:
OutFile "installer.exe"
Section
MessageBox MB_Ok|MB_topmost "A car! pluft Where!? pluft"
SectionEnd
The results are exactly the same.
Can't open script "C:\Program"
I would greatly appreciate any further assistance here. Obviously there is a simple something that I am not understanding, and it's like having the door to NSIS barred.
Mark Nascimento
22nd July 2006 06:14 UTC
I don't understand.
>Try creating the .nis file in a DOS style path: "C:\Test\X.nsi" (no spaces) If you run the file from the run box (window+R), will fail if not in DOS style.
C:\Program indicates that the path has ended.
>If the program is running, there is also an error. Press Ctrl Alt Del before compiling to verify.
>NSIS is properly installed? (you've not copied the entire path to other, do you?)
>Are you using nsisedit? (very good editor)
>Some kind of antivirus?
>Ran scandisk ? - this happens when there is an error on hd.
SteveRussell
22nd July 2006 06:44 UTC
Thank you, Mark. I loaded your script into MAKENSISW and tested the installer, and it's perfect.
So why am I not able to compile and execute in NSIS Script Editor? It seems to me that it is related to the editor using MAKENSIS rather than MAKENSISW ? I paid $25 to download that editor and can't get it to compile and run the installer.
There must be something else I'm not understanding.
Mark Nascimento
22nd July 2006 07:16 UTC
GoTo http://hmne.sourceforge.net/
or (the two lines below are only one link, one line)
"http://prdownloads.sourceforge.net/hmne/nisedit2.0.3.exe?download"
It"s free. Edit, correct misstypes, compiles and execute.
There is only a little bug on find/replace all.
I don't know about your editor. Sorry.
Here it goes: One tomato screamed to his friend:
- A Car !
pluft**$#@
And the other goes:
- Where ?!
pluft**$#@
Programming can't be boring. Be patient with nsis.
SteveRussell
22nd July 2006 16:25 UTC
Maybe I got ripped off when I bought the editor from Labour-Saving Software Labs. Their product is called NSIS Script Editor. With that product, I have not yet succeeded in compiling the script, nor does the Help menu item work.
pergh
15th August 2006 14:20 UTC
Problem
Originally posted by SteveRussell
The results are exactly the same.
Can't open script "C:\Program"
[/B]
Seems like a long filename problem to me. Try accessing the script with 8+3-names instead. You know, those that look like "C:\PROGRA~1\yada\yada\script.nsi".
Or, create your test directory in a path that contains no spaces.
Regards,
Per Gunnar Hansø