无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
12
返回列表 发新帖
楼主: hhh333
打印 上一主题 下一主题

[分享] 关于Win10的打印组件

    [复制链接]
10#
发表于 2019-6-11 14:49:38 | 只看该作者
WimBuilder2\Projects\WIN10XPE\01-Components\Printer\main.bat
  1. rem ==========update filesystem==========

  2. set AddFiles_Mode=merge
  3. ;devices and printers
  4. call AddDrivers "c_pnpprinters.inf,c_printer.inf,PrintQueue.inf,printupg.inf,usbprint.inf"

  5. ;base drivers
  6. call AddDrivers "ntprint4.inf,ntprint.inf,ntprint4.inf,tsprint.inf,wsdprint.inf"

  7. call AddFiles %0 :end_files
  8. goto :end_files

  9. \Windows\splwow64.exe
  10. \Windows\PrintDialog

  11. \Windows\System32\drivers\usbprint.sys
  12. @\Windows\System32\driverstore\en-US
  13. ;devices and printers
  14. c_dot4print.inf_loc
  15. c_pnpprinters.inf_loc
  16. c_printer.inf_loc
  17. c_receiptprinter.inf_loc

  18. ;base drivers
  19. ntprint4.inf_loc

  20. @\Windows\System32\driverstore\%WB_PE_LANG%
  21. ;devices and printers
  22. bthprint.inf_loc
  23. PrintQueue.inf_loc
  24. usbprint.inf_loc

  25. ;base drivers
  26. ntprint.inf_loc
  27. tsprint.inf_loc
  28. WSDPrint.inf_loc

  29. @\Windows\System32\catroot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\
  30. *Print*
  31. ntprint.cat
  32. ntprint4.cat
  33. prn*.cat
  34. @\Windows\System32\DriverStore\FileRepository\prn*.inf*

  35. @\Windows\System32\
  36. AppMon.dll,bidispl.dll,compstui.dll,DafPrintProvider.dll,defaultdevicemanager.dll,defaultprinterprovider.dll
  37. DevDispItemProvider.dll,DeveloperOptionsSettingsHandlers.dll,deviceassociation.dll
  38. DeviceCenter.dll,DeviceDisplayStatusManager.dll,DeviceDriverRetrievalClient.dll
  39. DeviceEject.exe,DeviceElementSource.dll,DeviceEnroller.exe,DeviceMetadataRetrievalClient.dll
  40. DevicePairing.dll,DevicePairingFolder.dll,DevicePairingProxy.dll,DevicePairingWizard.exe
  41. deviceregistration.dll,DeviceSetupManager.dll,DeviceSetupManagerAPI.dll,DeviceSetupStatusProvider.dll
  42. DevicesFlowBroker.dll,DeviceUxRes.dll,devinv.dll,DevPropMgr.dll,DevQueryBroker.dll,efswrt.dll
  43. FaxPrinterInstaller.dll,FdDevQuery.dll,fdPnp.dll,fdprint.dll,fdWNet.dll,fdWSD.dll,findnetprinters.dll
  44. fundisc.dll,fxsapi.dll,FXSMON.dll,FXSRESM.dll,gpprnext.dll,hgprint.dll,icm32.dll,icmui.dll
  45. inetpp.dll,inetppui.dll,IPPMon.dll,localspl.dll,localui.dll,mgmtapi.dll
  46. newdev.exe,ntprint.dll,ntprint.exe,OpcServices.dll,pcl.sep,print.exe
  47. PrintBrmUi.exe,PrintDialogHost.exe,PrintDialogs.dll,printfilterpipelineprxy.dll,printfilterpipelinesvc.exe
  48. PrintIsolationHost.exe,PrintIsolationProxy.dll,printmanagement.msc,PrintPlatformConfig.dll,PrintRenderAPIHost.DLL
  49. printui.dll,printui.exe,PrintWSDAHost.dll,prncache.dll,prnfldr.dll,prnntfy.dll,prntvpt.dll,pscript.sep
  50. puiapi.dll,puiobj.dll,rasadhlp.dll,RepCurUser.cmd,ReSpooler.cmd,serialui.dll,spoolss.dll,spoolsv.exe,srclient.dll
  51. srcore.dll,sysprint.sep,sysprtj.sep,tcpmon.ini,umb.dll,usbmon.dll,webservices.dll,win32spl.dll
  52. Windows.Devices.Printers.dll,Windows.Devices.Printers.Extensions.dll
  53. Windows.Graphics.dll,Windows.Graphics.Printing.3D.dll,Windows.Graphics.Printing.dll
  54. Windows.Internal.Shell.Broker.dll,WLIDNSP.DLL,WlS0WndH.dll,WSDApi.dll,WSDMon.dll,wsdprintproxy.dll,WSDScanProxy.dll
  55. XpsDocumentTargetPrint.dll,XpsFilt.dll,XpsGdiConverter.dll,XpsPrint.dll,XpsRasterService.dll,XPSServiceS.DLL,XPSSHHDR.dll
  56. xwizard.exe,xwizards.dll,xwtpdui.dll,xwtpw32.dll
  57. :end_files

  58. call DoAddFiles

  59. rem ==========update registry==========

  60. call RegCopy SYSTEM\ControlSet001\Control\Print
  61. call RegCopy SYSTEM\ControlSet001\Control\Class\{1ed2bbf9-11f0-4084-b21f-ad83a8e6dcdc}
  62. call RegCopy SYSTEM\ControlSet001\Control\Class\{4658ee7e-f050-11d1-b6bd-00c04fa372a7}
  63. call RegCopy SYSTEM\ControlSet001\Control\Class\{49ce6ac8-6f86-11d2-b1e5-0080c72e74a2}
  64. call RegCopy SYSTEM\ControlSet001\Control\Class\{4d36e979-e325-11ce-bfc1-08002be10318}
  65. call RegCopy SYSTEM\ControlSet001\Control\Class\{c30ecea0-11ef-4ef9-b02e-6af81e6e65c0}
  66. call RegCopy SYSTEM\ControlSet001\Control\Class\{c7bc9b22-21f0-4f0d-9bb6-66c229b8cd33}

  67. rem add services
  68. call RegCopyEx Services Spooler

  69. rem remove usbprint if this is additional component
  70. call RegCopyEx Services usbprint

  71. rem update spoolsv.exe binary
  72. binmay.exe -u "%X_SYS%\spoolsv.exe" -s u:SystemSetupInProgress -r u:DisableSpoolsvInWinPE
  73. fc /b "%X_SYS%\spoolsv.exe.org" "%X_SYS%\spoolsv.exe"
  74. del /f /q "%X_SYS%\spoolsv.exe.org"

  75. rem EnablePrintFeature
  76. md "%X%\PEMaterial"
  77. if 1==1 (
  78.   echo ntprint.exe
  79.   echo net start spooler
  80.   echo PnPutil.exe -i -a "%%Windir%%\inf\usbprint.inf"
  81. )>"%X%\PEMaterial\EnablePrintFeature.bat"
  82. rem call link "%X%\PEMaterial\EnablePrintFeature.bat" "%X_Desktop%\EnablePrintFeature.lnk"
