From 09bdf763a8eaacf839f384986b54083cd5371162 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Tue, 2 Feb 2021 02:14:14 -0500 Subject: [PATCH] Add desktop icon to Windows installer. --- installer.nsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/installer.nsi b/installer.nsi index 7847d750..1714a25c 100644 --- a/installer.nsi +++ b/installer.nsi @@ -86,7 +86,7 @@ Section "VCV Rack" VCV_RACK_SECTION WriteRegStr HKLM "Software\Classes\VCVRack.Patch\shell\open\command" "" '"$INSTDIR\Rack.exe" "%1"' ; Create shortcuts - CreateDirectory "$SMPROGRAMS" + CreateShortcut "$DESKTOP\VCV Rack.lnk" "$INSTDIR\Rack.exe" CreateShortcut "$SMPROGRAMS\VCV Rack.lnk" "$INSTDIR\Rack.exe" SectionEnd @@ -97,6 +97,7 @@ Section "Uninstall" ; Attempt to remove C:\Program Files\VCV if empty RMDir "$INSTDIR\.." + Delete "$DESKTOP\VCV Rack.lnk" Delete "$SMPROGRAMS\VCV Rack.lnk" DeleteRegKey HKLM "Software\VCV\Rack"