Menu

#615 GhostScript installation check

v1.0_(example)
closed-fixed
None
5
2019-12-15
2019-09-25
No

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

Discussion

  • Bob Friesenhahn

    Bob Friesenhahn - 2019-11-09

    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.

     
  • Bob Friesenhahn

    Bob Friesenhahn - 2019-11-19
    • status: open --> closed-wont-fix
     
  • Bob Friesenhahn

    Bob Friesenhahn - 2019-11-19

    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.

     
  • Dennis Felippa

    Dennis Felippa - 2019-11-19

    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

     
  • Bob Friesenhahn

    Bob Friesenhahn - 2019-11-24
    • status: closed-wont-fix --> open
     
  • Bob Friesenhahn

    Bob Friesenhahn - 2019-11-24

    Needed information was provided, re-opening this bug.

     
  • Bob Friesenhahn

    Bob Friesenhahn - 2019-12-15
    • status: open --> closed-fixed
    • assigned_to: Bob Friesenhahn
     
  • Bob Friesenhahn

    Bob Friesenhahn - 2019-12-15

    GraphicsMagick now also checks HKEY_CURRENT_USER as described.

     

Log in to post a comment.

MongoDB Logo MongoDB