复制代码


按你的列表和注册表信息,转了WimBuilder2的批处理,进PE是提示打印服务启动成功,
驱动安装成功。不过没有打印设备无法判断。

XPS的DLL看到有添加,但是好像打印上没有虚拟打印机选项。。。

点评

终于发现了,一个看花眼导致1903打印组件一个月都安装不上,现在可以了。  详情 回复 发表于 2019-7-7 16:26
回复

使用道具 举报

9#
 楼主| 发表于 2019-6-10 18:49:52 | 只看该作者
其实我发布的PE中一直有外置的打印组件,见有人问起,因此总结了一下共享出来。
回复

使用道具 举报

8#
发表于 2019-6-10 17:00:12 | 只看该作者
佩服!这得花上多少时间啊,这么就放给大家了。感谢大公无私的hhh333
回复

使用道具 举报

7#
发表于 2019-6-10 10:26:48 | 只看该作者
打印机系统中已经集成
回复

使用道具 举报

6#
发表于 2019-6-10 09:52:18 | 只看该作者
没有打印设备啊
回复

使用道具 举报

5#
发表于 2019-6-10 08:26:25 | 只看该作者
很详细,多谢h大的分享
回复

使用道具 举报

4#
发表于 2019-6-9 20:32:43 来自手机 | 只看该作者
打印组件扔的太久了,断档了。多谢分享
回复

使用道具 举报

3#
发表于 2019-6-9 19:52:20 | 只看该作者
受用受用,感谢感谢
回复

使用道具 举报

2#
发表于 2019-6-9 19:24:26 来自手机 | 只看该作者
支持H大
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-7-7 08:10

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表