Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 27th May 2005, 09:55   #1
Angus Leeming
Junior Member
 
Join Date: May 2005
Posts: 33
A better posting on MUI_STARTMENUPAGE

Re-reading my post of yesterday, I see that I didn't express myself very clearly. I hope that I'll do better this time.

The attached, self contained, .nsi file fails to compile with this error:

!define: "MUI_STARTMENUPAGE_REGISTRY_ROOT"="$ProductRootKey"
!define: "MUI_STARTMENUPAGE_REGISTRY_KEY"="Software\Microsoft\Windows\CurrentVersion\Uninstall\LyX"
!define: "MUI_STARTMENUPAGE_REGISTRY_VALUENAME"="Start Menu Folder"
!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

The reason for the error is clear enough; it doesn't like the variable $ProductRootKey. However, I would like to pass in either "HKLM" or "HKCU", depending on some previously set option. See the script.

Any ideas?
Angus
Attached Files
File Type: nsi trial.nsi (5.3 KB, 54 views)
Angus Leeming is offline   Reply With Quote
Old 27th May 2005, 10:55   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
Version 2.06 accepts SHCTX as a registry root key. It's replaced by HKLM or HKCU depending on SetShellVarContext.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 27th May 2005, 11:10   #3
Angus Leeming
Junior Member
 
Join Date: May 2005
Posts: 33
Bingo! Many thanks!

Angus
Angus Leeming is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump