First try to warn user it should close Clementine before if upgrading it

This commit is contained in:
Arnaud Bienner 2014-03-05 16:30:35 +01:00
parent 1c3cee8719
commit 80ce992c9c
1 changed files with 5 additions and 0 deletions

View File

@ -38,6 +38,7 @@ SetCompressor /SOLID lzma
; Installer pages
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_DIRECTORY
Page custom CustomPageFunctionWarning
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
@ -56,6 +57,10 @@ ShowUnInstDetails show
@NORMAL@RequestExecutionLevel admin
@PORTABLE@RequestExecutionLevel user
Function CustomPageFunctionWarning ;Display a warning message to ask user to check Clementine is closed before installing a new version
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "warning.ini"
FunctionEnd
Function RunClementine
ShellExecAsUser::ShellExecAsUser "" "$INSTDIR/clementine.exe" ""
FunctionEnd