mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-06 21:31:23 +01:00
parent
54c42b276f
commit
eeeea8566e
25
dist/windows/strawberry.nsi.in
vendored
25
dist/windows/strawberry.nsi.in
vendored
@ -136,8 +136,6 @@ SetCompressor /SOLID lzma
|
||||
ReserveFile "${NSISDIR}\Plugins\x86-unicode\INetC.dll"
|
||||
!endif
|
||||
|
||||
!define LockedListPATH $InstallDir
|
||||
|
||||
; Installer pages
|
||||
!insertmacro MUI_PAGE_WELCOME
|
||||
!insertmacro MUI_PAGE_LICENSE COPYING
|
||||
@ -184,19 +182,22 @@ FunctionEnd
|
||||
Function CheckPreviousInstall
|
||||
|
||||
ReadRegStr $R0 ${PRODUCT_UNINST_ROOT_KEY} ${PRODUCT_UNINST_KEY} "UninstallString"
|
||||
StrCmp $R0 "" done
|
||||
StrCmp $R0 "" Done
|
||||
|
||||
MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION \
|
||||
"${PRODUCT_NAME} is already installed. $\n$\nClick `OK` to remove the \
|
||||
previous version or `Cancel` to cancel this upgrade." \
|
||||
IDOK uninst
|
||||
${IfNot} ${Silent}
|
||||
MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION "${PRODUCT_NAME} is already installed. $\n$\nClick `OK` to remove the previous version or `Cancel` to cancel this upgrade." IDOK Uninstall
|
||||
Abort
|
||||
; Run the uninstaller
|
||||
uninst:
|
||||
ClearErrors
|
||||
ExecWait '$R0' ; Do not copy the uninstaller to a temp file
|
||||
${EndIf}
|
||||
|
||||
done:
|
||||
Uninstall:
|
||||
ClearErrors
|
||||
${If} ${Silent}
|
||||
ExecWait '$R0 /S'
|
||||
${Else}
|
||||
ExecWait '$R0'
|
||||
${EndIf}
|
||||
|
||||
Done:
|
||||
|
||||
FunctionEnd
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user