Topic: extension .prn with PDF printer  (Read 376 times)

extension .prn with PDF printer
« on: December 26, 2019, 09:28:52 PM »

cretino

  • Chef
  • ***
  • Date Registered: Jan 2018
  • Posts: 240
HI noelBlanc

Code: [Select]
... I notice the absence of a real installation
you need to add this to work ...

Code: [Select]
Question: But where does this data come from?
i think James have a better answer than me ...

Edit Lancelot:
Post moved here following noelBlanc request.
 http://theoven.org/index.php?topic=1639.msg36103#msg36103
« Last Edit: December 29, 2019, 12:30:49 PM by Lancelot, Reason: Post moved here following noelBlanc request. http://theoven.org/index.php?topic=1639.msg36103#msg36103 »

extension .prn with PDF printer
« Reply #1 on: December 26, 2019, 10:29:49 PM »

noelBlanc

  • Chef
  • ***
  • Date Registered: Dec 2013
  • Posts: 266
Hi cretino, thanks for your reply.
Yes, i understand i need these keys to get "*.pdf" in the extension ;)
2 ways to put these keys in registry, a .reg file or all the drivers hive.
I thing my "cosmetic" issue was also in my first usage of PDF/XPS printers in Winpe, in 2016 (i do not verify because i don't keep old builds)
It's difficult for me to explain, my English is too poor.
With my precedent post, I wanted to show the link between the displaying of a wrong extension (*.prn) and the driversDataBase for X86 environment in a AMD64 OS.
On one side, a simple "cosmetic" error, on the other side, the complex imbrication of WOW and the impossibilty to install "ntprint_x86..." with dism on a ADM4 OS.


Re: extension .prn with PDF printer
« Reply #2 on: December 26, 2019, 10:41:43 PM »

cretino

  • Chef
  • ***
  • Date Registered: Jan 2018
  • Posts: 240
hi noelBlanc

Code: [Select]
It's difficult for me to explain, my English is too poor.
me too very very poor  :grin: :grin: :grin:

i see James has updated the scipt " http://theoven.org/index.php?topic=2607.msg28500#msg28500 "
now im at work i cant testit but i guess now is ok ...

Re: extension .prn with PDF printer
« Reply #3 on: December 26, 2019, 11:13:19 PM »

noelBlanc

  • Chef
  • ***
  • Date Registered: Dec 2013
  • Posts: 266
hi cretino
i see in description of the plugin "print support" :
Print To PDF - defaults to .PRN File Extension - Which is Readable with a PDF Reader..
Is it a warning that "*.Prn" is displaying and not "*.Pdf" ?
I'm curious. Is this (below) key present on win10XPE ?
Code: [Select]
...\SYSTEM\CurrentControlSet\Control\Print\Environments\Windows NT x86-Drivers\Version-3\Microsoft enhanced Point and Print compatibility driver
Please, would you send me the result when you'll test. Or A trace of procmon (net stop spooler, launch procmon, net start spooler)

Re: extension .prn with PDF printer
« Reply #4 on: December 26, 2019, 11:21:22 PM »

cretino

  • Chef
  • ***
  • Date Registered: Jan 2018
  • Posts: 240
hi noelBlanc
wwait im testing now ( Pause-café  :wink: )

edit

Quote
Is it a warning that "*.Prn" is displaying and not "*.Pdf" ?
i think description not updated  :tongue:
ila_rendered
ila_rendered
ila_rendered

edit
this test with MediaTransferProtocol_XPE.Script
« Last Edit: December 27, 2019, 12:01:18 AM by cretino »

Re: extension .prn with PDF printer
« Reply #5 on: December 27, 2019, 12:06:55 AM »

APT

  • Grand Chef
  • *****
  • winpe enthusiast
  • Location: UK
  • Date Registered: Nov 2012
  • Posts: 1150
Hi
@noelBlanc
 
Quote
Is this (below) key present on win10XPE ?
I cant find that key on my PE

@cretino
I thought I was using James latest printer plugin + MTP but I'm still getting .prn only
but I'll re-download that scriptfile and check

Re: extension .prn with PDF printer
« Reply #6 on: December 27, 2019, 12:30:06 AM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
Cretino,
Thanks for taking the time to test printer support...
I see you added driverfiles to your reg.txt... (Easy Enough to do)
We have been there and done that - to fix MTP...


Test without Using MTP... (As we try to fix independently)

I use Base Build without Features - sometimes loads Fax, pdf printer, xml printer (sometimes not)
Tests usually better with Full Software Hive....

Need to find what works - then remove things until it breaks - then find why it broke > To Fix..
Being consistent with tests is vital - So when posting test results - post features or additions...

Re: extension .prn with PDF printer
« Reply #7 on: December 27, 2019, 12:34:09 AM »

cretino

  • Chef
  • ***
  • Date Registered: Jan 2018
  • Posts: 240
hi James
already done, without MediaTransferProtocol_XPE.Script not work properly

ila_rendered

Re: extension .prn with PDF printer
« Reply #8 on: December 27, 2019, 12:41:24 AM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
I thought so...
When you say not working - Printer not loading ?? or explain
seems there is an overlapping process required....

Re: extension .prn with PDF printer
« Reply #9 on: December 27, 2019, 12:44:14 AM »

cretino

  • Chef
  • ***
  • Date Registered: Jan 2018
  • Posts: 240
Quote
When you say not working - Printer not loading ??
loading but i cant print " .pdf " , only " .prn "

Re: extension .prn with PDF printer
« Reply #10 on: December 27, 2019, 01:02:33 AM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
so we are missing a driver(s) from Printer Support [Driver_Registry] that is included in MTP Support [Driver_Registry]

try adding > RegAddDriver,winusb.inf < to printer support - files exist in basic build

@ Noel,
Do you want us to continue with Printer Support Testing here on this topic ? (as we testing with XPE) Or would you like us to Open a topic in XPE Homepage ??

@ Cretino,
are you testing with your Driver.reg.txt ???
« Last Edit: December 27, 2019, 01:33:03 AM by James »

Re: extension .prn with PDF printer
« Reply #11 on: December 27, 2019, 01:39:53 AM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
Cretino,
Or use MTP as your test victim.... Since PRS works with MTP
Kill things inside MTP [Process] to see what breaks PRS (Registry or Files)

Re: extension .prn with PDF printer
« Reply #12 on: December 27, 2019, 01:52:41 AM »

cretino

  • Chef
  • ***
  • Date Registered: Jan 2018
  • Posts: 240
hi Jamesw box

naw with your scipt i can save as pdf, was missing this key from scipt in both arc (x86 & 64°
Code: [Select]
[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase]

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DeviceIds]

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DeviceIds\MicrosoftMicrosoft_MUSD]
"prnms003.inf"=hex:01,ff,00,00

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DeviceIds\{4d36e979-e325-11ce-bfc1-08002be10318}]
"ntprint.inf"=hex(0):
"prnms003.inf"=hex(0):

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DeviceIds\{D20EA372-DD35-4950-9ED8-A6335AFE79F0}]
"ntprint.inf"=hex:01,ff,00,00

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DeviceIds\{D20EA372-DD35-4950-9ED8-A6335AFE79F1}]
"ntprint.inf"=hex:01,ff,00,00

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DeviceIds\{D20EA372-DD35-4950-9ED8-A6335AFE79F2}]
"ntprint.inf"=hex:01,ff,00,00

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DeviceIds\{D20EA372-DD35-4950-9ED8-A6335AFE79F3}]
"ntprint.inf"=hex:01,ff,00,00

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DeviceIds\{D20EA372-DD35-4950-9ED8-A6335AFE79F5}]
"ntprint.inf"=hex:01,ff,00,00

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DriverFiles]

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DriverFiles\LOCALE.GPD]
@="ntprint.inf"
"SubDir"="I386"

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DriverFiles\MSXPSINC.GPD]
@="ntprint.inf"
"SubDir"="I386"

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DriverFiles\MSXPSINC.PPD]
@="ntprint.inf"
"SubDir"="I386"

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DriverFiles\MXDWDRV.DLL]
@="ntprint.inf"
"SubDir"="I386"

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DriverFiles\P6DISP.GPD]
@="ntprint.inf"
"SubDir"="I386"

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DriverFiles\P6FONT.GPD]
@="ntprint.inf"
"SubDir"="I386"

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DriverFiles\PCL4RES.DLL]
@="ntprint.inf"
"SubDir"="I386"

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DriverFiles\PCL5ERES.DLL]
@="ntprint.inf"
"SubDir"="I386"

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DriverFiles\PCL5URES.DLL]
@="ntprint.inf"
"SubDir"="I386"

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DriverFiles\PCLXL.DLL]
@="ntprint.inf"
"SubDir"="I386"

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DriverFiles\PCLXL.GPD]
@="ntprint.inf"
"SubDir"="I386"

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DriverFiles\PJL.GPD]
@="ntprint.inf"
"SubDir"="I386"

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DriverFiles\PJLMON.DLL]
@="ntprint.inf"
"SubDir"="I386"

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DriverFiles\PrintConfig.dll]
@="prnms003.inf"
"SubDir"="I386"

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DriverFiles\PS5UI.DLL]
@="ntprint.inf"
"SubDir"="I386"

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DriverFiles\PSCRIPT.HLP]
@="ntprint.inf"
"SubDir"="I386"

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DriverFiles\PSCRIPT.NTF]
@="ntprint.inf"
"SubDir"="I386"

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DriverFiles\PSCRIPT5.DLL]
@="ntprint.inf"
"SubDir"="I386"

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DriverFiles\PSCRPTFE.NTF]
@="ntprint.inf"
"SubDir"="I386"

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DriverFiles\PS_SCHM.GDL]
@="ntprint.inf"
"SubDir"="I386"

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DriverFiles\STDDTYPE.GDL]
@="ntprint.inf"
"SubDir"="I386"

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DriverFiles\STDNAMES.GPD]
@="ntprint.inf"
"SubDir"="I386"

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DriverFiles\STDSCHEM.GDL]
@="ntprint.inf"
"SubDir"="I386"

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DriverFiles\STDSCHMX.GDL]
@="ntprint.inf"
"SubDir"="I386"

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DriverFiles\TTFSUB.GPD]
@="ntprint.inf"
"SubDir"="I386"

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DriverFiles\UNIDRV.DLL]
@="ntprint.inf"
"SubDir"="I386"

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DriverFiles\UNIDRV.HLP]
@="ntprint.inf"
"SubDir"="I386"

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DriverFiles\UNIDRVUI.DLL]
@="ntprint.inf"
"SubDir"="I386"

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DriverFiles\UNIRES.DLL]
@="ntprint.inf"
"SubDir"="I386"

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DriverFiles\unishare-pipelineconfig.xml]
@="prnms003.inf"
"SubDir"="I386"

