backpacker299
1st August 2006 15:08 UTC
Running NSIS EXE on CD
I'm trying to run an EXE file created with NSIS on a CD with a couple custom pages. I wrote an autorun .inf file to start the EXE when I put the CD in and the first two messages I get are cannot open file to write to for the custom page .inf files. It makes sense that it can't write to a CD and I get the same messages if I manually start the EXE off the CD. Is there a way to get around this?
Afrow UK
1st August 2006 15:11 UTC
You're meant to extract the INI files to $PLUGINSDIR
-Stu
backpacker299
1st August 2006 15:16 UTC
How exactly do I do that. I'm very new to NSIS or install scripts in general.
Afrow UK
1st August 2006 15:33 UTC
If you're using Modern UI, just use the MUI_INSTALLOPTIONS_ macros.
Otherwise, use File.
-Stu
JasonFriday13
1st August 2006 22:18 UTC
Like this:
Function .oninit
;For MUI users:
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "yourpagefile.ini"
;For normal users:
File /oname=$PLUGINSDIR\yourpagefile.ini "yourpagefile.ini"
FunctionEnd
backpacker299
2nd August 2006 14:14 UTC
Alright, I got it.
Thanks to all!