Skip to content

Commit

Permalink
Added shortcut support.
Browse files Browse the repository at this point in the history
  • Loading branch information
krisdb2009 committed Oct 8, 2019
1 parent 4f31ebf commit e4285f6
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions SuperGrateInstaller/installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ ${EndIf}

WriteUninstaller "$INSTDIR\uninstall.exe"

CreateDirectory "$SMPROGRAMS\Super Suite"
CreateShortcut "$SMPROGRAMS\Super Suite\Super Grate.lnk" "$INSTDIR\SuperGrate.exe"

SectionEnd


Expand All @@ -85,6 +82,23 @@ SectionEnd



Section "Shortcut - Start Menu" SMSC

CreateDirectory "$SMPROGRAMS\Super Suite"
CreateShortcut "$SMPROGRAMS\Super Suite\Super Grate.lnk" "$INSTDIR\SuperGrate.exe"

SectionEnd



Section /o "Shortcut - Desktop" DTSC

CreateShortcut "$DESKTOP\Super Grate.lnk" "$INSTDIR\SuperGrate.exe"

SectionEnd



Section "Uninstall"

SetShellVarContext all
Expand All @@ -95,6 +109,7 @@ Delete "$INSTDIR\SuperGrate.xml"
Delete "$INSTDIR\SuperGrate.exe"
Delete "$INSTDIR\uninstall.exe"
Delete "$SMPROGRAMS\Super Suite\Super Grate.lnk"
Delete "$DESKTOP\Super Grate.lnk"
RMDir "$SMPROGRAMS\Super Suite"
RMDir "$INSTDIR"
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${NAME}"
Expand All @@ -107,4 +122,6 @@ SectionEnd
!insertmacro MUI_DESCRIPTION_TEXT ${SuperGrate} "This item installs the Super Grate program."
!insertmacro MUI_DESCRIPTION_TEXT ${USMT64} "This item installs the 64-Bit version of USMT."
!insertmacro MUI_DESCRIPTION_TEXT ${USMT32} "This item installs the 32-Bit version of USMT."
!insertmacro MUI_DESCRIPTION_TEXT ${SMSC} "This item places a shortcut in the start menu."
!insertmacro MUI_DESCRIPTION_TEXT ${DTSC} "This item places a shortcut on the desktop."
!insertmacro MUI_FUNCTION_DESCRIPTION_END

0 comments on commit e4285f6

Please sign in to comment.