How to add more virtual PDF Printers into my Windows system? How to suppress Save As dialog?

Hello,

I work for a software company. We are trying to create a MSI using the Virtual PDF Printer software that you gave us. However we are running into some problems with the creation of our MSI.

1. If we follow the instructions given to us in a previous email the program works fine. The instruction call for pdfconfiggui.exe, this is  something we cannot use in the creation of an MSI

2. We tried using pdfconfigcmd.exe but we don't know all of options and how to fill it out to get the result we need.

3. We tried to get around this by creating an exported copy of a working registry and a batch file to refill the registry entry.

4. This we found does work on systems where we have installed the pdf printer according to instructions in the past but have uninstalled for testing.

5. However, this does not work on systems where we have never installed it before.

6. This means there is something that pdfconfiggui.exe does that I am not triggering with pdfconfigcmd.exe or calling in my batch file.

7. On a smaller note this also means there is something being left behind when we do an uninstall.

image

Please any assistance on this matter would be appreciated. Below is a copy of  the instructions given to us so you do not have to go looking for it.

Q: How to add more virtual PDF Printers into my Windows system?
A: Please test by following steps,
1. Run "setup.exe on 32bit Windows System" or "setupx64.exe on 64bit Windows System" to install "e-PDFPrinter" first,
2. Run newprinter.exe Command Line application to add more printers if you want,

newprinter.exe "e-PDFPrinter2"
newprinter.exe "e-PDFPrinter3"
newprinter.exe "e-PDFPrinter4"
...
...
3. Run "pdfconfiggui.exe" to set parameters for each printer,
4. OK, you can print a Word document to these printers to create PDF files.
------------------------------------------------------------------

Q: How to call our custom program after the PDF file is generated?
A: Please run regedit.exe to open Registry Editor application first, go to following item,

HKEY_CURRENT_USER\Software\e-pdfconverter\pdfcreator
HKEY_CURRENT_USER\Software\verypdf\pdfcamp

AutoExec=1         ; [REG_DWORD]
AutoExecProgram=C:\Windows\System32\notepad.exe  ; [REG_SZ] You can change this value to yourself's application
AutomaticDirectory=D:\temp\out.pdf  ; [REG_SZ] Set default output folder and filename
AutomaticOutput=1  ; [REG_DWORD]
AutomaticValue=2   ; [REG_DWORD]

Q: How to suppress Save As dialog?
A: Please by following steps to bypass Save As dialog,
1. Please run regedit.exe to open Registry Editor application first, go to following item,

HKEY_CURRENT_USER\Software\e-pdfconverter\pdfcreator
HKEY_CURRENT_USER\Software\verypdf\pdfcamp

AutoExec=1         ; [REG_DWORD]
AutoExecProgram=C:\Windows\System32\notepad.exe  ; [REG_SZ] You can change this value to yourself's application
AutomaticDirectory=D:\temp\out.pdf  ; [REG_SZ] Set default output folder and filename
AutomaticOutput=1  ; [REG_DWORD]
AutomaticValue=2   ; [REG_DWORD]

2. Please set "EmptyFileNameAfterPrinting=0" and "DisableSaveAsDialog=1" to "config.ini" file, e.g.,

[options]
UseLocalMachine=0
EmptyFileNameAfterPrinting=0
DisableSaveAsDialog=1
FileSaveDefExt=.pdf
FilterIndex=1

3. OK, when you print a docment to Virtual PDF Printer, you will get a "D:\temp\out.pdf" file and without Save As dialog.

Thank you,
Customer
-------------------------------------------------------------
Hello

I have some experience with the Advanced Installer program we use to package the installer for the custom PDF printer.

The problem is that we have to install this on a machine that has multiple users and we want to install to the Local Machine instead of the Current User, so that all users can use the printer.

I can get it to install ok except that it is not calling my custom program and saving with the default name that I've put into the registry key.

AutoExec is set to 1
AutoExecProgram is set to "C:\CycomSQL\CyImportFile.exe"
AutomaticDirectory is set to "C:\CycomDat\out.pdf"
AutomaticOutput is set to 1
AutomaticValue is set to 2

What happens now is that the system is prompting for a file name and location.

I need it to use the automatic settings.

Can this work to the HKEY_LOCAL_MACHINE hive?  I'm setting

HKEY_LOCAL_MACHINE\Software\WOW6432Node\e-pdfconverter\pdfcreator
HKEY_LOCAL_MACHINE\Software\WOW6432Node\verypdf\pdfcamp

Does this look right to you?  What do I need to do to get this working?

Thank you,
Customer
-------------------------------------------------------------
Thanks for your message.

Please open "config.ini" file, set "UseLocalMachine=1" to try again,

[options]
UseLocalMachine=1

the PDF Printer will use HKEY_LOCAL_MACHINE to instead of HKEY_CURRENT_USER, please give it a try.

VeryPDF
-------------------------------------------------------------
Thank you for your expert instruction.

It worked as it should!

Customer

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

This entry was posted in docPrint Pro and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!