Jump to content











Photo
- - - - -

Net Framework V4 and Print Feature Script


  • Please log in to reply
98 replies to this topic

#51 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 08 May 2012 - 11:52 PM

And version 12! (autostart of services now working.) :happy_dance:

Attached File  Printv12.script   201.32KB   17 downloads

:cheers:

#52 TheHive

TheHive

    Platinum Member

  • .script developer
  • 4199 posts

Posted 09 May 2012 - 07:56 AM

Congrats. :cheers:

#53 ludovici

ludovici

    Silver Member

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

Posted 09 May 2012 - 08:45 AM

Print V13
Error ""Error loading the TCP MIB Library" when you add a printer port standard TCP / IP"

http://www.mediafire...qvj5k30edam8g6q

#54 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 09 May 2012 - 09:57 AM

Installing drivers for a LPT printer did also fail with v12.

:cheers:

#55 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 09 May 2012 - 10:44 AM

Don't know, if this is new or i havn't just noticed it before, but the script adds 141MB in size to the max. compressed Wim! That's an additional 44%.

Given the fact, that i have here a chinese build with printer -, scanner -, web-cam support, Dot.Net, IE and WMP and what else, that's just 371MB, our build without scanner -, web-cam support, Dot.Net and WMP at 464MB seems a bit overgrown.

:cheers:

#56 ludovici

ludovici

    Silver Member

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

Posted 09 May 2012 - 02:14 PM

Hello MedEvil :beer:

