Topic: Win10XPE Project  (Read 141391 times)

Re: Win10XPE Project
« Reply #360 on: December 08, 2018, 10:54:23 AM »

Lancelot

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

additional info: sxsexp copy file if not compressed (expand or copy)
*
I do not have a compressed file now, to be sure: does compressed .sys file have a different header than MZ ?

:turtle:

Re: Win10XPE Project
« Reply #361 on: December 08, 2018, 11:14:16 AM »

was_JFX

  • Code Baker
  • Grand Chef
  • *****
  • Date Registered: Dec 2010
  • Posts: 1074
Good point Lancelot.

Header Sign: 0x44 0x43 0x53 0x01, DCS 01 (packed LZMS, can have multiple blocks)

Cabinet.dll of Windows 7 does not have LZMS decoder.

Re: Win10XPE Project
« Reply #362 on: December 08, 2018, 11:24:31 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Thanks JFX, I will use Header Sign .  :thumbsup:

to use sxsexp :
should I check hostos for after Win7 ?
or Win10 and later ? (current I did that after your post)

:turtle:

Re: Win10XPE Project
« Reply #363 on: December 08, 2018, 11:28:04 AM »

was_JFX

  • Code Baker
  • Grand Chef
  • *****
  • Date Registered: Dec 2010
  • Posts: 1074
Hmm, there are 6 different types, don't know which supports which OS.

Why not check error code of sxsexp.exe.

Re: Win10XPE Project
« Reply #364 on: December 08, 2018, 11:32:52 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
ok error code will be checked.

just another question you can quickly test with compressed .sys (since you use Win7)

Does adding cabinet.dll from win10 source to sxsexp folder make sxsexp use that cabinet.dll ?
 :wink:

:turtle:


Re: Win10XPE Project
« Reply #365 on: December 08, 2018, 11:39:34 AM »

APT

  • Grand Chef
  • *****
  • winpe enthusiast
  • Location: UK
  • Date Registered: Nov 2012
  • Posts: 1150
Hi JFX

Quote
It seems like sxsexp32.exe needs to run under Windows 10 to be able to decompress that file.

Just tried on a Win10 drive and sxsexp32.exe/mrxsmb10.sys completes with no errors, whereas all my original errors were under Win7

Re: Win10XPE Project
« Reply #366 on: December 08, 2018, 11:41:49 AM »

was_JFX

  • Code Baker
  • Grand Chef
  • *****
  • Date Registered: Dec 2010
  • Posts: 1074
Nope cabinet.dll of Win8/10 uses api set imports, so can not be used in Win7.

Re: Win10XPE Project
« Reply #367 on: December 08, 2018, 11:44:47 AM »

Lancelot

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

Thanks for all info.  :great:

let us know news to support Win7 when you figure out.  :xmas-beer:


Re: Win10XPE Project
« Reply #368 on: December 08, 2018, 02:33:24 PM »

ChrisR

  • Moderator, XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
The same, Thanks for All the Info  :thumbsup:

In sxsexp main.c It is confirmed
Quote
* InitCabinetDecompressionAPI:
* Get Cabinet API decompression function addresses.
* Windows 7 lack of their support.
Out of my knowledge.
I will continue with the latest Network.script
with SBM v1.0 service only available if built from a win10 host
To avoid the warning at each build, on Win7, I changed the  warning for an info only.

Code: [Select]
// SMB v1.0 service. Extract and expand mrxsmb10.sys from WinSxS. Only available on Win10 host
If,Not,ExistFile,%GTarget_Sys%\drivers\mrxsmb10.sys,Begin
  ShellExecute,Hide,%GTools%\wimlib-imagex.exe,"extract #$q%GSource%\sources\install.wim#$q %Image% #$q\Windows\WinSxS\*_microsoft-windows-smb10-minirdr_*\mrxsmb10.sys#$q --dest-dir=#$q%GTemp%#$q --no-acls"
  If,ExistFile,%GTemp%\mrxsmb10.sys,ShellExecute,Hide,%GTools%\sxsexp32.exe,"#$q%GTemp%\mrxsmb10.sys#$q #$q%GTarget_Sys%\drivers\mrxsmb10.sys#$q"
  //If,ExistFile,%GTemp%\mrxsmb10.sys,ShellExecute,Open,cmd.exe,"/K Echo sxsexp32.exe #$q%GTemp%\mrxsmb10.sys#$q #$q%GTarget_Sys%\drivers\mrxsmb10.sys#$q&#$q%GTools%\sxsexp32.exe#$q #$q%GTemp%\mrxsmb10.sys#$q #$q%GTarget_Sys%\drivers\mrxsmb10.sys#$q"
  If,Not,%ExitCode%,Equal,0,Begin
    EchoExtended,"SMB v1.0 Service will Not be Available. the WinSxS mrxsmb10.sys Driver could Not be Expanded.",,5
    If,ExistFile,%GTarget_Sys%\drivers\mrxsmb10.sys,FileDeleteQ,%GTarget_Sys%\drivers\mrxsmb10.sys
  End
