diff options
author | Araq <rumpf_a@web.de> | 2014-10-17 18:18:46 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-10-17 18:18:46 +0200 |
commit | 56f1f3d4bce3e9e52e15e3569668d3dacc1c5f77 (patch) | |
tree | 2b4e7e67f32e1e06c320cad3de8742615f1d3273 /tools/niminst | |
parent | 4accf4292997bda0e9746a152ba202c646e01e11 (diff) | |
download | Nim-56f1f3d4bce3e9e52e15e3569668d3dacc1c5f77.tar.gz |
more improvements for the NSIS installer
Diffstat (limited to 'tools/niminst')
-rw-r--r-- | tools/niminst/nsis.tmpl | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tools/niminst/nsis.tmpl b/tools/niminst/nsis.tmpl index cea7e0683..7249dca63 100644 --- a/tools/niminst/nsis.tmpl +++ b/tools/niminst/nsis.tmpl @@ -94,8 +94,8 @@ SectionEnd #for download in c.downloads: # inc i # let d = download.split('|') -# if d.len != 5: -# quit("download string needs 5 parts: " & download) +# if d.len != 5 and d.len != 6: +# quit("download string needs 5..6 parts: " & download) # end if # let sectionName = d[0] # let dir = d[1] @@ -115,6 +115,12 @@ SectionEnd MessageBox mb_iconstop "Error: $0" ;Show cancel/error message ${EndIf} +# if d.len >= 6: +# let startMenuEntry = d[5] +# let e = splitFile(startMenuEntry).name.capitalize + CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\?{e}.lnk" "$INSTDIR\?dir\?{startMenuEntry.toWin}" +# end if + ; Shortcuts !insertmacro MUI_STARTMENU_WRITE_BEGIN Application !insertmacro MUI_STARTMENU_WRITE_END @@ -149,8 +155,8 @@ FunctionEnd Function un.onInit MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Remove $(^Name) from your computer." IDYES +2 - !insertmacro MULTIUSER_UNINIT Abort + !insertmacro MULTIUSER_UNINIT FunctionEnd Section Uninstall |