Do not ask the user during silent installs

Do not pop up windows asking the user stuff if the installer
is run in silent mode (with the "/S" switch). Fix for bug 345.
This commit is contained in:
Moritz Bunkus 2009-02-28 15:07:52 +01:00
parent 694fe14916
commit 36892b6364
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,10 @@
2009-02-28 Moritz Bunkus <moritz@bunkus.org>
* installer: bug fix: If the installer is run in silent mode
(switch "/S") then it will not ask the user whether or not to
place a shortcut on the desktop, and that shortcut will not be
created. Fix for bug 345.
* mmg: new feature: Added two buttons "enable all" and "disable
all" to the list of attached files that enable / disable all
attached files.

View File

@ -169,6 +169,7 @@ Section "Program files" SEC01
!insertmacro MUI_STARTMENU_WRITE_END
SetOutPath "$INSTDIR"
IfSilent +3 0
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Should a shortcut be placed on the desktop?" IDNO +2
CreateShortCut "$DESKTOP\mkvmerge GUI.lnk" "$INSTDIR\mmg.exe" "" "$INSTDIR\matroskalogo_big.ico"
SectionEnd