473,549 Members | 2,346 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Install windows printer driver automatically

Hi All

I have a Windows forms POS program and have windows xp printer drivers for
the Posiflex printers the customers use

Is it possible to automatically install a windows printer driver (and
configure it) during a VB.net 2005 deployment project i.e within a custom
action?

If so some code examples would be appreciated

Regards
Steve
Apr 15 '07 #1
3 10123
Steve,

A few months ago Terry asked the same question

If you look back over this newsgroup then you'll see the answer

--
Newbie Coder
(It's just a name)

"Steve" <ga*****@newsgr oups.nospamwrot e in message
news:%2******** *******@TK2MSFT NGP05.phx.gbl.. .
Hi All

I have a Windows forms POS program and have windows xp printer drivers for
the Posiflex printers the customers use

Is it possible to automatically install a windows printer driver (and
configure it) during a VB.net 2005 deployment project i.e within a custom
action?

If so some code examples would be appreciated

Regards
Steve


Apr 15 '07 #2
Hi Steve,

For the print driver, do you have an existing encapsulated setup package or
already got the detailed commandline execution syntax to do so? If you
have an existing package, you can programmaticall y launch the package in
custom action (commandline execution...). You can try posting in some
windows platform related newsgroup about detailed synatx of install printer
driver.

Here is a web article I've found introducing install printer driver
programmaticall y:

#Installing a Printer Driver programmaticall y - sort of - using PrintUi.dll
http://west-wind.com/WebLog/posts/1440.aspx

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

=============== =============== =============== =====

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

=============== =============== =============== =====

This posting is provided "AS IS" with no warranties, and confers no rights.



Apr 16 '07 #3
Hi Steven

I don't have either a setup package yet or the commandline execution

Thanks for the links and info

Just what I needed

Regards
Steve

"Steven Cheng[MSFT]" <st*****@online .microsoft.comw rote in message
news:0o******** ********@TK2MSF TNGHUB02.phx.gb l...
Hi Steve,

For the print driver, do you have an existing encapsulated setup package
or
already got the detailed commandline execution syntax to do so? If you
have an existing package, you can programmaticall y launch the package in
custom action (commandline execution...). You can try posting in some
windows platform related newsgroup about detailed synatx of install
printer
driver.

Here is a web article I've found introducing install printer driver
programmaticall y:

#Installing a Printer Driver programmaticall y - sort of - using
PrintUi.dll
http://west-wind.com/WebLog/posts/1440.aspx

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

=============== =============== =============== =====

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

=============== =============== =============== =====

This posting is provided "AS IS" with no warranties, and confers no
rights.



Apr 16 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
2438
by: IC_Clearly | last post by:
I'm running Server 2003 and wonder how well WTS works when printing an Access report to a client. Any suggestions would be appreciated. Thanks. IC
0
1702
by: Sneid | last post by:
Hi I explain my title: i'm actually developping an application for privilege-limited users. They all have a laptop, and are not local administrators of the machine I 'm developping a program that allows them to create profiles with IP, Proxy, Network Drives and printers For drives and printers, they can supply a username/password so they...
0
937
by: david | last post by:
I am working on windows2000 server and developing ASP.NET application. Now I have the problem about installation of software and driver. Those worked before whenever I used the installer by click, or followed the automate instruction step by step. The problem is that the installation process always pend and no further response. For example,...
3
2063
by: Bob | last post by:
I need to create a program that is essentially a special fax sender using multi line Dialogic cards. I figure that the best way to do this so that it can be used from any app is to create someting that can be installed as a printer on the local computer. When sending the print command so that the current document, whatever it is is transmitted...
0
1768
by: jay | last post by:
Dear friends, I have a new task to do that I know nothing about. I am to design a printer driver (I think). The requirements of the project are: 1. design a printer driver - the printer driver should be able to pass jobs to the software installed in the workstation that is connected to the printer. - the printer driver should be robust....
0
1161
by: nevlek | last post by:
My boss one day ask if I can create a web site in intranet to let user install printer as well as set it as default themselves without IT's help. I have done some research and brain storming with the development team and we have a problem, which is, if I develop the application in ASP.NET, how can I manipulate the users local PC settings (set...
2
8524
by: Terry Olsen | last post by:
Can anyone give me some guidance on installing a local printer with VB 2005? I'm guessing I would probably do this with WMI, but i'm not finding anything obvious. I see how to add a networked printer, but nothing to add a local printer, assign it a port & driver.
9
2361
by: =?Utf-8?B?Sm9obiBBdXN0aW4=?= | last post by:
I have an app that prints entry tickets. If the printer driver is not set up exactly to detect the black mark on the back of the ticket, the tickets do not print correctly. Because of this, all users are logging on with the same user name to ensure they get a correctly configured printer driver. The application runs on a Terminal Server via...
0
1186
by: =?Utf-8?B?RGVs?= | last post by:
Hello I need help I have a 1998 hp and have installed windows xp I can't seem to install a printer driver to make my computer communicate with my old hp 722c printer..I've installed the ones from the internet and nothing seems to work...do I need a HP cd or a different electrical cord..the printer works fine I hope I can continue to use this...
0
7546
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7471
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7740
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7985
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7830
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5111
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3517
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1962
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1082
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.