Vbscript Install Network Printer Driver

  1. How To Install A Network Printer
  2. Install New Printer Driver
  3. Install Network Printer Vista
  4. Hp Install Network Printer Wizard
  5. Configure Network Printer
Active3 years, 11 months ago

Re: Script for installing Network Printers It doesn't need to be a server. You could have a PC with file/printer sharing on it and just don't tell them You could put kix on a share on a PC and have them manually run a batch file from the share. Kix is literally an exe and a dll from memory. Install a TCP/IP Printer Port and Printer Installs a TCP/IP printer port, installs a printer, and then sets the printer to be default. As written the script installs a Brother printer, but you can substitute any printer. Jan 11, 2010  Simple printer driver install by VBScript. Scripting > The Official Scripting Guys Forum!

I am trying to write a VBS script that install an USB/Ethernet adapter on Windows 7.

I've got a .INF file for this device.

I first tried:

res equaled 2.

Then I searched another way to do that and I found:

res equals 0 but I've got an error popup Installation failed.

What's wrong with my code? For the record, the script is launched with administration rights.

EDIT

I've tried to execute the first command directly in prompt and got: The inf file you selected does not support this method of installation..

Nothing happens with second command in prompt.

It also includes Image Recovery (included with Cameras, Camcorders, and Printers with a memory card slot only), priority repair service, free return shipping, $0 deductible, genuine Canon factory service with only genuine Canon parts, and is transferable if you sell or gift your product. CarePAK PLUS offers protection from accidental damage such as drops, spills, power surges, and more, including normal wear and tear, beyond the standard warranty period. Canon ip4950 cd printing software.

This is very weird because I can install the driver 'manually' when I launch the device manager and select the inf file (with a warning: Windows can't verify the publisher of this driver software.):

Once the driver is installed, the class installer property shows NetCfgx.dll,NetClassInstaller. Could it be used?

I also tried with devcon with no success (program returns devcon.exe failed).

Maxbester
Install network printer vistaMaxbesterMaxbester
1,1935 gold badges30 silver badges59 bronze badges

3 Answers

How To Install A Network Printer

How about this way:

1)If you're using 'Windows 7', why not take advantage of the driver pre-staging utility that is built right into the OS? W7 ships with a driver utility called 'PNPUTIL'. Issuing a command as such will add the drivers:

Operation flashpoint red river patch 1.02 password generator

This will process the INF and copy the CAT/SYS/INF (and any DLL, EXE, etc) into the 'DriverStore' folder.. which is the same place Windows stores all the in-built drivers ready for auto plug-and-play instalaltion.

2)If that's not an option for you, look for 'DPInst.exe' (or 'DPInst64.exe' for 64-bit systems). These are available as part of the Windows PDK (available free from Microsoft) and will process all INFs in the location you put the file and attempt to pre-stage them. This method tries to copy files to the 'Drivers', 'CatRoot', and 'INF' locations which are not as reliable.. and it can occassionally fail to copy required DLLs to 'System32' folders etc.. but 99% of the time (for simple drivers) it just works. I can arrange to send them to you if you can't find them.

Since I found the option (1) above, that has been my best friend. I use option 2 to isntall Canon USB printers and scanners on our base images, etc.. so I know that works too.

DigantDigant

I had same problem and solved it by explicitly using ASCII version of InstallHinfSection entry point:

There is probably a better solution, though (like hinting at the script engine which unicode/ASCII flavor to use).

Install New Printer Driver

Also I'm using EN-US system so this workaround may fail on more exotic locales.

Install Network Printer Vista

Irshad
2,5325 gold badges22 silver badges41 bronze badges
user5448872user5448872

Hp Install Network Printer Wizard

Nathan RiceNathan Rice
2,9491 gold badge16 silver badges27 bronze badges

Configure Network Printer

Not the answer you're looking for? Browse other questions tagged windowsinstallationinstalldriverinf or ask your own question.