Browse Source

Update installer/uninstaller and license

tags/v1.3
Scott Barker 1 year ago
parent
commit
46e4b71eb6
2 changed files with 13 additions and 11 deletions
  1. 1
    1
      LICENSE
  2. 12
    10
      install.nsi

+ 1
- 1
LICENSE View File

@@ -1,4 +1,4 @@
Copyright (c) 2011-2013 Scott D. Barker
Copyright (c) 2011-2018 Scott D. Barker
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in

+ 12
- 10
install.nsi View File

@@ -7,6 +7,7 @@
!define Vendor "sdbarker"
!define Title "RegexRenamer"
!define Binary "RegexRenamer.exe"
!include "MUI2.nsh"
@@ -61,9 +62,9 @@ Section "${Title}" SecMain
SectionEnd
Section "Start Menu Shortcuts" SecShortcuts
CreateDirectory "$SMPROGRAMS\${Vendor} ${Title}"
CreateShortCut "$SMPROGRAMS\${Vendor} ${Title}\${Title}.lnk" "$INSTDIR\${Title}.exe"
CreateShortCut "$SMPROGRAMS\${Vendor} ${Title}\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
CreateDirectory "$SMPROGRAMS\${Vendor} ${Title}"
CreateShortCut "$SMPROGRAMS\${Vendor} ${Title}\${Title}.lnk" "$INSTDIR\${Binary}"
CreateShortCut "$SMPROGRAMS\${Vendor} ${Title}\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
SectionEnd
@@ -99,18 +100,19 @@ LangString DESC_SecUninstaller ${LANG_ENGLISH} "Adds an uninstaller to remove ${
Section "Uninstall"
; Remove installed files here
Delete "$PROGRAMFILES\${Vendor}\${Title}\Uninstall.exe"
Delete "$INSTDIR\RegexRenamer.exe"
Delete "$INSTDIR\Uninstall.exe"
Delete "$INSTDIR\${Binary}"
Delete "$INSTDIR\NCalc.dll"
RMDir /r "$INSTDIR"
RMDir /r "$PROGRAMFILES\${Vendor}"
RMDir /r "$PROGRAMFILES\${Vendor}\${Title}"
Delete "$SMPRograms\${Vendor} ${Title}\Uninstall.lnk"
Delete "$SMPRograms\${Vendor} ${Title}\${Title}.lnk"
RMDir "$SMPROGRAMS\${Vendor} ${Title}"
Delete "$SMPRograms\${Vendor}\${Title}\Uninstall.lnk"
Delete "$SMPRograms\${Vendor}\${Title}\${Title}.lnk"
RMDir "$SMPROGRAMS\${Vendor}\${Title}"
DeleteRegKey HKCU "Software\${Vendor}\${Title}"
DeleteRegKey /ifempty HKCU "Software\${Vendor}"
DeleteRegKey /ifempty HKCU "Software\${Vendor}\${Title}"
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${Title}"
SectionEnd

Loading…
Cancel
Save