Search My Blog

Tuesday, August 25, 2015

Installing GhostScript for PowerBuilder on Windows 10!

** "Kool" Tip **

GhostScript on Windows 10

PDF Generation for PowerBuilder Classic

 

   Most PowerBuilder developers know that the DataWindow object class in PowerBuilder (PB) Classic utilizes the open source (GNU) version of the GhostScript (GS) software to convert PostScript printer output into an Adobe PDF (Portable Data Format) file. The challenge this year for PB Developers moving into the MS-Windows version 10 domain, is that all drivers must be signed in order for the new O/S to accept the driver. This creates an issue for the GS installation as even the latest version 9.16 does not supply signed MS-Windows drivers.


  The good news though is that the PB Developer can get around this roadblock in the new O/S by following the procedure I used below to install GS v9.16. Without this technique, the GS install will not complete due to finding an unsigned driver. The install will in fact get stuck in a closed loop ... select the .INF, get an unsigned driver message, click next, get an unsigned error and voila - your back at the select the .INF file part again in the MS-Windows 10 install printer wizard!

  The following procedure is what I used to circumvent the unsigned GS driver issue in W10, as follows:

1) Hold down the SHIFT key while you click Restart.


2) Once your computer has rebooted, choose the Troubleshoot option.
 

3) Then select the Advanced options.

4) You will now be prompted to restart your Computer again.
5) After restarting, you will need to press the F7 key!

6) Now your PC will reboot and you will be able to install unsigned drivers without any error messages! 

Now during the GhostScript installation, once you get to selecting the printer driver from the GS installation's LIB folder, you should now see the MS-Windows security dialogue allowing the GS Driver to be installed even though its not signed!

  Some of you may be saying to yourself ... OMG, How will I ever get around this when I deploy GS into the production realm? My technical support people will never allow this procedure to be used the our production environment! To that I would answer ... how about using this approach (click here) instead?

  I hope that this article has helped prepare you for the world of MS-Windows 10 with PowerBuilder. I have now personally used the above procedure on two W10 PC's to successfully install GhostScript and use it with PB 12.1, 12.5 and 12.6.  

Regards ... Chris

2 comments:

  1. We ended up doing it the simple way - buying a certificate and signing it ourselves. Saves a lot of headaches, and it's a lot better for customers to actually see our company name as having signed it rather than try to go through a lot of hoops for a suspiciously unsigned driver.

    ReplyDelete
  2. Hi Trevor;

    That would certainly be the way to go for production for sure! A lot less hassle than performing the above procedure in the production environment.

    Regards ... Chris

    ReplyDelete