[HKEY_LOCAL_MACHINE\Tmp_Drivers\DriverDatabase\DriverFiles\unishare.gpd]
@="prnms003.inf"
"SubDir"="I386"

i send it to you

the MediaTransferProtocol_XPE.Script  needed to show the fax in the window
will see witch one needed to add ...

Code: [Select]
are you testing with your Driver.reg.txt ???
sorry , i forghet it in customise script  :embarrassed:

Re: extension .prn with PDF printer
« Reply #13 on: December 27, 2019, 08:36:50 AM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
Noel,
Here are the PE registry hives after processing just printer support...

Chris & Slore > both use a batch file or cmd to copy Install.wim registry keys by name search.inf

Code: [Select]
Reg Copy Key,HKLM,Tmp_Drivers\DriverDatabase\DeviceIds,"#1"
Reg Copy Key,HKLM,Tmp_Drivers\DriverDatabase\DriverFiles,"#1"
Reg Copy Key,HKLM,Tmp_Drivers\DriverDatabase\DriverInfFiles,"#1"
Reg Copy Key,HKLM,Tmp_Drivers\DriverDatabase\DriverPackages,"#1*"

I see in your post > default as _86_
but think the important is > Active as _amd64_
« Last Edit: December 27, 2019, 08:41:36 AM by James »