Sorry but actually, the space in winpe is not my priority (Check this line: DirCopy,"%InstallSRC%WindowsSystem32DriverStoreFileRepositoryprn*","%targetdir%WindowsSystem32DriverStoreFileRepository"; i think it's not mandatory...)

My priority is to have a working script; to have Printer feature in Win7PE :dubbio:
And actually no result; maybe Class registry missing ?

P.S: After successfully activate the print function, we optimize the script together :good:

#57 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 09 May 2012 - 02:39 PM

Sure it's not a priory, just wanted to mention it.

btw. Still can't install drivers for LPT printer.
The install complains, that a needed main driver package is missing.

Had anyone else success yet?

:cheers:

#58 ludovici

ludovici

    Silver Member

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

Posted 09 May 2012 - 03:26 PM

Maybe this line resolve the problem with network printer ?

[HKEY_LOCAL_MACHINETmp_setupreg_hivControlSet001ControlPrintProvidersLanMan Print ServicesServers]
"AddPrinterDrivers"=dword:00000000

To

[HKEY_LOCAL_MACHINETmp_setupreg_hivControlSet001ControlPrintProvidersLanMan Print ServicesServers]
"AddPrinterDrivers"=dword:00000001

#59 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 09 May 2012 - 03:39 PM

:confused1: Do we misunderstand eachother?
I have no Network printer. Hence no problem with one.
LPT is the parallel port.
Or am i the one who misunderstands you?

:cheers:

#60 ludovici

ludovici

    Silver Member

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

Posted 09 May 2012 - 03:54 PM

I know Medevil, but i search all the data, as LPT port for Printer feature
Maybe also too many registry setting in my script, i think at this line:

[HKEY_LOCAL_MACHINETmp_setupreg_hivControlSet001ControlCriticalDeviceDatabaseGENERIC_USB_PRINTER]
"ClassGUID"="{36FC9E60-C465-11CF-8056-444553540000}"
"Service"="usbprint"
"DriverPackageId"="usbprint.inf_x86_neutral_203e16627752a160"

[HKEY_LOCAL_MACHINETmp_setupreg_hivControlSet001ControlCriticalDeviceDatabaseUSB#Class_07]
"ClassGUID"="{36FC9E60-C465-11CF-8056-444553540000}"
"Service"="usbprint"
"DriverPackageId"="usbprint.inf_x86_neutral_203e16627752a160"


[HKEY_LOCAL_MACHINETmp_setupreg_hivControlSet001ControlDeviceClasses{65a9a6cf-64cd-480b-843e-32c86e1ba19f}##?#UMB#UMB#1&841921d&0&PrinterBusEnumerator#{65a9a6cf-64cd-480b-843e-32c86e1ba19f}]
"DeviceInstance"="UMBUMB1&841921d&0&PrinterBusEnumerator"

[HKEY_LOCAL_MACHINETmp_setupreg_hivControlSet001ControlDeviceClasses{65a9a6cf-64cd-480b-843e-32c86e1ba19f}##?#UMB#UMB#1&841921d&0&PrinterBusEnumerator#{65a9a6cf-64cd-480b-843e-32c86e1ba19f}#]
"SymbolicLink"="?UMB#UMB#1&841921d&0&PrinterBusEnumerator#{65a9a6cf-64cd-480b-843e-32c86e1ba19f}"


And USB printer device, nobody has test ? :dubbio:

#61 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 09 May 2012 - 04:02 PM

Aeolis, did USB tests, but i havn't seen him for a few days.

:cheers:

#62 Aeolis

Aeolis

    Frequent Member

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

Posted 09 May 2012 - 08:29 PM

Hello folks,

I am alive! :loleverybody:
But during week days my test speed is much slower due to my job. I am testing it right now...

Best regards,

Aeolis

#63 Aeolis

Aeolis

    Frequent Member

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

Posted 09 May 2012 - 09:58 PM

Hello folks,

Bad news from my side here. I am using Printer script version 13 and now my PE can't go beyond the "Windows is loading files..." screen. It just stalls on that screen. Maybe the extra 141 MB mentioned by MedEvil were too much for my Boot.win file. Now my Boot.win file has 1,04 GB. Usually it's "just" 800-900 MB (I know it's too big, but I add a lot of drivers to it).

Best regards,

Aeolis

Here is the log file: Attached File  Win7PE SE-Win7x86_2012-mai-09_18-22.7z   190.87KB   1 downloads

#64 sLiM

sLiM

    Member

  • Members
  • 52 posts
  •  
    United States

Posted 10 May 2012 - 12:23 AM

Ludovici,

Printv13 is working okay with my PE build, but will still not allow printing. The only change that I can notice is that there are now more printer port choices available under Devices and Printers. The HP printer device that is not funtioning correctly seems to be the scanner.

The printer port that is needed for the HP 4100 series printers is the Dot4_001 (Generic IEEE 1284.4 printing support). Would it be possible to add it as you did with the other printer ports? If so, it may allow for a manual install for HP USB printers. I have walked through the manual install for these printers before, and it was the only port choice that would work.

Hope this helps.

see here:
http://www.mediafire...fl8vjwplaqdj4js

Edited by sLiM, 10 May 2012 - 12:35 AM.


#65 ludovici

ludovici

    Silver Member

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

Posted 10 May 2012 - 08:24 AM

Hello everybody,

My protocol of test:
Download Win7PE_SE_20120416L_Small
http://www.mediafire...yrz2v4ckrsvsz31

Choose by default

Only add printer.script in app

And build ;)

#66 sLiM

sLiM

    Member

  • Members
  • 52 posts
  •  
    United States

Posted 10 May 2012 - 10:56 AM

Small PE build completed sucessfully. Have run pnputil all. No printer or video drivers installed in device manager.

10 printer ports are available.

#67 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 10 May 2012 - 11:48 AM

@sLiM
A USB printer should not need a port declared. It should install automaticly, what's needed.

@Ludovici
I don't get it, where is the new script in the archive?

:cheers:

#68 Aeolis

Aeolis

    Frequent Member

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

Posted 12 May 2012 - 02:13 PM

Hello folks,

Well, the problem I've reported before is fixed! It was a problem with my eagerness for drivers! :whip:

I have tested the latest version of printer script (version 13). I confirm that the "add printer" dialog now displays a lot of options. But, unfortunately, I could not install my USB printer at all.

Any questions, doubts, suggestions just drop them here. I am here to test! :tabletalk:

Best regards,

Aeolis

#69 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 12 May 2012 - 05:35 PM

Like i said before, the add printer dialog is just for LPT, Network and File printers.
USB Printers are PnP devices and should install just like Network- and Graphics cards.

However, so far noone seems to have had any luck. There must be something common to all kinds of printers be missing/broken.

Has anyone an error message or error code to report, that could shed some light on the problem?

:cheers:

#70 Aeolis

Aeolis

    Frequent Member

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

Posted 12 May 2012 - 07:23 PM

Hello folks,

My finding so far:

1) Manual installation of my AIO HP printer via "add printer" dialog under PE:

Attached File  Image 1.jpg   323.25KB   18 downloads

Ended with the error code in the picture.

2) Here comes a comparison between my system detection under PE and in my working installed Win 7:

Attached File  Image 3.jpg   99.61KB   17 downloads

After manually add the HP AIO drivers the printer components got recognized and where moved from totally "unknown device" to "unknown device" under their right class, but the still are "unknown device". This led me to conclude we are missing some important classes here.

Share your thoughts. And We need more testers! :cheerleader:

Best regards,

Aeolis

#71 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 12 May 2012 - 07:48 PM

Yep came to the same conclusion here. The printer class seems to be missing.

Best proof is, that the scanner get's listed correctly, even though the imager class is missing the dll to show the correct language string.

:cheers:

#72 Aeolis

Aeolis

    Frequent Member

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

Posted 12 May 2012 - 09:33 PM

Hello folks,

MedEvil, you were totally right! I have added manually "sti_ci.dll" and "sti_ci.dll.mui" to my PE and now the scanner is correctly identified by device manager although it display a error, see below:

Attached File  Imagem4.jpg   520.2KB   18 downloads

We are getting closer. :hyper:

We need more classes! My precious, my precious... :crazyrocker:

#73 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 12 May 2012 - 10:12 PM

The printer problem seems to be a registry problem.
CoreDriverDependencies= {D20EA372-DD35-4950-9ED8-A6335AFE79F0}
Is listed in my printers.inf and my error message reads: install failed cause DriverMainPackage missing.

Throwing in a whole Win7, did not change the error meassage.

---------------------------------------------------------------

Ok scanner support is a bit :offtopic:, but here is, what i did to get USB-camera working.

Try to add to your build:
Folder: sti.inf_x86_neutral... --- You will have to install this, like you would a driver.

Windows\twain.dll
Windows\twain_32.dll
Windows\twunk_16.exe
Windows\twunk_32.exe
Windows\en-US\twain_32.dll.mui
Windows\System32\en-US
Windows\System32\perfproc.dll
Windows\System32\scansetting.dll
Windows\System32\sti.dll
Windows\System32\sti_ci.dll
Windows\System32\wiaacmgr.exe
Windows\System32\wiaaut.dll
Windows\System32\wiadefui.dll
Windows\System32\wiadss.dll
Windows\System32\wiafbdrv.dll
Windows\System32\wiascanprofiles.dll
Windows\System32\wiaservc.dll
Windows\System32\wiashext.dll
Windows\System32\wiatrace.dll
Windows\System32\wiavideo.dll
Windows\System32\en-US\scansetting.dll.mui
Windows\System32\en-US\sti.dll.mui
Windows\System32\en-US\sti_ci.dll.mui
Windows\System32\en-US\wiaacmgr.exe.mui
Windows\System32\en-US\wiaaut.dll.mui
Windows\System32\en-US\wiadefui.dll.mui
Windows\System32\en-US\wiadss.dll.mui
Windows\System32\en-US\wiafbdrv.dll.mui
Windows\System32\en-US\wiascanprofiles.dll.mui
Windows\System32\en-US\wiaservc.dll.mui
Windows\System32\en-US\wiashext.dll.mui
Windows\System32\en-US\wiavideo.dll.mui
Windows\twain_32\wiatwain.ds

For the mui files, you will have to look, in which folder they are in your source.

Let me now how it goes! ;)


:cheers:

#74 Aeolis

Aeolis

    Frequent Member

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

Posted 13 May 2012 - 01:29 PM

Hello folks,

MedEvil, I don't think it's off-topic, because my scanner and my printer are one single equipment (HP AIO F4400), so if one work the other should work too. And there're lots of Printer users that uses AIO machines, so I think it's pretty good to add it to the script.

The list of files you wrote just above is a trial-and-error work of yourself or did you find it somewhere else? I will test it out..

Best regards,

Aeolis

#75 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7771 posts

Posted 13 May 2012 - 02:19 PM

Neighter! It's based on the component based approach, i talked about in the other thread.

The reason it is not 100% functional in Win7PE_SE is, that not all subsystems of Win7PE_SE are 100% working as they should.
So, for a script working 100% in Win7PE_SE, the script would need to fix a few things, which are not directly related to scanners and web-cams.

:cheers:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users