Topic: MicroWinpeBuilder to adapt its own Winpe : tutorial or 'under the hood'?  (Read 76537 times)

Re: MicroWinpeBuilder to adapt its own Winpe : tutorial or 'under the hood'?
« Reply #320 on: March 29, 2021, 11:50:28 PM »

Lancelot

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

Thanks for the info, It is useful  :thumbsup:
We can set default detail view columns

More info:
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Streams\Defaults]
"{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}"=hex:...........
It overrides (superior) your setting with
\FolderTypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\TopViews\{00000000-0000-0000-0000-000000000000},ColumnList

eg. ColumnList type disabled  (1System.ItemTypeText) --> If there is Streams\Defaults --> windows use Streams\Defaults and ignore ColumnList

For now I do not know Bags position with this, but from what I read so far I feel:
Streams\Defaults > Bags > ColumnList

>  means superior

PE at first does not have Streams\Defaults, they are created if the user change some view settings
eg. 
1) Change Nom column width
2) "Apply to Folders" button
3) check your HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Streams\Defaults  :wink:


@HeyJoe

Bag save do not work inside PE as you reported, Procmon shows explorer do some read at bags but it does not write.
Anyway
From your picture I see you need Medium icons
LogicalViewMode 3 is Medium icons, but I do not know your special folder id

Giving example :

Changing Generic special folder view setting to Medium Icon use this :
Code: [Select]
RegHiveLoad,Tmp_Software,%RegSoftware%
RegWrite,HKLM,0x4,Tmp_Software\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\TopViews\{00000000-0000-0000-0000-000000000000},LogicalViewMode,3
RegHiveUnLoad,Tmp_Software
Open explorer and browse X:\ --> It will be Medium Icon  :wink:
LogicalViewMode,1 --> Details

Further replace {5c4f28b5-f869-4e84-8e60-f11db97c5cc7} with the special folder id on your picture, let us know when you figure out.

Let's see if this helps in your case. Good luck. :thumbsup:

:turtle:

Re: MicroWinpeBuilder to adapt its own Winpe : tutorial or 'under the hood'?
« Reply #321 on: March 31, 2021, 06:15:36 PM »

HeyJoe

  • Chef
  • ***
  • Location: Germany
  • Date Registered: Apr 2020
  • Posts: 102
Hi Noel,
Hi lancelot

I was happy to read your posts:
here: http://theoven.org/index.php?topic=1639.msg40055#msg40055
and here: http://theoven.org/index.php?topic=1639.msg40047#msg40047
...

Thx gentlemen for Your effort and the hints.
Some of tips are known to Me. Tested in the past - but no success so far.

...
Still, PE not saving folder settings after boot is the main "issue" ...
...

That's in fact My Status Quo.

The less time the less important to Me.
I'm sure I will remember someday unsolved "issue". But for now other things have priority.

See You.

Re: MicroWinpeBuilder to adapt its own Winpe : tutorial or 'under the hood'?
« Reply #322 on: April 01, 2021, 01:27:30 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
...
Still, PE not saving folder settings after boot is the main "issue" ...
...

That's in fact My Status Quo.

At least we can now set how explorer see folder during a build, thanks to noelBlanc http://theoven.org/index.php?topic=1639.msg40052#msg40052 --> and in fact that noelBlanc reply made me figure out 3 layers of explorer view settings ...

I already start to use  "Name-Size-Date" with Explorer (Generic) inside PE (Azin) following noelBlanc  :great:

*
Time ....
When you find time, start with finding that special folder id on your picture.   :wink:

See You
:turtle:

Edit: Test edit
« Last Edit: April 02, 2021, 07:31:41 PM by Lancelot »

Re: MicroWinpeBuilder to adapt its own Winpe : tutorial or 'under the hood'?
« Reply #323 on: April 03, 2021, 09:05:32 AM »

Lancelot

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

hopefully You are fine.
Sorry, late reply.