Re: extension .prn with PDF printer
« Reply #14 on: December 27, 2019, 09:40:27 AM »

noelBlanc

  • Chef
  • ***
  • Date Registered: Dec 2013
  • Posts: 266
Hi
@cretino : you can use my email noelblanc.winpe(at)free and write in french. So i'll understand more easier
@james : You are right. It would be better if the discussion continued in a new post win10XPE. A lot of people could participate.

as I said earlier, I have no problem with my winpeBuilder tool. And this is because I made the structuring choices to copy the soft hive in its entirety.

In order that the extension "". PDF" appears with the PDF printer I made the choice to copy the entire hive drivers.
I made a trade-off between size and detail (I look for details to please me and when it brings me satisfaction).

For more than 8 days I've been looking for how to display ''.pdf' in the context of my PS winpebuider tool (PS script). It was a great pleasure to play with Windbg.

About win10XPE and PRS plugin, The beginning of my interest was simply curiosity. Because it was my last activity.
I asked for a procmon trace because i wanted to compare with my trace (i really can't use the application winbuilder.exe. Sorry. To complex for my poor English).

I see this in my trace when starting the 64-bit spooler: setting up the context spooler_X86 (keys and files)
The installation of this context Spooler_X86 requires driversdatabase and driverstore items.  With a procmon track of the spooler start, I could have quickly seen if this X86 context was correct. The presence of the key is also a point showing a good installation.
Code: [Select]
...\SYSTEM\CurrentControlSet\Control\Print\Environments\Windows NT [color=blue]x86-Drivers\Version-3[/color]\Microsoft enhanced Point and Print compatibility driver
Perhaps i can help.

Ps : since 2016, i use printers PDF in winpe. The delay of 2 minutes is hardcoding in spoolsv.exe. I never try to reduce. But it's possible. Is there a gain for
final user ?

Re: extension .prn with PDF printer
« Reply #15 on: December 27, 2019, 09:45:49 AM »

slore

  • WimBuilder
  • Sr. Chef
  • ****
  • Date Registered: Jun 2016
  • Posts: 664
WimBuilder2 has AddDrivers macro to copy both driver files and registry items.
But the ALL drivers registry items is small,  so WimBuilder2 has an option to RegCopy all the DRIVERS registry items(ON by default).

AddDrivers macro just copy files if it knows you already copied all system DRIVERS registry items.

It be simpler and faster, but gain 600kb size.


So with WimBuilder2,  I can see *. pdf type,  I can't reproduce the issue.
Good to know WHAT'S Key causes this issue.
Noel  :thumbsup:

Re: extension .prn with PDF printer
« Reply #16 on: December 27, 2019, 10:28:58 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Hi noelBlanc,

you (and cretino and ..) can post French here  :thumbsup:
It is nicer to have info available public.  :great:


*
@noelBlanc
I feel you will have good times reading WimBuilder Log
http://lancelot.theoven.org/TheOvenAttach/20191227_WimBuilder_Build_Step_by_Step.zip

On last picture, notice "Open Last Build Log"

Syntax is cmd syntax so you will have no trouble when reading.  :xmas-beer:

*
Thanks Galapo,

We can continue cooking :great:
 :bbq:
Cooked burgers getting better.  :smart:

:turtle:

Re: extension .prn with PDF printer
« Reply #17 on: December 27, 2019, 11:39:46 AM »

noelBlanc

  • Chef
  • ***
  • Date Registered: Dec 2013
  • Posts: 266
hi Lancelot,
it's always a pleasure to read you.

I have found that on the one hand I misunderstand what is written and on the other hand that I am misunderstood. My idea is not to hide something. But not to pollute the offers of others.

And in the case of the extension '*.prn' I just wanted a file of a procmon trace. This would have allowed me to check what I had written in a previous post about it.

About WIMBUILDER, i like it. And  I use it. And in a precedent post , i say that WimBuilder speak in French. :cheerleader:

But when i want to investigate in winpe ( OOBE in spoolsv, ALP port in termservice…. BSOD...) i need to use my building scripts and vhd (flat, fullflat) because it is with my own tools that I am most effective.
I hope you understand me.
 

Re: extension .prn with PDF printer
« Reply #18 on: December 27, 2019, 11:45:15 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
it is with my own tools that I am most effective.
I hope you understand me.
I fully understand you.  :thumbsup:

I also do similar like you on other cases  :xmas-cheesy:

Generally, I also look dependencies and document as deep as I can like you do but different areas.  :wink:

See You  :turtle:

Re: extension .prn with PDF printer
« Reply #19 on: December 27, 2019, 03:52:55 PM »

cretino

  • Chef
  • ***
  • Date Registered: Jan 2018
  • Posts: 240
hi
Code: [Select]
The presence of the key is also a point showing a good installation.

under pe this are present ( with lastes printer suppert scrip )
Code: [Select]
...\Control\Print\Environments\Windows NT x86\Drivers\Version-3\Microsoft enhanced Point and Print compatibility driver
...\Control\Print\Environments\Windows NT x86\Drivers\Version-3\Microsoft Shared Fax Driver
...\Control\Print\Environments\Windows NT x86\Drivers\Version-4\Microsoft Print To PDF
...\Control\Print\Environments\Windows NT x86\Drivers\Version-4\Microsoft XPS Document Writer v4

adding printer driver + WinUsb Driver + Still Image Setup File

ila_rendered

printer device not recognized in "peripherals and printers" & not showing in printer window ...
still missed key ...
(tested without mpt script)
 " ça devient une folie , je me suis à peine réveillé et je me retrouve devant le pc ... "

edit

there was another hp driver that i forgot, now it's recognized by the system .. almost,
when i click on the print button, nothing happens, the printer does not print, it looks like a service is missing ...  :undecided: :undecided: :undecided:

"( il y avait un autre identifiant hp que j'ai oublié,maintenant elle est reconnue par le systeme .. presque,
lorsque je clique sur le bouton imprimer, rien ne se passe, l'imprimante n'imprime pas ,on dirait qu'il manque un service ... )"

ila_rendered
« Last Edit: December 28, 2019, 07:16:54 AM by cretino »

 

Powered by EzPortal