From 42b98e42dc517323b25ea9c7cb320584cc682d3c Mon Sep 17 00:00:00 2001 From: Chris Liddell Date: Tue, 8 Nov 2022 17:33:28 +0000 Subject: Bug 706058: Run cidfmap generation without showing a cmd window In the Windows installer, it optionally runs gs with a Postscript program to generate a basic cidfmap. Previously, in doing so, the command prompt window would momentarily appear as the executable ran. This changes it so that command prompt window no longer appears. --- psi/nsisinst.nsi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'psi') diff --git a/psi/nsisinst.nsi b/psi/nsisinst.nsi index 086a5118e..72339bf89 100644 --- a/psi/nsisinst.nsi +++ b/psi/nsisinst.nsi @@ -285,13 +285,16 @@ Function .onGUIEnd MessageBox MB_YESNO|MB_ICONQUESTION "Do you wish to reboot the system?" IDNO +2 Reboot done: + MessageBox MB_OK "Installation Complete" FunctionEnd Function CJKGen ${StrRep} $0 "$FONTS" "\" "/" ${StrRep} $1 "$INSTDIR\lib\cidfmap" "\" "/" ${StrRep} $2 "$INSTDIR\lib\mkcidfm.ps" "\" "/" - ExecWait '"$INSTDIR\bin\gswin${WINTYPE}c.exe" -q -dNOSAFER -dBATCH "-sFONTDIR=$0" "-sCIDFMAP=$1" "$2"' +; ExecWait '"$INSTDIR\bin\gswin${WINTYPE}c.exe" -q -dNOSAFER -dBATCH "-sFONTDIR=$0" "-sCIDFMAP=$1" "$2"' +; NOTE: TIMEOUT below is how long we wait for output from the call, *not* how long we allow it to run for + nsExec::Exec /TIMEOUT=30000 '"$INSTDIR\bin\gswin${WINTYPE}c.exe" -q -dNOSAFER -dBATCH "-sFONTDIR=$0" "-sCIDFMAP=$1" "$2"' FunctionEnd Function .onInit -- cgit v1.2.1