custom named printer doesn't get removed on uninstall

Support for network administrators. for software deployment and management through Active Directory Group Policies.

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

Post Reply
mkr
User
Posts: 26
Joined: Wed Mar 26, 2014 6:30 pm

custom named printer doesn't get removed on uninstall

Post by mkr » Thu Mar 31, 2016 3:38 pm

For historical reasons, the pdf printer in our Windows 7 x64 enviroment is named "PDF". Starting with the PDF-XChange PRO 6.0.317 x64 MSI package, a custom named pdf printer doesn't get removed if PDFX gets uninstalled. It works fine with the PDF-XChange PRO 5.5.315 x64 MSI package.

This is especially annoying since a GPO deployed PDF-XChange PRO MSI package, scheduled for reinstallation (upgrade/changed settings etc.), fails to install due to a already existing pdf printer with the same name.

This issue can be reproduced using the following config file and install string:

PDFXC6Pro_6.0_x64.ini:

Code: Select all

[Properties]
PNAME=PDF
(un)install string:

Code: Select all

msiexec /i C:\local\PDFXC6Pro_6.0.317_x64.msi CONFIGFILE=C:\local\PDFXC6Pro_6.0_x64.ini /qb+
msiexec /x C:\local\PDFXC6Pro_6.0.317_x64.msi
regards

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

Re: custom named printer doesn't get removed on uninstall

Post by Paul - Tracker Supp » Wed Apr 13, 2016 8:38 pm

Thanks for the feedback mkr. I'm sorry to hear that you are seeing this issue.

We are going to need a log of the install that failed. Can you log this and send us the log file to support@tracker-software.com with a cross reference to this forum thread so we know what it's about please?

Meanwhile, we will attempt to reproduce the issue here.

hth

Paul
_________________
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

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

Re: custom named printer doesn't get removed on uninstall

Post by Paul - Tracker Supp » Thu Nov 17, 2016 7:46 pm

Hi mkr

did you ever get this working?

I have used the following wmic command to delete a custom named printer. In this case the printer was renamed "PDF-XChange Customized". The command requires admin privileges and I found it very effective when pushed through a Group Policy:

Code: Select all

PS C:\WINDOWS\system32> wmic PRINTER where "name like 'PDF-XChange Customized'" delete
Deleting instance \\WIN10-PRO-X64\ROOT\CIMV2:Win32_Printer.DeviceID="PDF-XChange Customized"
Instance deletion successful.
PS C:\WINDOWS\system32>
I hope that helps.
_________________
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

mkr
User
Posts: 26
Joined: Wed Mar 26, 2014 6:30 pm

Re: custom named printer doesn't get removed on uninstall

Post by mkr » Thu Dec 08, 2016 11:48 am

Paul - Tracker Supp wrote: I hope that helps.
Unfortunately not. I mean, the problem is that a re-installation fails because of an existing pdf printer which wasn't removed during uninstall. Running WMI queries (maybe as custom msi actions) might work but isn't more than I hack.

I consider this as an error of the installer. Even the latests PDF-XChange PRO 6.0.319.0 installer has this bug. It allows to create an custom named printer but fails to remove the very same printer on uninstall.

I'm really not in the position to say what tracker software should do but I would strongly suggest to either remove support for the PNAME property or fix the (un)installer.

Regards
Mathias

User avatar
Will - Tracker Supp
Site Admin
Posts: 6659
Joined: Mon Oct 15, 2012 9:21 pm
Location: London, UK
Contact:

Re: custom named printer doesn't get removed on uninstall

Post by Will - Tracker Supp » Thu Dec 08, 2016 1:31 pm

Hi Mathias,

As per my response to your other post, from what I can see, we never received the requested log. Please provide the log and we'd be happy to look at this further.
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

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com

Post Reply