@HeyJoe: thank you for the test. It is already a very good thing that the scan is recognized.
It is therefore that all the common elements are present.
For the "New Scan" menu: only if you have time, you could take a track/catch with procmon.
This would allow me to confirm that the missing objects are linked and depend on the hardware, the device.
For example, my Samsung scan uses a lot of dll/exe in 32bit mode.
You are welcome.
I can't test before next week, or so. :sad: Please be patient...
Today I am happy to comply with your request to repeat the printer/scanner test.

Test environment was same as described in http://theoven.org/index.php?topic=1639.msg39891#msg39891 except own printer (same model).
The way of acting also was same as described in http://theoven.org/index.php?topic=1639.msg39891#msg39891
But with this shorter way:

After successfully installing the printer by windows with its own driver files, all I had to do was look for the correct scanner driver files.
I just unpacked the Installer Package for Universal Scanner to a folder and let windows update the scanner hardware with driver files inside this folder.

Bingo! Scanner smoothly worked with WFS method as well as with option available on printer's context menu in "Devices and Printers" panel :smile::smile:
This means that only the right driver is crucial, while everything else is already on Your deck.

Great work done Noel :smile:

Please see My two scan results:
Sorry. No pics at the moment (both are < 1MB) - seems forumengine doesn't like it. Trying later.


Happy Easter inpandemic times, wherever possible.

Have a good time. Stay healthy.
See You.

Re: MicroWinpeBuilder to adapt its own Winpe : tutorial or 'under the hood'?
« Reply #324 on: April 03, 2021, 09:08:39 AM »

Lancelot

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

I guess I workaround forum engine by splitting topic to another one,

Above is lost reply from HeyJoe  :thumbsup:
(+ HeyJoe  repost same reply + noelBlanc Test reply not included which I feel It is ok)


*
@HeyJoe

If you like to test what cause this (maybe pictures as you wrote), feel free to create a test topic and make some test

See You
:turtle:

Re: MicroWinpeBuilder to adapt its own Winpe : tutorial or 'under the hood'?
« Reply #325 on: April 03, 2021, 09:14:31 AM »

noelBlanc

  • Chef
  • ***
  • Date Registered: Dec 2013
  • Posts: 266
@ Lancelot : thank you very much. You run like a rabbit !
@HeyJoe : thank you for the scaner test. Now, support is good and "someone" can add to "normal" builder.
Have a good day with sun.
 :bike:

Re: MicroWinpeBuilder to adapt its own Winpe : tutorial or 'under the hood'?
« Reply #326 on: April 03, 2021, 09:25:11 AM »

HeyJoe

  • Chef
  • ***
  • Location: Germany
  • Date Registered: Apr 2020
  • Posts: 102
@ Noel,

Please see My two scan results:
(
Should be attached to http://theoven.org/index.php?topic=1639.msg40090#msg40090
Sorry there was a mishap - most likely produced by Me, dunno why/which ?
)
« Last Edit: April 03, 2021, 09:50:23 AM by HeyJoe, Reason: Pics »

Re: MicroWinpeBuilder to adapt its own Winpe : tutorial or 'under the hood'?
« Reply #327 on: April 03, 2021, 09:28:44 AM »

HeyJoe

  • Chef
  • ***
  • Location: Germany
  • Date Registered: Apr 2020
  • Posts: 102
@ Lancelot,

Nice fix, Thx.

See You


Edit:
quote from engine: HeyJoe, You drive Me crasy.

Dear Engine,
forgive me, I wanna do better
 :smile:  :smile:
« Last Edit: April 03, 2021, 10:27:14 AM by HeyJoe »

Re: MicroWinpeBuilder to adapt its own Winpe : tutorial or 'under the hood'?
« Reply #328 on: April 03, 2021, 09:40:50 AM »

noelBlanc

  • Chef
  • ***
  • Date Registered: Dec 2013
  • Posts: 266
@HeyJoe
Thanks a lot. I'm happy it's ok. i hope you can share.
and wifi/ethernet scaner : a good game for you ! pity for me who only has a usb connection.
Have a good day.
:bike:

Re: MicroWinpeBuilder to adapt its own Winpe : tutorial or 'under the hood'?
« Reply #329 on: April 05, 2021, 05:15:06 PM »

