PDF-XChange as Default printer - installation issue

PDF-XChange Drivers API (only) V4/V5
This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-XChange Printer Drivers SDK (only) - VERSION 4 & 5 - Please use the PDF-Tools SDK Forum for Library DLL assistance.

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Chris - Tracker Supp, Tracker Supp-Stefan

Post Reply
Maciej Tokarski
User
Posts: 23
Joined: Mon Feb 09, 2009 8:52 am

PDF-XChange as Default printer - installation issue

Post by Maciej Tokarski » Tue Jun 14, 2011 8:54 am

Hello!
We're using the following parameters to install the PDF-XChange driver during the installation of our product:

PDFX4SA_sm.exe /VERYSILENT /COMPONENTS="pdfSaver,PDFXChangedriver" /NORESTART /PNAME="PDF-XChange 4.0-GUID"

It worked fine under Windows XP/Vista. Since we've been switching to Windows 7 recently, we faced new problem: the PDF printer installed along (there is no way to suppress the installation of one, is there?) is always made the default printer afterwards. It's REALLY bad and messes up with our software set-up. Is there anyway to suppress this behaviour? Is it a bug? Do we need an additional parameter when installing under Win7?

Regards,
Maciej

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 14154
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: PDF-XChange as Default printer - installation issue

Post by Tracker Supp-Stefan » Tue Jun 14, 2011 9:30 am

Hello Maciej,

The default should be that our printer is NOT installed as the default system printer unless you specify it otherwise so I will ask the guys making the installers to check that.

Additionally you could use /DRVWOPRN to install the drivers only without an instance of the printer.

Best,
Stefan

Maciej Tokarski
User
Posts: 23
Joined: Mon Feb 09, 2009 8:52 am

Re: PDF-XChange as Default printer - installation issue

Post by Maciej Tokarski » Tue Jun 14, 2011 12:28 pm

Thank you for the prompt answer, we'll try it out during this week's integration build, I am going to drop here a line.
Regards!
Maciej

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 14154
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: PDF-XChange as Default printer - installation issue

Post by Tracker Supp-Stefan » Tue Jun 14, 2011 12:50 pm

Sure Maciej ,

Will await your comments!

Cheers,
Stefan

Ivan - Tracker Software
Site Admin
Posts: 3630
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: PDF-XChange as Default printer - installation issue

Post by Ivan - Tracker Software » Tue Jun 14, 2011 7:33 pm

Can you let us know the version of driver you are installing? And is the problem with Win7 reproduced on clean OS?

P.S. /DRVWOPRN parameter will not help. When it specified, printer driver will be installed, but no printer will be added to the printers list. I'm not sure it is what you want.
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.

Maciej Tokarski
User
Posts: 23
Joined: Mon Feb 09, 2009 8:52 am

Re: PDF-XChange as Default printer - installation issue

Post by Maciej Tokarski » Wed Jul 06, 2011 11:12 am

Hello,

1) the /DRVWOPRN is indeed what we needed - the default printer installed along was only creating confusion in our environment. Thanks again for the info!
2) Anyway, the problem with "default printer" persists, now affecting the temporary printer created for the lifetime of our app. In the last days I managed to gather some experiences from our testers. The situation is like follows: they always start working with an almost virgin image of Win7 x64. Some of them has already some office network printer configured and stored in the image itself (then it's set "default"), some of them have no printer configured, only the default "fax" and "XPS printer" are available then (then it's "XPS" which is default). In both cases, if you don't touch printer configuration at all, but just install your driver and then our application creates a temporary instance of PDF-Xcahnge at start-up, that temporary instance becomes automatically "default". Of course if you then close our up and the temporary printer is deleted, no windows printer is "default" any longer. But if you create any additional windows printer BEFORE installing PDF-XChange driver, then it will work fine - the temporary instance won't be made default.
Summary: the issue occurs only on Win7 x64, we couldn't reproduce it on any XP. It's easily reproducible if you have only the standard "fax" and "XPS" printer.

I hope the details give you some more idea. I could also gladly help you with debugging the issue on our machine, if you can't reproduce it - I have quite a lot of experience with WinDbg etc.
Regards,
Maciej

Ivan - Tracker Software
Site Admin
Posts: 3630
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: PDF-XChange as Default printer - installation issue

Post by Ivan - Tracker Software » Thu Jul 07, 2011 11:47 am

's easily reproducible if you have only the standard "fax" and "XPS" printer.
When you have just this printers installed, is any of them default ?
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.

Maciej Tokarski
User
Posts: 23
Joined: Mon Feb 09, 2009 8:52 am

Re: PDF-XChange as Default printer - installation issue

Post by Maciej Tokarski » Fri Jul 08, 2011 1:07 pm

Ivan - Tracker Software wrote: When you have just this printers installed, is any of them default ?
Yes, I have written it in my previous posting. There's always some default printer set before we install and use PDF-XChange. I have a kind of impression that Win7 tries to be "intelligent" at times, setting the new printer to default without asking the user. I doubt that your driver deliberately sets the temporary printer to default, I rather think the way an instance of your printer is created makes the Win7 think - "oh, you didn't tell me though, but you sure mean you want the printer to be default now". Something must have changed in Win7 because it worked without issues on XP/Vista.

Regards,
Maciej

Ivan - Tracker Software
Site Admin
Posts: 3630
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: PDF-XChange as Default printer - installation issue

Post by Ivan - Tracker Software » Mon Jul 11, 2011 8:59 am

Yes, as we see now, Windows API function AddPrinter makes new installed printer as default. We will investigate and try to find some workaround.
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 14154
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: PDF-XChange as Default printer - installation issue

Post by Tracker Supp-Stefan » Mon Jul 11, 2011 1:17 pm

Hello Maciej,

The dev guys asked me to make a ticket for your case:
#1139: PDF-XChange as Default printer - installation issue
So that we could search for a solution to this problem.

We will post here when there are any news on the subject.

Best,
Stefan

Maciej Tokarski
User
Posts: 23
Joined: Mon Feb 09, 2009 8:52 am

Re: PDF-XChange as Default printer - installation issue

Post by Maciej Tokarski » Tue Jul 12, 2011 9:03 am

Thank you!
Maciej

User avatar
Paul - Tracker Supp
Site Admin
Posts: 5103
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: PDF-XChange as Default printer - installation issue

Post by Paul - Tracker Supp » Tue Jul 12, 2011 8:37 pm

:)
_________________
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com

Post Reply