GM ought to check GhostScript installation also under HKEY_CURRENT_USER not only HKEY_LOCAL_MACHINE.
Ghostscript can be installed by setting HKEY_CURRENT_USER (see https://www.ghostscript.com/doc/current/Install.htm ) but gm does not check that.
The scenario is: I need to run my utility under a secured Windows installation where writting to HKEY_LOCAL_MACHINE is not allowed.
Suggested fix:
Change routine NTGhostscriptFind in file nt_base.c
lines around
hkeyroot = HKEY_LOCAL_MACHINE;
have to be changed to include HKEY_CURRENT_USER also.
Thank you,
Dennis
I have a volunteer who is willing to work on this. He tells me that the standard Ghostscript installation package insists on installing as Administrator so he is unable to produce a standard installation to test with. By what means may he achieve a standard (easily replicated by other users) installation using the Ghostscript installation package so he can develop and test code to solve this issue?
Given that I have been bitten by problems after installing Ghostscript system-wide as Administrator, I am very interested in the per-user installation option.
There was no response from the person who opened this report as to how we can reproduce the described installation using an existing Ghostscript installer. Due to the inability to reproduce the scenario, this report is closed until an adequate definition is available.
Sorry I did not undertand you could not install Ghostscript as a standar user.
The procedure is:
On Windows:
1) Install 7-zip
2) Login as standard users (without admin rights)
3) Download ghostscript
4) Don not run the installer (it wont run since the user does not have admin rights. Instead, using 7-zip Extract the files from the download to %APPDATA%\gs\gs9.50
5) Open a cmd prompt and run
reg add "HKCU\Software\GPL Ghostscript\9.50" /v "GS_DLL" /t REG_SZ /d "%APPDATA%\gs\gs9.50\bin\gsdll64.dll" /f
reg add "HKCU\Software\GPL Ghostscript\9.50" /v "GS_LIB" /t REG_SZ /d "%APPDATA%\gs\gs9.50\bin;%APPDATA%\gs\gs9.50\lib;%APPDATA%\gs9.50\fonts" /f
6) To test the install, still, on the cmd prompt:
cd %appdata%\gs\gs9.50\examples
..\bin\gswin64c -dSAFER -dBATCH -dNOPAUSE -sDEVICE=png16m -dGraphicsAlphaBits=4 -sOutputFile=tiger.png tiger.eps
Please reopen the bug
Needed information was provided, re-opening this bug.
GraphicsMagick now also checks HKEY_CURRENT_USER as described.