Deploying cdinf210.dll with PB9 application

The Amyuni PDF Converter is our Printer Driver that enables you to convert any documents to PDF format. If you have any questions about installing and using the Amyuni PDF Converter please post them here.
Post Reply
mhermiz
Posts: 4
Joined: Mon Nov 08 2004

Deploying cdinf210.dll with PB9 application

Post by mhermiz »

Hello all,
I've been able to setup installing the pdf printer when my application starts and removing when it ends using PDFDriverInit. I created an exe and works great on my machine. However when I try to deploy my exe to another machine (so far a win2k machine) the PDFDriverInit fails. I have the cdinf210.dll in the same directory as my exe and I also tried putting it in the system32 directory. Still fails and GetLastErrorMsg returns nothing. I then tried putting all the acfpdf.dll, acfpdfu.dll, acfpdfui.dll, acfpdf.drv, cdintf.dll, install.exe, acfpdf.txt. files in the same directory as the exe, and still does not work.
What am I doing wrong? :?
mhermiz
Posts: 4
Joined: Mon Nov 08 2004

Post by mhermiz »

Ok,
It turns out that the PDFDriverInit was failing because the logged in user in windows did not have priveledge to add a printer :roll: . Is there a way around this or a way to recognize this and inform the user? GetLastErrorMsg returns empty string.
Any one have any ideas to this?
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

There is no way to know if the user registered to a machine is an Administrator or not unless you use Windows APIs.

I would suggest that you install the Printer on the system once using Install.exe and in your application you call DriverInit instead of PDFDriverInit.
In this way you will not worry if the user is an administrator or not because the printer will not be removed from the system and installed again when closing and opening your application.

Hope this helps.
Post Reply