${if} $PathLaTeX == ""
# launch MiKTeX's installer
- MessageBox MB_OK|MB_ICONINFORMATION "$(LatexInfo)"
+ MessageBox MB_OK|MB_ICONINFORMATION "$(LatexInfo)" /SD IDOK
ExecWait ${MiKTeXInstall}
# test if MiKTeX is installed
Call LaTeXActions
StrCpy $LaTeXInstalled "MiKTeX"
StrCpy $MiKTeXVersion ${MiKTeXDeliveredVersion}
${else}
- MessageBox MB_OK|MB_ICONSTOP "$(LatexError1)"
+ MessageBox MB_OK|MB_ICONSTOP "$(LatexError1)" /SD IDOK
SetOutPath $TEMP # to be able to delete the $INSTDIR
RMDir /r $INSTDIR
Abort
${andif} $MultiUser.Privileges != "Power"
${if} $0 == ""
${ifnot} ${FileExists} "$PathLaTeX\perl.exe"
- MessageBox MB_OK|MB_ICONINFORMATION "$(MultipleIndexesNotAvailable)"
+ MessageBox MB_OK|MB_ICONINFORMATION "$(MultipleIndexesNotAvailable)" /SD IDOK
${endif}
${else}
# ${FileExists} is disabled for now to repair existing LyX installations using 64bit MiKTeX
Function UpdateMiKTeX
# asks to update MiKTeX
- MessageBox MB_YESNO|MB_ICONINFORMATION "$(MiKTeXInfo)" IDYES UpdateNow IDNO UpdateLater
+ MessageBox MB_YESNO|MB_ICONINFORMATION "$(MiKTeXInfo)" /SD IDNO IDYES UpdateNow IDNO UpdateLater
UpdateNow:
# the update wizard is started by the miktex-update.exe
${if} $MultiUser.Privileges != "Admin"
${IfNot} ${IsNT}
${OrIfNot} ${AtLeastWinXP}
- MessageBox MB_OK|MB_ICONSTOP "${APP_NAME} ${APP_VERSION} requires Windows XP or later."
+ MessageBox MB_OK|MB_ICONSTOP "${APP_NAME} ${APP_VERSION} requires Windows XP or later." /SD IDOK
Quit
${EndIf}
System::Call 'kernel32::CreateMutexA(i 0, i 0, t "${BundleExeFile}.Instance") i .r1 ?e'
Pop $R0
${if} $R0 != "0"
- MessageBox MB_OK|MB_ICONSTOP "$(InstallRunning)"
+ MessageBox MB_OK|MB_ICONSTOP "$(InstallRunning)" /SD IDOK
Abort
${endif}
System::Call 'kernel32::CreateMutexA(i 0, i 0, t "${ExeFile}.Instance") i .r1 ?e'
Pop $R0
${if} $R0 != "0"
- MessageBox MB_OK|MB_ICONSTOP "$(InstallRunning)"
+ MessageBox MB_OK|MB_ICONSTOP "$(InstallRunning)" /SD IDOK
Abort
${endif}
${endif}
${endif}
${if} $0 != ""
- MessageBox MB_OK|MB_ICONSTOP "$(StillInstalled)"
+ MessageBox MB_OK|MB_ICONSTOP "$(StillInstalled)" /SD IDOK
Abort
${endif}
# store the version number and reformat it temporarily for the error message
StrCpy $R0 $OldVersionNumber
StrCpy $OldVersionNumber $R5
- MessageBox MB_OK|MB_ICONSTOP "$(NewerInstalled)"
+ MessageBox MB_OK|MB_ICONSTOP "$(NewerInstalled)" /SD IDOK
StrCpy $OldVersionNumber $R0
Abort
${endif}
# Check that LyX is not currently running
FindProcDLL::FindProc "lyx.exe"
${if} $R0 == "1"
- MessageBox MB_OK|MB_ICONSTOP "$(UnInstallRunning)"
+ MessageBox MB_OK|MB_ICONSTOP "$(UnInstallRunning)" /SD IDOK
Abort
${endif}
${if} $0 != ""
${andif} $MultiUser.Privileges != "Admin"
${andif} $MultiUser.Privileges != "Power"
- MessageBox MB_OK|MB_ICONSTOP "$(UnNotAdminLabel)"
+ MessageBox MB_OK|MB_ICONSTOP "$(UnNotAdminLabel)" /SD IDOK
Abort
${endif}
# warning when LyX couldn't be found in the registry
${if} $0 == "" # check in HKCU
ReadRegStr $0 HKCU "${APP_UNINST_KEY}" "DisplayVersion"
${if} $0 == ""
- MessageBox MB_OK|MB_ICONEXCLAMATION "$(UnNotInRegistryLabel)"
+ MessageBox MB_OK|MB_ICONEXCLAMATION "$(UnNotInRegistryLabel)" /SD IDOK
${endif}
${endif}
${endif}
# question message if the user really wants to uninstall LyX
- MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "$(UnReallyRemoveLabel)" IDYES +2 # continue if yes
+ MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "$(UnReallyRemoveLabel)" /SD IDYES IDYES +2 # continue if yes
Abort
FunctionEnd
# Start Menu shortcut
SetOutPath "$INSTDIR\bin" # this is the folder in which the shortcut is executed
+ IfSilent 0 +2
+ StrCpy $StartmenuFolder "${APP_DIR}"
CreateDirectory "$SMPROGRAMS\$StartmenuFolder"
CreateShortCut "$SMPROGRAMS\$StartmenuFolder\${APP_NAME}.lnk" "$INSTDIR\${APP_RUN}" "" "$INSTDIR\${APP_RUN}" "" "" "" "${APP_INFO}"
# Link to www.lyx.org and to the Wiki
${endif}
FileClose $R1
IfErrors 0 +2
- MessageBox MB_OK|MB_ICONEXCLAMATION "$(ModifyingConfigureFailed)"
+ MessageBox MB_OK|MB_ICONEXCLAMATION "$(ModifyingConfigureFailed)" /SD IDOK
ClearErrors
SectionEnd
# Install printer and driver
ExecWait '$PrinterConf /if /f "$WINDIR\inf\ntprint.inf" /b "Metafile to EPS Converter" /r "FILE:" /m "MS Publisher Imagesetter"'
${else}
- MessageBox MB_OK|MB_ICONINFORMATION "$(MetafileNotAvailable)"
+ MessageBox MB_OK|MB_ICONINFORMATION "$(MetafileNotAvailable)" /SD IDOK
${endif}
SectionEnd
${if} $PathBibTeXEditor == ""
${andif} $InstallJabRef == "true"
# launch installer
- MessageBox MB_OK|MB_ICONINFORMATION "$(JabRefInfo)"
+ MessageBox MB_OK|MB_ICONINFORMATION "$(JabRefInfo)" /SD IDOK
+ IfSilent 0 +2
+ ExecWait "$INSTDIR\${JabRefInstall} /S"
ExecWait "$INSTDIR\${JabRefInstall}"
# test if JabRef is now installed
StrCpy $PathBibTeXEditor ""
ReadRegStr $PathBibTeXEditor HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\JabRef ${JabRefVersion}" "StartMenu"
${endif}
${if} $PathBibTeXEditor == ""
- MessageBox MB_OK|MB_ICONEXCLAMATION "$(JabRefError)"
+ MessageBox MB_OK|MB_ICONEXCLAMATION "$(JabRefError)" /SD IDOK
${else}
# special entry that it was installed together with LyX
# so that we can later uninstall it together with LyX