Jump to content











Photo
- - - - -

Net Framework V4 and Print Feature Script


  • Please log in to reply
98 replies to this topic

#26 Aeolis

Aeolis

    Frequent Member

  • .script developer
  • 145 posts
  • Location:Rio de Janeiro
  • Interests:I am just trying to learn and help.
  •  
    Brazil

Posted 05 May 2012 - 07:54 PM

Hello folks,

Dear MedEvil as the Printer script has no instructions or procedures inside, could point me out how should I test the printer script? I have used the older version 8 (I will try the new one right now...) and tryed to add a printer without success. I manually started spool.exe as you've mentioned before. Is that so or is there a more complex procedure to test the script?

You have mentioned before that LPT's ports could be seen, but I have a USB printer and it could not find it too.

Best regards,

Aeolis

#27 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 05 May 2012 - 09:17 PM

There are no advanced instructions from me.
Spooler service still needs to be started by hand. (I don't touch that, as i have no idea, how Ludovici has planed for the script to work.)

The new script copies the 2 files, acording to your findings and should hopefully give you more things working than before.
If not, you could try stoping the spooler service and copy the 2 files to pt-BR and try again.

For me printing to XPS worked fine and printing to LPT is not possible, cause the option is missing.
I however hoped, that a USB-Printer would work, as it does not require this specific dialog to work.


:cheers:

#28 Aeolis

Aeolis

    Frequent Member

  • .script developer
  • 145 posts
  • Location:Rio de Janeiro
  • Interests:I am just trying to learn and help.
  •  
    Brazil

Posted 06 May 2012 - 03:12 PM

Hello folks,

MedEvil, your latest modified version worked with no errors. Unfortunately, I have no success adding my USB printer (actually it is a all-in-one printer - HP F4480). We really need more testers.

Best regards,

Aeolis

#29 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 06 May 2012 - 03:47 PM

We really need more testers.

Couldn't agree more. :thumbup:

Two questions though.
Did you install the printer driver on PE before starting the spooler service and what has device manager to say about the driver?

At least the printer should show up as being ok.


:cheers:

#30 sLiM

sLiM

    Member

  • Members
  • 52 posts
  •  
    United States

Posted 06 May 2012 - 04:22 PM

No luck here yet.

I have only tried the 'Print.script V8 Aeolis-Test-Version'. I have an HP-4180 AIO USB Printer/Scanner. The HP Setup routine is too big to install to Win7PE (@550 MB). I have updated the printer drivers through fully installed Win7 update, then backed them up and added them to Win7PE_SE.

Always have two printer related devices not functiong correctly using Win7PE. I can manually start the print spooler. Win7PE's driver update is not working through 'Devices and Printers', nor is troubleshooting.

Edited by sLiM, 06 May 2012 - 04:23 PM.


#31 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 06 May 2012 - 05:09 PM

How about a tutorial, for how to test? This way we're all testing the same thing.

- enable in Win7PE_SE the drivers\Driver Package Installer.script
- make sure the "Driver from Win7 Host OS" is enabled, for wherever you like the link to see
- check that in Win7PE_SE\Build\2.Shell&Config "FBWF cache size" is set at least to 256MB.
- build a Win7PE_SE which uses the same (32/64Bit) as the one installed on your computer
- when your PE has booted up, run "Driver from Win7 Host OS". This will take a while.
- check in Device Manager, everything should work fine, hopefully including your printer
- start spooler service
- check "Devices and Printers"
- try printing :dubbio:

The above tutorial is only for USB-Printers!
LPT, COM, Network and file printer require a different way to install, which is definitly broken at the moment.

:cheers:

#32 Aeolis

Aeolis

    Frequent Member

  • .script developer
  • 145 posts
  • Location:Rio de Janeiro
  • Interests:I am just trying to learn and help.
  •  
    Brazil

Posted 06 May 2012 - 05:13 PM

Hello folks,

MedEvil, I have not installed my printer drivers in PE. I have used the Device Manager "Add driver" dialog. It found my driver .inf file detected my F4480 hardware, but during the installation process the driver update dialog came up with a message saying it found the right driver, but there was a problem during installation because of a class is missing.

Best regards,

Aeolis

#33 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 06 May 2012 - 05:24 PM

This is a very useful information, Aeolis. Thank you.

If one get's this error message, it sometimes helps to simply install the driver again.
Worked for my USB-Cam, before i managed to add the missing class to the script.

:cheers:

#34 Aeolis

Aeolis

    Frequent Member

  • .script developer
  • 145 posts
  • Location:Rio de Janeiro
  • Interests:I am just trying to learn and help.
  •  
    Brazil

Posted 06 May 2012 - 06:31 PM

Hello folks,

MedEvil, after a few tries to install my printer using the "add driver" inside the device manager I had this:

Attached File  Image 1.jpg   322.66KB   29 downloads

I hope it helps.

Best regards,

Aeolis

#35 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 06 May 2012 - 07:32 PM

The topmost error is your scanner.

For the other errors, could you do me the favor and translate the devices for me?

I would also be interested in the error code of the printer.

:cheers:

#36 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 06 May 2012 - 08:12 PM

Ok, forget the translation, google already helped.

But i'm a little startled, how many devices does your AIO printer contain?
I count 5 errors.

1 is the scanner, 1 is the printer, what are the other 3?

:cheers:

#37 Aeolis

Aeolis

    Frequent Member

  • .script developer
  • 145 posts
  • Location:Rio de Janeiro
  • Interests:I am just trying to learn and help.
  •  
    Brazil

Posted 06 May 2012 - 09:25 PM

Dear MedEvil,

The other errors are always there. They are not related to the printer. My printer has the printer driver, the scanner driver and the DOT4USB driver.

Best regards,

Aeolis

#38 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 06 May 2012 - 10:09 PM

Hopefully Ludovici takes over from here, as i'm busy the next couple of days.

Seems something very basic is missing or printer spooler needs to be running for install of printer drivers too. :confused1:


:cheers:

#39 Aeolis

Aeolis

    Frequent Member

  • .script developer
  • 145 posts
  • Location:Rio de Janeiro
  • Interests:I am just trying to learn and help.
  •  
    Brazil

Posted 06 May 2012 - 10:58 PM

Hello folks,

MedEvil, I have tried to do the install process with spooler service running and it made no difference, at least here. Well, I don't know if it helps, but I have made two snapshot using DeviceManager from NirSoft, one from my installed Win7 (64 bit) and one from my PE (Win7 32 bit) after the printer drivers installation. They're here:

Installed Win7: Attached File  WorkPC.html   336.48KB   5 downloads
PE build: Attached File  PEPC.html   194.88KB   4 downloads

Best regards,

Aeolis

#40 sLiM

sLiM

    Member

  • Members
  • 52 posts
  •  
    United States

Posted 07 May 2012 - 03:33 AM

MedEvil,

Using your outline for testing:

1) & 2) Done
3). FBWF already set to 512
4). Done
5). I run full Win7 from VHD so, I have to choose either .iso or .vhd at boot time. Even though my Win7 PE offers " Driver from Win7 Host OS" it cannot find Host OS.
6). After running "pnputil all" Device Manager shows problems with one printer related device. It complained that sti_ci.dll needed to be in system32 folder. I located it and manually copied it to X:\windows\system32 folder, hit scan hardware and the .dll error seems to have been corrected. Now the problem device has been relocated under the heading "unknown".
http://www.mediafire...cdb6hih49wa1aae
http://www.mediafire...cvicmdnvlruiupx
http://www.mediafire...7dr4szvgt3l7ywr
7). Spooler service starts manually
8). Devices and Printers (HP 4180) still has yellow triangle, not functioning.
9). Close, but not printing yet.

