Skip to content

Commit

Permalink
fix: change NSIS Installer Startmenu location to all user
Browse files Browse the repository at this point in the history
  • Loading branch information
nrittsti committed Feb 14, 2021
1 parent c38f2a9 commit 2d10901
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ntag.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@

Section

SetShellVarContext all
SetOutPath "$INSTDIR"

file "ntag.cmd"
Expand Down Expand Up @@ -99,6 +100,8 @@ SectionEnd

Section "Uninstall"

SetShellVarContext all

Delete "$INSTDIR\ntag.cmd"
Delete "$INSTDIR\ntag.ico"
Delete "$INSTDIR\ntag_logging.properties"
Expand All @@ -114,6 +117,7 @@ Section "Uninstall"
!insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder

Delete "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk"
Delete "$SMPROGRAMS\$StartMenuFolder\NTag.lnk"
RMDir "$SMPROGRAMS\$StartMenuFolder"

DeleteRegKey /ifempty HKLM "Software\${APP_NAME}"
Expand Down

0 comments on commit 2d10901

Please sign in to comment.