Post by Matt on Apr 29, 2009 21:01:55 GMT
Okay, so the time I have been dreading for ages is at hand. I finished a scenario (gasp, horror).
Now the custom installer thingey I have known would be a bitch. I finished setting my files up correctly for installation in the correct folders. I created my install and uninstall bat files, which went suprisingly smooth. I then proceeded to the .nsi file. Yay, this is where my fun ends.
I used MWS to create a script to install just the graphics changes, and then I wrote my own for a full install of sound files in both the scenario and stream folders, campaign file, multiple slide show files (.mm and .slp), dat file, 3 language files, an icon file and a few other things I seem to forget now. To the best of my knowledge this script looks right.
Now when I run NSIS to compile my script, I get errors (not the end of the world, i sort of expected to have to adjust a few lines). The thing is I can't run any scripts, not even the sample one that comes with MWS or the one that comes in Dave Earl's tutorial. Worse, the errors are in lines that call macro's, which is beyond my scope of understanding.
For the record here is how the compile goes no matter what script I use:
"Usage:
- File | Load Script...
- Drag the .nsi file into this window
- Right click the .nsi file and choose "Compile NSIS Script"
then I drag my nsi file in, and it plugs away, warning me about crap like comments which I am not worried about. It aborts with this message:
'Error in macro MUI_INTERFACE on macroline 64
Error in macro MUI_PAGE_INIT on macroline 2
Error in macro MUI_PAGE_WELCOME on macroline 5
Error in script "C:\Users\matt\Desktop\INSTALL FOLDER\TQDv1.nsi" on line 69 -- aborting creation process'
Now the first 3 errors are within the macros, so I have no clue how to fix that. The fourth one is on line 69, which is:
!insertmacro MUI_PAGE_WELCOME
so again, a macro issue. Also, If I try to run your example that comes with MWS, I get this error:
'Error in macro MUI_PAGE_LICENSE on macroline 21
Error in script "C:\Users\matt\Desktop\Mod Workshop\examples\maulscript.nsi" on line 24 -- aborting creation process'
Again line 24 in your code is about macros:
!insertmacro MUI_PAGE_LICENSE "${MY_SOURCE_DIRECTORY}\${EULA_NAME}.txt"
So clearly all the issues are related. The only thing I can think of is maybe the newest version of NSIS is not compatible or something? I downloaded it this week and installed it (new laptop). Other than that, I bow to your superior knowledge in this field
Any ideas is greatly appreciated.
Now the custom installer thingey I have known would be a bitch. I finished setting my files up correctly for installation in the correct folders. I created my install and uninstall bat files, which went suprisingly smooth. I then proceeded to the .nsi file. Yay, this is where my fun ends.
I used MWS to create a script to install just the graphics changes, and then I wrote my own for a full install of sound files in both the scenario and stream folders, campaign file, multiple slide show files (.mm and .slp), dat file, 3 language files, an icon file and a few other things I seem to forget now. To the best of my knowledge this script looks right.
Now when I run NSIS to compile my script, I get errors (not the end of the world, i sort of expected to have to adjust a few lines). The thing is I can't run any scripts, not even the sample one that comes with MWS or the one that comes in Dave Earl's tutorial. Worse, the errors are in lines that call macro's, which is beyond my scope of understanding.
For the record here is how the compile goes no matter what script I use:
"Usage:
- File | Load Script...
- Drag the .nsi file into this window
- Right click the .nsi file and choose "Compile NSIS Script"
then I drag my nsi file in, and it plugs away, warning me about crap like comments which I am not worried about. It aborts with this message:
'Error in macro MUI_INTERFACE on macroline 64
Error in macro MUI_PAGE_INIT on macroline 2
Error in macro MUI_PAGE_WELCOME on macroline 5
Error in script "C:\Users\matt\Desktop\INSTALL FOLDER\TQDv1.nsi" on line 69 -- aborting creation process'
Now the first 3 errors are within the macros, so I have no clue how to fix that. The fourth one is on line 69, which is:
!insertmacro MUI_PAGE_WELCOME
so again, a macro issue. Also, If I try to run your example that comes with MWS, I get this error:
'Error in macro MUI_PAGE_LICENSE on macroline 21
Error in script "C:\Users\matt\Desktop\Mod Workshop\examples\maulscript.nsi" on line 24 -- aborting creation process'
Again line 24 in your code is about macros:
!insertmacro MUI_PAGE_LICENSE "${MY_SOURCE_DIRECTORY}\${EULA_NAME}.txt"
So clearly all the issues are related. The only thing I can think of is maybe the newest version of NSIS is not compatible or something? I downloaded it this week and installed it (new laptop). Other than that, I bow to your superior knowledge in this field
Any ideas is greatly appreciated.