noelBlanc

  • Chef
  • ***
  • Date Registered: Dec 2013
  • Posts: 266
Hi,
You can't imagine my surprise. I know that is a detail for a lot of people.
But this is the end of a dream for many years.
Try to understand what it's about in this picture  :lol:
ila_rendered
:bike:

Re: MicroWinpeBuilder to adapt its own Winpe : tutorial or 'under the hood'?
« Reply #330 on: April 06, 2021, 05:44:08 PM »

HeyJoe

  • Chef
  • ***
  • Location: Germany
  • Date Registered: Apr 2020
  • Posts: 102
Hi Noel,

Congratulations My friend, Your long-awaited dream came true.
Félicitations mon ami, Votre rêve tant attendu est devenu réalité.

I'm sure it is not
Quote
But this is the end of a dream for many years.
but the keep working in that matter and other awesome FODs in happy next weeks. :wink:

Stay healthy. Have a good time
See You.
« Last Edit: April 06, 2021, 08:26:56 PM by HeyJoe, Reason: Typo »

Re: MicroWinpeBuilder to adapt its own Winpe : tutorial or 'under the hood'?
« Reply #331 on: April 07, 2021, 04:57:51 PM »

slore

  • WimBuilder
  • Sr. Chef
  • ****
  • Date Registered: Jun 2016
  • Posts: 664
Hi Noel,

:thumbsup: Good to know you got the hyperV work. You are the best.
Enjoy the spring, and keep in good health.


Re: MicroWinpeBuilder to adapt its own Winpe : tutorial or 'under the hood'?
« Reply #332 on: April 07, 2021, 06:19:30 PM »

noelBlanc

  • Chef
  • ***
  • Date Registered: Dec 2013
  • Posts: 266
@Slore, I'm very happy to read you.
@HeyJoe, my dream is not really finish.

The Virtual Network doesn't work. I can create a new VM but i can't create a Virtual Switch. Actually,  i'm in front of a wall.
Vmms.exe create the Virtual Switch but immediately it destroys this Virtual Switch. I localized a part of code and i'll play with Windbg in a few days.
I'll use Windbg when i'm sure it's the good part of code. During some days and tests, i'll analyse procmon log file size around 500Mb. Long time in my seat...
VirtualBox is more easy to install. In fact, VirtualBox in winpe works without me. Like in Linux.
But my dream, as i wrote to Slore in the past, is to be able to add HyperV (and Virtual Network ) in Winpe.
Only for the challenge with me.
See you soon

Re: MicroWinpeBuilder to adapt its own Winpe : tutorial or 'under the hood'?
« Reply #333 on: April 07, 2021, 08:31:29 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Thanks for the good news noelBlanc,
 :yahoo: :celebrate: :clap: :thumbup: :cheerleader:

I feel I will be able to use HyperV probably in my next free time after some months, never used HyperV before. (curiostiy)

:turtle:

Re: MicroWinpeBuilder to adapt its own Winpe : tutorial or 'under the hood'?
« Reply #334 on: April 08, 2021, 08:21:27 AM »

noelBlanc

  • Chef
  • ***
  • Date Registered: Dec 2013
  • Posts: 266
Hi,
Thank you all for your kind words.

