Archive: After Installation Options


After Installation Options
Hello,

i use the nsis setup maker for my application. Now I want to get Options after my installation which the user can choose like

- "Add a Desktop Icon"
- "Add a Quick Launch Icon"
- "Associate *.m3l files by this application"

My problem is... I don´t know how to create this install options. I use the modern ui. Can anyone give me a simple example?? I´ve search this forum, the FAQs and documentation but I can´t find anything.

Thanks...

Greetings

Rainer, Germany


;--------------------------------
;Create Desktop Shortcuts Configuration

Section "Desktop Shortcut"
CreateShortCut "$DESKTOP\Link Name.lnk" "$INSTDIR\Name.exe" ""
SectionEnd

;--------------------------------
;Create ShortCuts Configuration

Section "Start Menu Shortcuts"
CreateDirectory "$SMPROGRAMS\${MUI_PRODUCT}"
CreateShortCut "$SMPROGRAMS\${MUI_PRODUCT}\Link Name.lnk" "$INSTDIR\Name.exe" "" "$INSTDIR\Name.exe" 0
CreateShortCut "$SMPROGRAMS\${MUI_PRODUCT}\Uninstall.lnk" "$INSTDIR\Uninstall.exe" "" "$INSTDIR\Uninstall.exe" 0
CreateShortCut "$SMPROGRAMS\${MUI_PRODUCT}\ReadMe.lnk" "$INSTDIR\readme.txt" "" "$INSTDIR\readme.txt" 0
SectionEnd


;--------------------------------
;Create Quick Launch Shortcuts Configuration

Section "Quick Launch Shortcuts"
CreateShortCut "$QUICKLAUNCH\Name.lnk" "$INSTDIR\Name.exe" ""
SectionEnd


If you want to use InstallOptions dialogs with Modern UI, look up Contrib\Modern UI\Readme.html
To make InstallOptions dialogs, have a look at Contrib\InstallOptions\Readme.html, and the example .ini files in that same directory.

-Stu


Help!
Wrong button :/


You could also try out HM NIS Editor as it has a built-in wizard to help generate IO page ini file with a visual layout.

Vytautas