From e193b1eddae0956cdddd8a9f20e5329f573ec35a Mon Sep 17 00:00:00 2001 From: Soapwood Date: Tue, 23 Jul 2024 23:25:24 +0100 Subject: [PATCH] [Install] Create Start Menu Shortcut and Desktop Shortcut at installation. --- Installer/VXMusic.nsi | 15 +++++++++++++++ VXMusicDesktop/VXMusicDesktop.csproj | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/Installer/VXMusic.nsi b/Installer/VXMusic.nsi index c9f3c56..eac38b7 100644 --- a/Installer/VXMusic.nsi +++ b/Installer/VXMusic.nsi @@ -40,6 +40,17 @@ Section "MainSection" SEC01 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" "NoModify" 1 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" "NoRepair" 1 + # Create shortcuts + # Copy .ico to output folder for shortcuts + File "${SOURCE_PATH}\VXMusicDesktop\Images\VXLogoIcon.ico" + + # Start Menu shortcut + CreateDirectory "$SMPROGRAMS\VXMusic" + CreateShortcut "$SMPROGRAMS\VXMusic\VXMusic.lnk" "$INSTDIR\VXMusicDesktop.exe" "" "$INSTDIR\VXLogoIcon.ico" + + # Desktop shortcut + CreateShortcut "$DESKTOP\VXMusic.lnk" "$INSTDIR\VXMusicDesktop.exe" "" "$INSTDIR\VXLogoIcon.ico" + # Create an uninstaller WriteUninstaller "$INSTDIR\UninstallVXMusic.exe" @@ -65,6 +76,10 @@ Section "Uninstall" # Delete AppData RMDir /r "${APPDATA_FOLDER}" + + # Remove shortcuts + Delete "$SMPROGRAMS\VXMusic\VXMusic.lnk" + Delete "$DESKTOP\VXMusic.lnk" SectionEnd # MUI (Modern User Interface) configuration diff --git a/VXMusicDesktop/VXMusicDesktop.csproj b/VXMusicDesktop/VXMusicDesktop.csproj index b56e526..f1cf058 100644 --- a/VXMusicDesktop/VXMusicDesktop.csproj +++ b/VXMusicDesktop/VXMusicDesktop.csproj @@ -9,7 +9,7 @@ VXLogo.png Images\VXLogoIcon.ico Always - 0.6.4.6 + 0.6.4.7 en VXMusicDesktop VirtualXtensions