diff --git a/standalone-windows/installer.nsi b/standalone-windows/installer.nsi index a5940e601dc2b2bf45bb91728ffa0f7d2e77dd32..2b3751229b630e4675d8517bb1ab13f35f179209 100644 --- a/standalone-windows/installer.nsi +++ b/standalone-windows/installer.nsi @@ -32,6 +32,11 @@ Name "Puzzlestream" !insertmacro MUI_UNPAGE_CONFIRM !insertmacro MUI_UNPAGE_INSTFILES +!define MUI_FINISHPAGE_SHOWREADME "" +!define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED +!define MUI_FINISHPAGE_SHOWREADME_TEXT "Create Desktop Shortcut" +!define MUI_FINISHPAGE_SHOWREADME_FUNCTION finishpageaction + # start default section Section # copy files @@ -77,6 +82,10 @@ Section "uninstall" # uninstaller section end SectionEnd +Function finishpageaction +CreateShortcut "$DESKTOP\Puzzlestream.lnk" "$INSTDIR\Puzzlestream.exe" +FunctionEnd + Function .onInit ReadRegStr $R0 HKCU \