End
If,ExistFile,%GTarget_Sys%\drivers\mrxsmb10.sys,Begin
  RegWrite,HKLM,0x7,Tmp_System\ControlSet001\Services\mrxsmb10,DependOnService,mrxsmb
  ...

 
And to avoid any confusion with my changes, the package is now dated 2018-12-08
Win10XPE_2018-12-08 update

Re: Win10XPE Project
« Reply #369 on: December 08, 2018, 04:47:53 PM »

slore

  • WimBuilder
  • Sr. Chef
  • ****
  • Date Registered: Jun 2016
  • Posts: 664
(JFX said. as tested, make a log here.)
I also think about that put Windows 10 cabinet.dll to Win7 maybe the API can be used, but:

1).sxsexp load SYSTEM32\cabinet.dll hardcode

remove the path and compile new sxsexp.exe

2).copy to WIN7 load the WIN10 cabinet.dll missing:
api-ms-win-core-libraryloader-l1-2-0.dll
api-ms-win-core-string-obsolete-l1-1-0.dll
api-ms-win-core-kernel32-legacy-l1-1-0.dll

download those downlevel dlls, and run

3). missing RtlDecompressBufferEx linked in ntdll.dll

:sad:


THIS is harder than ->
  setup WIN10 winsxs http web services
   1). upload mrxsmb10.sys (client)
   2). sxsexp.exe mrxsmb10.sys return download link... (server)
   3). download the expanded one (client)
« Last Edit: December 08, 2018, 04:50:24 PM by slore »

Re: Win10XPE Project
« Reply #370 on: December 09, 2018, 10:39:21 AM »

Lancelot

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

one more question :)

on Win7 HostOS,
 IF .sys file not compressed (as in Win10_1809_English_x64.iso index 1)
sxsexp should only copy file with errorlevel 0 ?

Can you validate?

Re: Win10XPE Project
« Reply #371 on: December 09, 2018, 11:07:24 AM »

was_JFX

  • Code Baker
  • Grand Chef
  • *****
  • Date Registered: Dec 2010
  • Posts: 1074
Yes, errorlevel 0 (success) for non compressed and -1 (error) for compressed.

Re: Win10XPE Project
« Reply #372 on: December 09, 2018, 12:12:05 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Thanks JFX.

just updated on my side with all sxsexp info  :great:

:turtle:

Re: Win10XPE Project
« Reply #373 on: December 09, 2018, 10:30:11 PM »

ChrisR

  • Moderator, XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
on Win7 HostOS,
 IF .sys file not compressed (as in Win10_1809_English_x64.iso index 1)
sxsexp should only copy file with errorlevel 0 ?
I had a doubt about my mrxsmb10 service tests, I think I understand better now.
mrxsmb10.sys seems to be uncompressed in ALL Windows 10 Home, it is also the case in the French or Korean Isos. 

On the other hand, tsdiscon.exe, used for Switch to Admin, is not available in Home edition.
That's why I made the auto selection of the professional image.

To have smb1.0 available for all, I silently changed the package with image 1 hard-coded.
to be safe, I keep sxsexp32 in the process, to copy the file if it is well uncompressed that works whatever the hostOS.
To avoid downloading again, the only change done, is in Features\Network.Script
Code: [Select]
ShellExecute,Hide,%GTools%\wimlib-imagex.exe,"extract #$q%GSource%\sources\install.wim#$q %Image% #$q\Windows\WinSxS\*_microsoft-windows-smb10-minirdr_*\mrxsmb10.sys#$q --dest-dir=#$q%GTemp%#$q --no-acls"
==>
ShellExecute,Hide,%GTools%\wimlib-imagex.exe,"extract #$q%GSource%\sources\install.wim#$q 1 #$q\Windows\WinSxS\*_microsoft-windows-smb10-minirdr_*\mrxsmb10.sys#$q --dest-dir=#$q%GTemp%#$q --no-acls"

Thanks for All Infos JFX, Lancelot :thumbsup:

Re: Win10XPE Project
« Reply #374 on: December 10, 2018, 05:20:49 AM »

