Skip to content

Commit

Permalink
Merge pull request RocketChat#103 from coskuntekin/master
Browse files Browse the repository at this point in the history
added desktop shortcut for windows
  • Loading branch information
szwacz committed Jan 9, 2016
2 parents e254057 + ad88e08 commit 49d5389
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources/windows/installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ Section "Install"
; Create start menu shortcut
SetShellVarContext all
CreateShortCut "$SMPROGRAMS\${productName}.lnk" "$INSTDIR\${exec}" "" "$INSTDIR\icon.ico"
; Create desktop shortcut
CreateShortCut "$DESKTOP\${productName}.lnk" "$INSTDIR\${exec}" "" "$INSTDIR\icon.ico"

WriteUninstaller "${uninstaller}"

Expand Down Expand Up @@ -155,7 +157,8 @@ Section "Uninstall"

SetShellVarContext all
Delete "$SMPROGRAMS\${productName}.lnk"

; Remove desktop shortcut
Delete "$DESKTOP\${productName}.lnk"
; Remove whole directory from Program Files
RMDir /r "$INSTDIR"

Expand Down

0 comments on commit 49d5389

Please sign in to comment.