Skip to content
⌘ NSIS Forum Archive

Running NSIS EXE on CD

6 posts

backpacker299#

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#
If you're using Modern UI, just use the MUI_INSTALLOPTIONS_ macros.
Otherwise, use File.

-Stu
JasonFriday13#
Like this:
Function .oninit
;For MUI users:
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "yourpagefile.ini"

;For normal users:
File /oname=$PLUGINSDIR\yourpagefile.ini "yourpagefile.ini"
FunctionEnd