Skip to content

Commit

Permalink
[Install] Create Start Menu Shortcut and Desktop Shortcut at installa…
Browse files Browse the repository at this point in the history
…tion.
  • Loading branch information
Soapwood committed Jul 23, 2024
1 parent 05d8b0c commit e193b1e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions Installer/VXMusic.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion VXMusicDesktop/VXMusicDesktop.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PackageIcon>VXLogo.png</PackageIcon>
<ApplicationIcon>Images\VXLogoIcon.ico</ApplicationIcon>
<RunPostBuildEvent>Always</RunPostBuildEvent>
<Version>0.6.4.6</Version>
<Version>0.6.4.7</Version>
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
<Title>VXMusicDesktop</Title>
<Authors>VirtualXtensions</Authors>
Expand Down

0 comments on commit e193b1e

Please sign in to comment.