spurrymoses
19th May 2005 09:17 UTC
Not able to create a valid script using HMNIS Edit Wizard and NSIS
Hi,
I just downloaded NSIS 2.06 and HM NSIS Edit 2.0.3 and whatever I do in the Wizard ("New script from wizard"), the resulting scripts always have errors.
I can't go back and give all the errors, but here's the latest one below.
Probably to be more concise: Is there a combination of versions that is stable together - at least in terms of using the wizard in HM NSIS?
I've downloaded NSIS before and had no problems. These errors that are way beyond my debugging capability at this stage.
!insertmacro: MUI_PAGE_STARTMENU
Usage: ReadRegStr $(user_var: output) rootkey subkey entry
root_key=(HKCR|HKLM|HKCU|HKU|HKCC|HKDD|HKPD)
Error in macro MUI_FUNCTION_STARTMENUPAGE on macroline 10
Error in macro MUI_PAGE_STARTMENU on macroline 34
Error in script
Aaron's rod
19th May 2005 11:38 UTC
I don't have any problems creating MUI installer with NSIS 2.06 and HM NSIS Edit 2.0.3 and I used all the features what wizard haves.
I sorry but that error message don't help at all. Try to click those error messages to see what's the problem in macro MUI_FUNCTION_STARTMENUPAGE on macroline 10 and in macro MUI_PAGE_STARTMENU on macroline 34
One possibility is that you haven't installed all the necessary NSIS components to create MUI installer or it could be bug MUI language file or... maybe not. :)
spurrymoses2
20th May 2005 04:50 UTC
Thanks,
Well, the script only gets as far as below (I've cut portions to avoid overkill).
I haven't done anything fancy. Just downloaded the 2 programs, ran the wizard and I get several errors upon compilation.
Script generated by the HM NIS Edit Script Wizard.
; HM NIS Edit Wizard helper defines
!define PRODUCT_NAME "Bla Applications"
!define PRODUCT_VERSION "1.0"
!define PRODUCT_PUBLISHER "bla"
!define PRODUCT_WEB_SITE "http://www.bla.com"
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\bla.exe"
!define PRODUCT_STARTMENU_REGVAL "NSIS:StartMenuDir"
; MUI 1.67 compatible ------
!include "MUI.nsh"
; MUI Settings
!define MUI_ABORTWARNING
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico"
; Welcome page
!insertmacro MUI_PAGE_WELCOME
; Components page
!insertmacro MUI_PAGE_COMPONENTS
; Directory page
!insertmacro MUI_PAGE_DIRECTORY
; Start menu page
var ICONS_GROUP
!define MUI_STARTMENUPAGE_NODISABLE
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "Bla Applications"
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
!define MUI_STARTMENUPAGE_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "${PRODUCT_STARTMENU_REGVAL}"
!insertmacro MUI_PAGE_STARTMENU Application $ICONS_GROUP
And the compilation says this:
!define: "MUI_STARTMENUPAGE_REGISTRY_ROOT"="${PRODUCT_UNINST_ROOT_KEY}"
!define: "MUI_STARTMENUPAGE_REGISTRY_KEY"="${PRODUCT_UNINST_KEY}"
!define: "MUI_STARTMENUPAGE_REGISTRY_VALUENAME"="NSIS:StartMenuDir"
!insertmacro: MUI_PAGE_STARTMENU
Usage: ReadRegStr $(user_var: output) rootkey subkey entry
root_key=(HKCR|HKLM|HKCU|HKU|HKCC|HKDD|HKPD|SHCTX)
Error in macro MUI_FUNCTION_STARTMENUPAGE on macroline 10
Error in macro MUI_PAGE_STARTMENU on macroline 34
Error in script "D:\petervdw\bla\installer\blaapps.nsi" on line 31 -- aborting creation process
spurrymoses2
20th May 2005 04:58 UTC
Sorry about the extra post, this forum was driving me nuts ;-) My username is invalid yet I can post as Guest with that name but I can't edit the posts... I was very confused.
Can someone delete the 1st message for me.
kichik
20th May 2005 12:02 UTC
First message deleted.
Your script's problem is that PRODUCT_UNINST_ROOT_KEY and PRODUCT_UNINST_KEY are not defined.
spurrymoses2
21st May 2005 02:44 UTC
Originally posted by kichik
Your script's problem is that PRODUCT_UNINST_ROOT_KEY and PRODUCT_UNINST_KEY are not defined. [/B]
Ah, thanks. Probably because I didn't actually want an uninstall and I unticked these in the HM NSIS wizard.
So, the wizard doesn't create the right script given the options. This is why it never worked even though I changed some things. If I always opted to have no uninstall options, the wizard would always leave those undefined.
I should contact HM NSIS edit and see if their interested in this wizard-generated script problem.
Should I pursue this on the part of NSIS... it seems like a fairly nasty set of error messages considering the actual problem?
Or is this too harsh in your opinion?
I mean, if it said "PRODUCT_UNINST_ROOT_KEY undefined", then even I could have fixed it ;-)