Program group
You know in some installs you get a page asking you to add the program to a group. Is there an NSIS page extant that I can use for this? Googled it but couldn't find any info.
14 posts
To configure the Startmenu page put these *before* the page macro:Var $StartMenuFolder
...
!insertmacro MUI_PAGE_STARTMENU MyPageID $StartMenuFolder
...
Section "Shortcuts"
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Run My Application.lnk" "$INSTDIR\Program.exe"
SectionEnd
And in your Uninstaller you would use:!define MUI_STARTMENUPAGE_TEXT_TOP "$(PRODUCT_NAME)"
!define MUI_STARTMENUPAGE_TEXT_CHECKBOX "Checkbox text"
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "My Company\$(PRODUCT_NAME)"
!define MUI_STARTMENUPAGE_REGISTRY_ROOT HKCU
!define MUI_STARTMENUPAGE_REGISTRY_KEY "SOFTWARE\My Company\$(PRODUCT_NAME)"
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Startmenu"
Section Uninstall
...
!insertmacro MUI_STARTMENU_GETFOLDER MyPageID $0
Delete "$SMPROGRAMS\$0\Your Shortcut.lnk"
...
SectionEnd
Originally posted by richiebabes
What is the check box for? When I check it everything is grayed out. What's the point of that? What would the text typically be?
I get an error: LangString "PRODUCT_NAME" is not set in language table of language English
I have a !define for PRODUCT_NAME
Notice () versus {} !!!!define MyDefine "Some important string"
LangString MyLangStr ${LANG_ENGLISH} "Hello world!"
LangString MyLangStr ${LANG_GERMAN} "Hallo Welt!"
Section
DetailPrint "This is a define: ${MyDefine}"
DetailPrint "This is a localized string: $(MyLangStr)"
SectionEnd
Originally posted by richiebabesMake sure you use a unique Registry key!
Also the registry key - what would I put for "My Company"? My company or leave it for the user or what?
Help! Can't find any documentation on it!
Originally posted by richiebabesYou won't find this on your system, unless you have installed Folding@Home. It was just an example 🙄
Where will I find this?
Software\PandeGroup\Folding@home\5.03
Var StartmenuFolder
...
MUI_PAGE_STARTMENU MyStartMenuPage $StartmenuFolder
...
Section "-Shortcuts"
...
!insertmacro MUI_STARTMENU_WRITE_BEGIN MyStartMenuPage
CreateFolder "$SMPROGRAMS\StartmenuFolder"
CreateShortcut "$SMPROGRAMS\StartmenuFolder\Shortcut.lnk" "$INSTDIR\Program.exe"
...
!insertmacro MUI_STARTMENU_WRITE_END
...
SectionEnd
...
Section "Uninstall"
...
!insertmacro MUI_STARTMENU_GETFOLDER MyStartMenuPage $R0
Delete "$SMPROGRAMS\$R0\Shortcut.lnk"
RMDir "$SMPROGRAMS\$R0"
...
SectionEnd