An error occurred while loading the file. Please try again.
-
Pierre-Antoine Rouby authored10f1d11d
!include "x64.nsh"
Name "PAMHYR"
OutFile "pamhyr-win-amd64.exe"
RequestExecutionLevel admin
Unicode True
InstallDir $PROGRAMFILES\PAMHYR
InstallDirRegKey HKLM "Software\PAMHYR" "Install_Dir"
Page components
Page directory
Page instfiles
UninstPage uninstConfirm
UninstPage instfiles
Section "PAMHYR"
SectionIn RO
SetOutPath $INSTDIR
File /r "dist\pamhyr\*"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\PAMHYR" "DisplayName" "NSIS PAMHYR"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\PAMHYR" "UninstallString" "$INSTDIR\uninstall.exe"
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\PAMHYR" "NoModify" 1
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\PAMHYR" "NoRepair" 1
WriteUninstaller "$INSTDIR\uninstall.exe"
SectionEnd
Section "Start Menu Shortcuts"
CreateDirectory "$SMPROGRAMS\PAMHYR"
CreateShortcut "$SMPROGRAMS\PAMHYR\Uninstall.lnk" "$INSTDIR\uninstall.exe"
CreateShortcut "$SMPROGRAMS\PAMHYR\PAMHYR.lnk" "$INSTDIR\pamhyr.exe"
SectionEnd
Section "Uninstall"
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\PAMHYR"
DeleteRegKey HKLM SOFTWARE\NSIS_PAMHYR
Delete "$SMPROGRAMS\PAMHYR\*.lnk"
RMDir "$SMPROGRAMS\PAMHYR"
RMDir /R "$INSTDIR"
SectionEnd