circcc

  • Jr. Chef
  • **
  • Date Registered: Dec 2018
  • Posts: 26
on Win7 HostOS,
 IF .sys file not compressed (as in Win10_1809_English_x64.iso index 1)
sxsexp should only copy file with errorlevel 0 ?
I had a doubt about my mrxsmb10 service tests, I think I understand better now.
mrxsmb10.sys seems to be uncompressed in ALL Windows 10 Home, it is also the case in the French or Korean Isos. 

On the other hand, tsdiscon.exe, used for Switch to Admin, is not available in Home edition.
That's why I made the auto selection of the professional image.

To have smb1.0 available for all, I silently changed the package with image 1 hard-coded.
to be safe, I keep sxsexp32 in the process, to copy the file if it is well uncompressed that works whatever the hostOS.
To avoid downloading again, the only change done, is in Features\Network.Script
Code: [Select]
ShellExecute,Hide,%GTools%\wimlib-imagex.exe,"extract #$q%GSource%\sources\install.wim#$q %Image% #$q\Windows\WinSxS\*_microsoft-windows-smb10-minirdr_*\mrxsmb10.sys#$q --dest-dir=#$q%GTemp%#$q --no-acls"
==>
ShellExecute,Hide,%GTools%\wimlib-imagex.exe,"extract #$q%GSource%\sources\install.wim#$q 1 #$q\Windows\WinSxS\*_microsoft-windows-smb10-minirdr_*\mrxsmb10.sys#$q --dest-dir=#$q%GTemp%#$q --no-acls"

Thanks for All Infos JFX, Lancelot :thumbsup:

It works in my win7 x86.
Build successful.
mrxsmb10.sys(from \sources\install.wim\1\Windows\System32\drivers\) is exist in PE.

Thanks ChrisR.

Re: Win10XPE Project
« Reply #375 on: December 14, 2018, 02:07:43 PM »

ChrisR

  • Moderator, XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
Win10XPE_2018-12-14 update

Remote Desktop: (New) Adds Remote Desktop Connection Client
CPU-Z: Updated to v1.8.7
IrfanView: Updated to v4.52
Q-Dir: Updated to v7.3.1
Firefox ESR: Updated uBlock Origin v1.17.4
NSudo: Updated to v6.1.1811
SFX Constructor: updated to v4.5
XPE Innounp Plugin Creator: updated v3 reorganize the Encoded sections
XPE Packed Plugin Creator: updated v3 reorganize the Encoded sections
Rufus: Updated v3.4

Win10XPE is more and more complete, while keeping its construction speed with a simple design, Stand Alone and robust  :great:
Thanks to you for the updates :thumbsup:

Re: Win10XPE Project
« Reply #376 on: December 15, 2018, 12:26:07 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
RE: Win10XPE_2018-12-14 Update

ATI2019 - Needs "Acronis Build Number" to be updated to 14690

MPC-BE can be updated to 1.5.2.4105

Revise history on creator's one shows as v2
« Last Edit: December 15, 2018, 01:58:24 PM by James »

Re: Win10XPE Project
« Reply #377 on: December 15, 2018, 12:34:18 PM »

APT

  • Grand Chef
  • *****
  • winpe enthusiast
  • Location: UK
  • Date Registered: Nov 2012
  • Posts: 1150
RE: Win10XPE_2018-12-14 Update

AOMEI Backupper also could be updated to 4.61

Re: Win10XPE Project
« Reply #378 on: December 15, 2018, 02:17:29 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
Another Idea..
Maybe create separate Member Optional Project Folder in project
For use with Optional Plugins - so as not to interfere with Project Release Plugins
And set creator's to use Optional Folder(s) - Guess you could provide Empty Optional Apps Folders to categorize

Just an Idea and thinking out loud here...

Re: Win10XPE Project
« Reply #379 on: December 15, 2018, 03:35:54 PM »

ChrisR

  • Moderator, XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
Thanks :thumbsup:
So I updated with:
Acronis TrueImage 2019: "Acronis Build Number" to be updated to 14690
AOMEI Backupper: updated to 4.61
MPC-BE: updated to 1.5.2.4105

Separate Member Optional Plugins in place.
With the folder name: MoPlugins which can be created next to MyPlugins, ex:
Code: [Select]
Win10XPE\Projects\MoPlugins
  |-- Apps
  |-- Utilities
Win10XPE\Projects\MyPlugins
  |-- Apps
  |-- Utilities
 
Win10XPE_2018-12-15 update

:cheers:

 

Powered by EzPortal