!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!