installer: improve support for silent installation

This commit is contained in:
Moritz Bunkus 2016-03-25 14:10:17 +01:00
parent c75052fce6
commit 06725a38da
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2016-03-25 Moritz Bunkus <moritz@bunkus.org>
* Installer: fixed support for silent installation and
uninstallation.
2016-03-24 Moritz Bunkus <moritz@bunkus.org>
* mkvmerge: bug fix: fixed two more issues in the conversion of

View File

@ -261,6 +261,7 @@ Section -Post
SectionEnd
Function showExternalLinks
IfSilent +4 0
Push $R0
InstallOptions::dialog $PLUGINSDIR\external_links.ini
Pop $R0
@ -270,16 +271,19 @@ var unRemoveJobs
Function un.onUninstSuccess
HideWindow
IfSilent +2 0
MessageBox MB_ICONINFORMATION|MB_OK "$(STRING_UNINSTALLED_OK)"
FunctionEnd
Function un.onInit
!insertmacro MUI_UNGETLANGUAGE
IfSilent +3 0
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "$(STRING_REMOVE_PROGRAM_QUESTION)" IDYES +2
Abort
StrCpy $unRemoveJobs "No"
IfFileExists "$INSTDIR\jobs\*.*" +2
Return
IfSilent +3 0
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "$(STRING_REMOVE_JOB_FILES_QUESTION)" IDYES +2
Return
StrCpy $unRemoveJobs "Yes"