#41 ludovici

ludovici

    Silver Member

  • .script developer
  • 610 posts
  • Location:France
  •  
    France

Posted 07 May 2012 - 06:38 PM

Hello everybody ;)

I have tested the printer function with a network printer xerox on chinese pe
I will check the usb printer error, i think it's one problem from registry or maybe a second files as spooler.exe in the script, but which ? :dubbio:

#42 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 07 May 2012 - 07:10 PM

In a Win7PE_SE no printer can be installed.
USB-Printer install fails due to some mysterious problem, LPT, COM and Network Printer fail becuase the install dialog does not offer to select any default port or create a new one.

Hope this helps pinpointing the problem.

:cheers:

#43 ludovici

ludovici

    Silver Member

  • .script developer
  • 610 posts
  • Location:France
  •  
    France

Posted 08 May 2012 - 03:50 PM

V9 printer script
http://www.mediafire...dch8qzl7z9qsd45

#44 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 08 May 2012 - 04:32 PM

Ludovici, please upload the script somewhere else, Mediafire seems to have problems.

:cheers:

#45 ludovici

ludovici

    Silver Member

  • .script developer
  • 610 posts
  • Location:France
  •  
    France

Posted 08 May 2012 - 05:21 PM

Ludovici, please upload the script somewhere else, Mediafire seems to have problems


Sorry i can't, or have you a upload example for me
Script V10 with error "USB-Printer install fails due to some mysterious problem, LPT, COM and Network Printer fail becuase the install dialog does not offer to select any default port or create a new one." resolved :clap:
http://www.mediafire...uvjkc2cde7mj5ym


If anybody know also how start a service with command NET START [service] at the start of winpe ?
In winpeshell.ini for example

#46 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 08 May 2012 - 05:51 PM

What is the exact problem?
Do you wanna know, how to write the command into the winpeshell.ini or does that not start the service?

Also, does the service need to be started after something specific, or does it just need to be started any time during boot?

:cheers:

#47 ludovici

ludovici

    Silver Member

  • .script developer
  • 610 posts
  • Location:France
  •  
    France

Posted 08 May 2012 - 06:08 PM

Yes write the command into the winpeshell.ini or use autostart winbuilder feature
just need to be started any time during boot

#48 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 08 May 2012 - 07:06 PM


TXTAddLine,%TargetDir%\windows\system32\winpeshl.ini,"#$qsc start Service #$q",Append


:cheers:

#49 ludovici

ludovici

    Silver Member

  • .script developer
  • 610 posts
  • Location:France
  •  
    France

Posted 08 May 2012 - 09:30 PM

V11 with service autorun
http://www.mediafire...32r6j0cbwjwjd23

#50 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 08 May 2012 - 11:00 PM

Sorry Ludovici. The autostart command you used, produces a wrong entry. The service does not start.


hidenowait|Start Spooler service|X:Program Filesnet.exe start Spooler


:cheers:




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users