Skip to content
⌘ NSIS Forum Archive

Newbee needing help

40 posts

jollyjoice#
ok, next. tryed the BG plugin again, it works fine but I get
!insertmacro: MUI_LANGUAGE
Error: Function named ".onGUIInit" already exists.
Error in macro MUI_FUNCTION_GUIINIT on macroline 2
Error in macro MUI_INSERT on macroline 11
Error in macro MUI_LANGUAGEFILE_BEGIN on macroline 4
!include: error in script: "C:\Program Files\NSIS\Contrib\Modern UI\Language files\English.nsh" on line 9
Error in macro MUI_LANGUAGE on macroline 5
Error in script "C:\Documents and Settings\admin2\Desktop\Simutrans.nsi" on line 61 -- aborting creation process

or a list of text thingys which havent worked and the installer is screwed. any ideas?
pengyou#
From the MUI ReadMe:

If you want add your own code to functions inserted by the Modern UI, such as the .onGUIInit function and the Page functions, create your own function and let the Modern UI functions call them. Use the defines to define the name of your functions.

Example:

!define MUI_CUSTOMFUNCTION_GUIINIT myGuiInit

Function myGUIInit
...your own code...
FunctionEnd
jollyjoice#
how do you work the Compare functions? I wnat to get it to compare the current installer with the one on my website and download it if necessary, all i can get it to do is say "you are uptodate" or download it regardless