Re: Ghostscript/GhostPDL 9.28 Release Candidate 1

"Akira Kakuto" <[email protected]> Wed, 21 Aug 2019 19:08:57 +0900
Newsgroups gmane.comp.printing.ghostscript.devel
Message-ID <7DC0A1341AFA44658796E66AAE88B376@CJ3001517A>
This is a multi-part message in MIME format.

------=_NextPart_000_0006_01D55853.E1F33540
Content-Type: text/plain;
	format=flowed;
	charset="utf-8";
	reply-type=original
Content-Transfer-Encoding: 7bit

Dear Chris,

> So, are you setting an environment variable, or a registry key, or a
> commend line parameter, so Ghostscript can find it's initialisation
> files?

Sorry for late report. I changed psi/nsisinst.nsi a little:

see WriteRegStr in an attached nsisinst.nsi.diff.


PS:
Added bad things:

I find that font files are also unreadable in -dSAFER:

gswin32 colorcir.ps
fails with
Can't find (or can't open) font file C:\usr\gs\gs9.28\Resource/Font/NimbusRoman-Regular
...

gswin32 -dSAFER -dOLDSAFER colorcir.ps
is fine.

Thanks,
Akira

------=_NextPart_000_0006_01D55853.E1F33540
Content-Type: application/octet-stream;
	name="nsisinst.nsi.diff"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="nsisinst.nsi.diff"

--- nsisinst.nsi.orig	Fri Aug 16 01:11:35 2019=0A=
+++ nsisinst.nsi	Wed Aug 21 18:57:10 2019=0A=
@@ -191,7 +191,7 @@=0A=
 !endif=0A=
 =0A=
 WriteRegStr HKEY_LOCAL_MACHINE "Software\GPL Ghostscript\${VERSION}" =
"GS_DLL" "$INSTDIR\bin\gsdll${WINTYPE}.dll"=0A=
-WriteRegStr HKEY_LOCAL_MACHINE "Software\GPL Ghostscript\${VERSION}" =
"GS_LIB" "$INSTDIR\bin;$INSTDIR\lib;$INSTDIR\fonts"=0A=
+WriteRegStr HKEY_LOCAL_MACHINE "Software\GPL Ghostscript\${VERSION}" =
"GS_LIB" =
"$INSTDIR\Resource\Init;$INSTDIR\Resource;$INSTDIR\bin;$INSTDIR\lib;$INST=
DIR\fonts"=0A=
 WriteRegStr HKEY_LOCAL_MACHINE "Software\Artifex\GPL =
Ghostscript\${VERSION}" "" "$INSTDIR"=0A=
 WriteRegStr HKEY_LOCAL_MACHINE =
"Software\Microsoft\Windows\CurrentVersion\Uninstall\GPL Ghostscript =
${VERSION}" "DisplayName" "GPL Ghostscript"=0A=
 WriteRegStr HKEY_LOCAL_MACHINE =
"Software\Microsoft\Windows\CurrentVersion\Uninstall\GPL Ghostscript =
${VERSION}" "UninstallString" '"$INSTDIR\uninstgs.exe"'=0A=
@@ -269,11 +269,6 @@=0A=
 Delete   "$INSTDIR\bin\gswin${WINTYPE}c.exe"=0A=
 RMDir    "$INSTDIR\bin"=0A=
 RMDir    "$INSTDIR"=0A=
-!if "${WINTYPE}" =3D=3D "64"=0A=
-RMDir "$PROGRAMFILES64\gs"=0A=
-!else=0A=
-RMDir "$PROGRAMFILES\gs"=0A=
-!endif=0A=
 SectionEnd ; end of uninstall section=0A=
 =0A=
 ; eof=0A=

------=_NextPart_000_0006_01D55853.E1F33540--