summaryrefslogtreecommitdiff
path: root/psi
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2022-11-08 17:33:28 +0000
committerChris Liddell <chris.liddell@artifex.com>2022-11-08 17:44:55 +0000
commit42b98e42dc517323b25ea9c7cb320584cc682d3c (patch)
tree608b2ea0683ef715b3343bc8d1457ae59bf675ed /psi
parent6badab86a997e33e9db7381b86f86188d722be73 (diff)
downloadghostpdl-42b98e42dc517323b25ea9c7cb320584cc682d3c.tar.gz
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.
Diffstat (limited to 'psi')
-rw-r--r--psi/nsisinst.nsi5
1 files changed, 4 insertions, 1 deletions
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