Old 5th September 2007, 07:29   #1
pozbremser
Member
 
Join Date: Mar 2007
Posts: 68
!define with StartMenu page

Hi,

it works
;Start Menu Folder Page Configuration
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "default folder"
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU"
!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\Modern UI Test"
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
!insertmacro MUI_PAGE_STARTMENU Application $STARTMENU_FOLDER

- in registry is
"HKCU\Software\Modern UI Test"
key is "Start Menu Folder"
value is "default folder" or what you choose

If I use defines "sm_registry_key" and "sm_registry_valuename",
only part of strings till space are used:

!define sm_registry_key "Software\Modern UI Test"
!define sm_registry_valuename "Start Menu Folder"

;Start Menu Folder Page Configuration
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "default folder"
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU"
!define MUI_STARTMENUPAGE_REGISTRY_KEY ${sm_registry_key}
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME ${sm_registry_valuename}

!insertmacro MUI_PAGE_STARTMENU Application $STARTMENU_FOLDER

- in registry is
"HKCU\Software\Modern"
key is "Start"
value is "default folder" or what you choose

Thanks!
Attached Files
File Type: nsi startmenu.nsi (3.4 KB, 334 views)
pozbremser is offline   Reply With Quote
Old 5th September 2007, 13:04   #2
pozbremser
Member
 
Join Date: Mar 2007
Posts: 68
if start menu path empty, but checkbox is checked
Install Button is disable.
pozbremser is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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