We need to set a printer as default
But the printer is not plugged in at installation, only after installation
The printer in question is the Rhino 6000 printer driver.
We install the printer in the following way.
1.We first run rundll32 setupapi,InstallHinfSection DefaultInstall 132 C:\WINDOWS\inf\usbprint.inf to install usb printing.
2.The rhino driver is installed, by using dpinst /sa /sw /se from the driver folder.
How can we make sure that the printer is always set as default when the device is installed after installation of the package when users plugin the device ?
We saw 2 options:
1. Run a process per user via activesetup in the background that checks whether the printer is plugged in, if plugged in, set the printer as default and quit process. Mind that this also works when the rhino printer is added to another usb port.
Disadvantage : poll rate will possibly decrease perfomance on pc.
2. Modify the inf if possible so the printer is set as default
Disadvantage : more difficult because driver has to be signed again, this has to be investigate whether we can do this in the environment of the customer.
Please let me know any thoughs you might have on this issue.
The printer in question is the Rhino 6000 printer driver.
We install the printer in the following way.
1.We first run rundll32 setupapi,InstallHinfSection DefaultInstall 132 C:\WINDOWS\inf\usbprint.inf to install usb printing.
2.The rhino driver is installed, by using dpinst /sa /sw /se from the driver folder.
How can we make sure that the printer is always set as default when the device is installed after installation of the package when users plugin the device ?
We saw 2 options:
1. Run a process per user via activesetup in the background that checks whether the printer is plugged in, if plugged in, set the printer as default and quit process. Mind that this also works when the rhino printer is added to another usb port.
Disadvantage : poll rate will possibly decrease perfomance on pc.
2. Modify the inf if possible so the printer is set as default
Disadvantage : more difficult because driver has to be signed again, this has to be investigate whether we can do this in the environment of the customer.
Please let me know any thoughs you might have on this issue.
0 Comments
[ + ] Show comments
Answers (8)
Please log in to answer
Posted by:
anonymous_9363
14 years ago
Posted by:
pjgeutjens
14 years ago
Perhaps have a look at the registry key HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows\Device
This will contain the device string and name of the default printer for any user.
For a list of devices look at HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Devices\
I'd suggest you play around with these keys (plug in the printer, note the device string, see if it remains stable enough under different circumstances, 'pre-write' it to a user's registry hive and see if it becomes the default printer...)
PJ
This will contain the device string and name of the default printer for any user.
For a list of devices look at HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Devices\
I'd suggest you play around with these keys (plug in the printer, note the device string, see if it remains stable enough under different circumstances, 'pre-write' it to a user's registry hive and see if it becomes the default printer...)
PJ
Posted by:
aogilmor
14 years ago
Posted by:
pjgeutjens
14 years ago
Posted by:
aogilmor
14 years ago
Posted by:
skt
14 years ago
Posted by:
aogilmor
14 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.