@Lancelot : HyperV does not manage USB (the US are very strict about MS's possible dominant position in virtualization and Ms had to make room in the market for workstations). Any other hypervior with USB makes better services on workstations. But I worked with HyperV as soon as it came out. So it's like nostalgia for me. I don't need Winpe, let alone HyperV. But it takes up my free time, makes my neurons work, and I learn a lot of details about the internal behavior of Windows. I had never had time to use Windbg. (i hope translator is good)
But for now, the Virtual Network is not working. :mad:
:bike:

Re: MicroWinpeBuilder to adapt its own Winpe : tutorial or 'under the hood'?
« Reply #335 on: April 09, 2021, 09:11:56 AM »

noelBlanc

  • Chef
  • ***
  • Date Registered: Dec 2013
  • Posts: 266
Hi,
I'm happy...VirtualNetwork is working this morning.
I still need a lot of work to make construction reproducible.
:bike:

Re: MicroWinpeBuilder to adapt its own Winpe : tutorial or 'under the hood'?
« Reply #336 on: April 09, 2021, 04:09:56 PM »

HeyJoe

  • Chef
  • ***
  • Location: Germany
  • Date Registered: Apr 2020
  • Posts: 102
Hi Noel,

Congratulations again my friend, I was sure you would make it happen. :clap:
Félicitations encore, mon ami, j'étais sûr que tu y arriverais. :clap:

By the way:
Hi Noel,
...
BTW: How did You manage (in admin session) that the explorer remembers the setting changes?
Ex.: After changing the icon view (or other things) and reloading the panel, the icon view was not lost unlike in my PESE!
...
Finally solved. :smile:

The sticking point on my side was a wrong (but problem-free working) FBWF driver from Win8 Embedded v.2.0.99.0, which I discovered while investigating.
This driver seems somewhat limited in terms of saving folder settings and such.

Now everything works nicely what I wanted.:smile:

You may have a look to http://theoven.org/index.php?topic=3351.msg40135#msg40135 if You like or not already done,
especially text block starting with:
...
Explanation:
...
However, it is pretty quite closely related to the Win10PESE project.

Stay healthy. Have a good time
See You.

« Last Edit: April 09, 2021, 07:10:29 PM by HeyJoe, Reason: Damn it. Another typo ... »

noelBlanc

  • Chef
  • ***
  • Date Registered: Dec 2013
  • Posts: 266
Hi,
I make a pause with VmSwitch and HyperV in winpe.

Today, i play with the wifi "Hosted Network" in Winpe : an other useless feature in winpe.
I began to search on the web how to use it from a command line. I found the "netsh" commands.
After i tried to compare with my normal win10 : not the same things "under the hood".
I search again and i found that there are two different things :
   - The old wifi Hosted Network, wifi hotspot
   - the "new" Mobile Hotspot, wifi direct

Some collected infromation:
Quote
https://www.connectify.me/blog/features/what-is-wi-fi-direct/
Microsoft announced that Wi-Fi card manufacturers like Realtek, Intel, and Dell should no longer support the “hostednetwork” protocol that was used in previous versions of Windows to create Wi-Fi hotspots. Instead, newer Wi-Fi cards and firmware updates being rolled out to current cards should begin using the new Wi-Fi Direct APIs for creating wireless access points
https://stackoverflow.com/questions/45833873/enable-windows-10-built-in-hotspot-by-cmd-batch-powershell
So it seems that MS is using a very different technique for the built-in hotspot than the netsh variant.
The Hosted Network (which can be configured using the netsh wlan set hostednetwork ... command) and the "new" Mobile Hotspot use different technologies under the hood.
https://stackoverflow.com/questions/55121033/on-using-the-wifi-direct-api-on-windows
I saw a lot of discussions about WiFi Direct vs Hosted Network and it seems that Hosted Network is a vanishing technology while WiFi Direct has a brilliant future???.
No need for the deprecated "Hosted Network" support which has been removed from many updated drivers

"Wifi Direct" need UWP, so not good for Winpe.
Actually, i can use/connect wifi Hosted Network from Winpe but i miss something in the ICS ( internet connection share). The GUI "ncpa.cpl/.../sharing" hangs up.

Still a long way ...
 :bike:

Lancelot

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

I make a pause with VmSwitch and HyperV in winpe.
I hope to see HyperV in summer at times when I have more time.
Just a side note about HyperV
 HyperV is not available with Win10Home, so there may be a kind of "license check" mechanism to prevent HyperV work.
  another idea, remember TeamViewer latest do not work on SystemUser (Default PE), to avoid the possibility, better work on HyperV on the Administrator account.  :wink:

+
Also, consider making "Vmware Player" work on PE
https://www.softpedia.com/get/System/OS-Enhancements/VMware-Player.shtml
It is free and more portable compared to VirtualBox and usb2-3 drivers + other things come out of the box (you know VirtualBox requires "VirtualBox Extension Pack" for such things)

Anyway, Have fun
See You
:turtle:

 

Powered by EzPortal