From 2d3d8998dde1affa28b63e197f89a0f024bf252a Mon Sep 17 00:00:00 2001 From: Konstantin Dmitriev Date: Nov 22 2017 20:17:09 +0000 Subject: Synfig installer: Add desktop icon --- diff --git a/docker-builder-data/build/script/packet/synfigstudio-nsis.files/synfigstudio.nsi b/docker-builder-data/build/script/packet/synfigstudio-nsis.files/synfigstudio.nsi index b109cab..0763c0b 100644 --- a/docker-builder-data/build/script/packet/synfigstudio-nsis.files/synfigstudio.nsi +++ b/docker-builder-data/build/script/packet/synfigstudio-nsis.files/synfigstudio.nsi @@ -131,6 +131,15 @@ Section "Start Menu Shortcuts" CreateShortCut "$SMPROGRAMS\${PK_DIR_NAME}\${PK_NAME_FULL} (Debug Console).lnk" "$INSTDIR\${PK_EXECUTABLE}" "--console" "$INSTDIR\${PK_ICON}" 0 SectionEnd +Section "Desktop Icon" + SetRegView ${PK_ARCH} + + SetOutPath "$INSTDIR\bin" + + SetShellVarContext All + CreateShortCut "$DESKTOP\${PK_NAME_FULL}.lnk" "$INSTDIR\${PK_EXECUTABLE}" "" "$INSTDIR\${PK_ICON}" 0 +SectionEnd + ;-------------------------------- ; Uninstaller ;-------------------------------- @@ -159,6 +168,7 @@ Section "Uninstall" ; Remove shortcuts, if any SetShellVarContext All Delete "$SMPROGRAMS\${PK_NAME_FULL}\${PK_NAME_FULL}.lnk" + Delete "$DESKTOP\${PK_NAME_FULL}.lnk" Delete "$SMPROGRAMS\${PK_NAME_FULL}\Uninstall ${PK_NAME_FULL}.lnk" ; Remove directories used