Skip to content

Commit 70efdd9

Browse files
committed
use product name for shortcuts
1 parent 182a836 commit 70efdd9

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

src-tauri/nsis/installer.nsi

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -667,16 +667,16 @@ Section Uninstall
667667
RMDir "$INSTDIR"
668668

669669
!insertmacro DeleteAppUserModelId
670-
!insertmacro UnpinShortcut "$SMPROGRAMS\$AppStartMenuFolder\${MAINBINARYNAME}.lnk"
671-
!insertmacro UnpinShortcut "$DESKTOP\${MAINBINARYNAME}.lnk"
670+
!insertmacro UnpinShortcut "$SMPROGRAMS\$AppStartMenuFolder\${PRODUCTNAME}.lnk"
671+
!insertmacro UnpinShortcut "$DESKTOP\${PRODUCTNAME}.lnk"
672672

673673
; Remove start menu shortcut
674674
!insertmacro MUI_STARTMENU_GETFOLDER Application $AppStartMenuFolder
675-
Delete "$SMPROGRAMS\$AppStartMenuFolder\${MAINBINARYNAME}.lnk"
675+
Delete "$SMPROGRAMS\$AppStartMenuFolder\${PRODUCTNAME}.lnk"
676676
RMDir "$SMPROGRAMS\$AppStartMenuFolder"
677677

678678
; Remove desktop shortcuts
679-
Delete "$DESKTOP\${MAINBINARYNAME}.lnk"
679+
Delete "$DESKTOP\${PRODUCTNAME}.lnk"
680680

681681
; Remove registry information for add/remove programs
682682
!if "${INSTALLMODE}" == "both"
@@ -738,12 +738,12 @@ FunctionEnd
738738
!macroend
739739

740740
Function CreateDesktopShortcut
741-
CreateShortcut "$DESKTOP\${MAINBINARYNAME}.lnk" "$INSTDIR\${MAINBINARYNAME}.exe"
742-
!insertmacro SetLnkAppUserModelId "$DESKTOP\${MAINBINARYNAME}.lnk"
741+
CreateShortcut "$DESKTOP\${PRODUCTNAME}.lnk" "$INSTDIR\${MAINBINARYNAME}.exe"
742+
!insertmacro SetLnkAppUserModelId "$DESKTOP\${PRODUCTNAME}.lnk"
743743
FunctionEnd
744744

745745
Function CreateStartMenuShortcut
746746
CreateDirectory "$SMPROGRAMS\$AppStartMenuFolder"
747-
CreateShortcut "$SMPROGRAMS\$AppStartMenuFolder\${MAINBINARYNAME}.lnk" "$INSTDIR\${MAINBINARYNAME}.exe"
748-
!insertmacro SetLnkAppUserModelId "$SMPROGRAMS\$AppStartMenuFolder\${MAINBINARYNAME}.lnk"
747+
CreateShortcut "$SMPROGRAMS\$AppStartMenuFolder\${PRODUCTNAME}.lnk" "$INSTDIR\${MAINBINARYNAME}.exe"
748+
!insertmacro SetLnkAppUserModelId "$SMPROGRAMS\$AppStartMenuFolder\${PRODUCTNAME}.lnk"
749749
FunctionEnd

src-tauri/nsis/installer_manual.nsi

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -667,16 +667,16 @@ Section Uninstall
667667
RMDir "$INSTDIR"
668668

669669
!insertmacro DeleteAppUserModelId
670-
!insertmacro UnpinShortcut "$SMPROGRAMS\$AppStartMenuFolder\${MAINBINARYNAME}.lnk"
671-
!insertmacro UnpinShortcut "$DESKTOP\${MAINBINARYNAME}.lnk"
670+
!insertmacro UnpinShortcut "$SMPROGRAMS\$AppStartMenuFolder\${PRODUCTNAME}.lnk"
671+
!insertmacro UnpinShortcut "$DESKTOP\${PRODUCTNAME}.lnk"
672672

673673
; Remove start menu shortcut
674674
!insertmacro MUI_STARTMENU_GETFOLDER Application $AppStartMenuFolder
675-
Delete "$SMPROGRAMS\$AppStartMenuFolder\${MAINBINARYNAME}.lnk"
675+
Delete "$SMPROGRAMS\$AppStartMenuFolder\${PRODUCTNAME}.lnk"
676676
RMDir "$SMPROGRAMS\$AppStartMenuFolder"
677677

678678
; Remove desktop shortcuts
679-
Delete "$DESKTOP\${MAINBINARYNAME}.lnk"
679+
Delete "$DESKTOP\${PRODUCTNAME}.lnk"
680680

681681
; Remove registry information for add/remove programs
682682
!if "${INSTALLMODE}" == "both"
@@ -738,12 +738,12 @@ FunctionEnd
738738
!macroend
739739

740740
Function CreateDesktopShortcut
741-
CreateShortcut "$DESKTOP\${MAINBINARYNAME}.lnk" "$INSTDIR\${MAINBINARYNAME}.exe"
742-
!insertmacro SetLnkAppUserModelId "$DESKTOP\${MAINBINARYNAME}.lnk"
741+
CreateShortcut "$DESKTOP\${PRODUCTNAME}.lnk" "$INSTDIR\${MAINBINARYNAME}.exe"
742+
!insertmacro SetLnkAppUserModelId "$DESKTOP\${PRODUCTNAME}.lnk"
743743
FunctionEnd
744744

745745
Function CreateStartMenuShortcut
746746
CreateDirectory "$SMPROGRAMS\$AppStartMenuFolder"
747-
CreateShortcut "$SMPROGRAMS\$AppStartMenuFolder\${MAINBINARYNAME}.lnk" "$INSTDIR\${MAINBINARYNAME}.exe"
748-
!insertmacro SetLnkAppUserModelId "$SMPROGRAMS\$AppStartMenuFolder\${MAINBINARYNAME}.lnk"
747+
CreateShortcut "$SMPROGRAMS\$AppStartMenuFolder\${PRODUCTNAME}.lnk" "$INSTDIR\${MAINBINARYNAME}.exe"
748+
!insertmacro SetLnkAppUserModelId "$SMPROGRAMS\$AppStartMenuFolder\${PRODUCTNAME}.lnk"
749749
FunctionEnd

0 commit comments

Comments
 (0)