|
|
61ae2a |
OutFile "..\papagayo-ng-installer.exe"
|
|
|
61ae2a |
InstallDir "$PROGRAMFILES\Papagayo-NG"
|
|
|
61ae2a |
Name "Papagayo-NG"
|
|
|
61ae2a |
|
|
|
61ae2a |
SetCompressor /final lzma
|
|
|
61ae2a |
!include MUI2.nsh
|
|
|
61ae2a |
|
|
|
61ae2a |
Icon "papagayo-ng\papagayo-ng.ico"
|
|
|
61ae2a |
UninstallIcon "papagayo-ng\papagayo-ng.ico"
|
|
|
61ae2a |
|
|
|
61ae2a |
LicenseData "papagayo-ng\gpl.txt"
|
|
|
61ae2a |
!insertmacro MUI_PAGE_LICENSE "papagayo-ng\gpl.txt"
|
|
|
61ae2a |
|
|
|
61ae2a |
!insertmacro MUI_PAGE_DIRECTORY
|
|
|
61ae2a |
!insertmacro MUI_PAGE_INSTFILES
|
|
|
61ae2a |
|
|
|
61ae2a |
!insertmacro MUI_UNPAGE_CONFIRM
|
|
|
61ae2a |
!insertmacro MUI_UNPAGE_INSTFILES
|
|
|
61ae2a |
|
|
|
61ae2a |
Section "Papagayo-NG (required)"
|
|
|
61ae2a |
SectionIn RO
|
|
|
61ae2a |
WriteRegStr HKLM "Software\$(^Name)" "Path" "$INSTDIR"
|
|
|
61ae2a |
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" "DisplayName" "$(^Name)"
|
|
|
61ae2a |
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" "UninstallString" "$INSTDIR\uninstall.exe"
|
|
|
61ae2a |
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)" "HelpLink" "https://github.com/morevnaproject/papagayo-ng"
|
|
|
61ae2a |
|
|
|
61ae2a |
WriteRegStr HKCR ".pgo" "" "Papagayo.Document"
|
|
|
61ae2a |
WriteRegStr HKCR "Papagayo.Document" "" "Papagayo Document"
|
|
|
61ae2a |
WriteRegStr HKCR "Papagayo.Document\DefaultIcon" "" "$INSTDIR\papagayo-ng\papagayo-ng.ico"
|
|
|
61ae2a |
WriteRegStr HKCR "Papagayo.Document\shell\open\command" "" '"$INSTDIR\papagayo-ng.bat" "%1"'
|
|
|
61ae2a |
|
|
|
61ae2a |
SetOutPath $INSTDIR
|
|
|
61ae2a |
File /r /x papagayo-ng.nsi *
|
|
|
61ae2a |
WriteUninstaller "uninstall.exe"
|
|
|
61ae2a |
SectionEnd
|
|
|
61ae2a |
|
|
|
61ae2a |
Section "Start Menu Shortcuts"
|
|
|
61ae2a |
SetShellVarContext all
|
|
|
61ae2a |
CreateDirectory "$SMPROGRAMS\$(^Name)"
|
|
|
61ae2a |
CreateShortCut "$SMPROGRAMS\$(^Name)\$(^Name).lnk" "$INSTDIR\papagayo-ng.bat" "" "$INSTDIR\papagayo-ng\papagayo-ng.ico"
|
|
|
61ae2a |
CreateShortCut "$SMPROGRAMS\$(^Name)\Uninstall $(^Name).lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\papagayo-ng\papagayo-ng.ico"
|
|
|
61ae2a |
SectionEnd
|
|
|
61ae2a |
|
|
|
61ae2a |
Section "Uninstall"
|
|
|
61ae2a |
Var /GLOBAL testkey
|
|
|
61ae2a |
|
|
|
61ae2a |
DeleteRegKey HKLM "Software\$(^Name)\"
|
|
|
61ae2a |
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)"
|
|
|
61ae2a |
|
|
|
61ae2a |
ReadRegStr $testkey HKCR "Papagayo.Document\DefaultIcon" ""
|
|
|
61ae2a |
StrCmp $testkey "$INSTDIR\papagayo-ng\papagayo-ng.ico" 0 +2
|
|
|
61ae2a |
DeleteRegKey HKCR "Papagayo.Document\DefaultIcon"
|
|
|
61ae2a |
|
|
|
61ae2a |
ReadRegStr $testkey HKCR "Papagayo.Document\shell\open\command" ""
|
|
|
61ae2a |
StrCmp $testkey '"$INSTDIR\papagayo-ng.bat" "%1"' 0 +2
|
|
|
61ae2a |
DeleteRegKey HKCR "Papagayo.Document\shell\open\command"
|
|
|
61ae2a |
|
|
|
61ae2a |
Delete "$INSTDIR\*.*"
|
|
|
61ae2a |
RMDir /r "$INSTDIR"
|
|
|
61ae2a |
Delete "$SMPROGRAMS\$(^Name)\*.*"
|
|
|
61ae2a |
RMDir "$SMPROGRAMS\$(^Name)"
|
|
|
61ae2a |
SectionEnd
|
|
|
61ae2a |
|