Topic: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)  (Read 38323 times)

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #260 on: December 28, 2019, 09:25:47 PM »

cretino

  • Chef
  • ***
  • Date Registered: Jan 2018
  • Posts: 240
Do you use WimBuilder2 to build a 20h2 with Printer feature?

no i use Win10XPE with 20h2 x86 & PrinterSupport
Quote
Can you see the printer in Device Manager?
yes

Quote
when i click on the print button, nothing happens, the printer does not print.
added HPWinUSBStub.inf now it work  :grin:

ila_rendered


Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #261 on: December 30, 2019, 12:41:32 AM »

Lancelot

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

a small thing I notice :

I guess Log folder should contain old logs, but not I guess.
last log with name: last_wimbuilder.log
and other logs with date....log

All old logs with date eg. 20191228194138.log
only have 4 lines
(only ~ 1 KB)

Code: [Select]
2019-12-28 19:41:39,INFO      [WIN10XPE] --- build information
2019-12-28 19:41:49,INFO      [WIN10XPE] --- MOUNT [_Factory_\target\WIN10XPE\winre.wim:1] -* [_Factory_\target\WIN10XPE\mounted]
2019-12-28 19:43:31,INFO      [WIN10XPE] --- UNMOUNT [_Factory_\target\WIN10XPE\mounted] /commit
2019-12-28 19:44:08,INFO      [WIN10XPE] --- EXPORT [_Factory_\target\WIN10XPE\winre.wim:1] -* [_Factory_\target\WIN10XPE\build\boot.wim]

last_wimbuilder.log 189 KB - 4600 Lines on my current last_wimbuilder.log


or maybe I am wrong again, you intentionally save only these logs.

Small things I notice, It was a nice weekend with lots of tests with fun.  :cheers:

:turtle:

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #262 on: December 30, 2019, 04:04:27 PM »

slore

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

>OneLoupe

Switch User.lnk call Autoruns\* only in first login time for each account.(SYSTEM or Administrator)

If some batch script only runonce for the first login user, you can add RunOnce in it.(You already know it)


When the user changed, it gone, maybe it is same in normal Windows, not only PE.
System's Magnify.exe is in the same.


>PENetwork

it should be in PENetworkStartup.bat for itself, but it needs run after the NetInit.bat,
so I added it in NetInit.bat, and NetInit.bat is runonce for the first user.
YES, make good naming, it can be done.

NetInit_PENetwork.bat

It is better to create this startup script in PENetwork\main.bat.
so NO PENetowrk NO startup batch, and no need 'if exists "%PF%\PENetwork\PENetwork.exe" ' codes.


>Customize ---> _Personal-Tailor_ -->
Enable "Add Restart Explorer Desktop menu" do not work (no such shortcut at desktop ;) )

it is added in Deskop Context Menu.(Right click on Desktop)


I accidentally create
\Users\Administrator\

It created by SYSTEM, if you needs some files for that, It is better copy items by Startup\BeforShell\AdminProfileInit.bat.

>tsdiscon.exe
--> Very bad idea that only serves longer build time

What about next on UI:
[ON] Enable Administrator account
This option needs tsdiscon.exe, please select the right install.wim's edition for this(like Pro).
Or
This option needs tsdiscon.exe, please select the right index of install.wim for this.
(Someone shows the right words in English, please.)


About the logs:

<date_time_stamp>.log is written by XX_LOG function,
People can add the nessary LOG by call WB_LOG in main.bat/last.bat.

The four line is written by:

bin\_Process.bat
call :CLOG 97:104m "[%WB_PROJECT%] --- build information"

bin\WIM_Mounter.cmd
bin\WIM_UnMounter.bat
bin\WIM_Exporter.bat


The same wim files, and same options could reproduce some issues for WimBuilder2's PE project,
so the last_wimbuilder.log is written with Build(LOG) button only.

if you want to append the last_wimbuilder.log to <date_time_stamp>.log,
Here is trick to use _CustomFiles_\final.bat to type it into "%LOGFILE%".

Code: [Select]
rem BUILD[LOG]
if "x%_WB_EXEC_MODE%"=="x1" (
  type "%WB_ROOT%\_Factory_\log\%WB_PROJECT%\last_wimbuilder.log" >> "%WB_ROOT%\%LOGFILE%"
)

(no unmount/export log ...)
« Last Edit: December 30, 2019, 04:27:41 PM by slore »

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #263 on: December 31, 2019, 12:48:46 PM »

Lancelot

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

*
Yes Magnify.exe same with OneLoupe
 It is only interesting info such apps close between sessions  :thumbsup:
  Maybe when Display lost, they close themselves ...
   (not tested normal Windows)

*
>PENetwork
startup looks nice, up to you  :thumbsup:

*
>Customize ---> _Personal-Tailor_ --> Enable "Add Restart Explorer Desktop menu"
> it is added in Desktop Context Menu. (Right click on Desktop)
Ahhhhh  :thumbsup:

Well, a little request, an optional "Explorer Restart.lnk" to Desktop if quick and easy for you
eg.
>Customize ---> _Personal-Tailor_ -->
"Add Restart Explorer Desktop Menu"
"Add Restart Explorer Desktop Shortcut"

*
> \Users\Administrator\
No problem, I can easily work around if required one day.  :thumbsup:

*
>x-Account UI
My English is bad, my vote
Quote
'Administrator Account' needs tsdiscon.exe,
 select the right index of install.wim for this. (like Pro).


*
Only an idea to save old build log

To Demonstrate:
eg.  adding your lines to last.bat
 (I feel better way required, I only quick copy/paste and test to demonstrate ..... )

Quote
Projects\WIN10XPE\last.bat

if exist "_CustomFiles_\final.bat" (
    call "_CustomFiles_\final.bat"
)

rem BUILD[LOG]
if "x%_WB_EXEC_MODE%"=="x1" (
  type "%WB_ROOT%\_Factory_\log\%WB_PROJECT%\last_wimbuilder.log" >> "%WB_ROOT%\_Factory_\log\%WB_PROJECT%\%LOGFILE%_%WB_PROJECT%_Build.txt"
)


goto :EOF

This way unmount/export logs are available.

Saving old Logs Not important to me at all, It was a small thing I only noticed.  :thumbsup:


***
More Later, Happy New Year  :xmas-beer:
:turtle:
« Last Edit: December 31, 2019, 12:56:23 PM by Lancelot »

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #264 on: December 31, 2019, 12:58:28 PM »

Lancelot

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
+
changed line on previous post:
Code: [Select]
type "%WB_ROOT%\_Factory_\log\%WB_PROJECT%\last_wimbuilder.log" >> "%WB_ROOT%\_Factory_\log\%WB_PROJECT%\%LOGFILE%_Build(LOG)_%WB_PROJECT%.txt"

:turtle:

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #265 on: December 31, 2019, 01:34:08 PM »

slore

  • Moderator, WimBuilder
  • Sr. Chef
  • *****
  • Date Registered: Jun 2016
  • Posts: 664
Code: [Select]
if exist "_CustomFiles_\final.bat" (
    call "_CustomFiles_\final.bat"
)

rem BUILD[LOG]
if "x%_WB_EXEC_MODE%"=="x1" (
  type "%WB_ROOT%\_Factory_\log\%WB_PROJECT%\last_wimbuilder.log" >> "%WB_ROOT%\_Factory_\log\%WB_PROJECT%\%LOGFILE%_%WB_PROJECT%_Build.txt"
)

As I stated, I hope people do some custom code in _CustomFiles_\*.*, than the <Project>\last.bat,
because I will update last.bat sometime, but I wouldn't update final.bat.(at least I will update the last.bat in v2020.01.01 :)

So make it be easy, to merge the personal customization.

In last.bat or final.bat is same, no details about unmount/export wim files.

Better to Write this to bin\_Process.bat for all log.
Quote
rem default log file name
set "LOGNAME=%LOGTIME%_Build[LOG]_%WB_PROJECT%.txt"
...
...
...
somewhere main.bat or last.bat
set LOGNAME=the name you want
...
copy /y "%WB_ROOT%\_Factory_\log\%WB_PROJECT%\last_wimbuilder.log"  "%WB_ROOT%\_Factory_\log\%WB_PROJECT%\%LOGNAME%"

 :confused:
Build[LOG]_%WB_PROJECT%_%LOGTIME%.txt ???

Which order you like?
If I got quick feedback I can update this for v2020.01.01, or it will be in v2020.02.02.
« Last Edit: December 31, 2019, 01:43:32 PM by slore »

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #266 on: December 31, 2019, 01:47:17 PM »

Lancelot

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
*
> Better to Write this to bin\_Process.bat for all log.  :thumbsup:

*
Always Time first ;)

%LOGTIME%_Build[LOG]_%WB_PROJECT%.txt
 :thumbsup:

*
> If I got quick feedback I can update this for v2020.01.01, or it will be in v2020.02.02.

Sorry late, It was dinner time...  :flying:

:turtle:

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #267 on: December 31, 2019, 01:54:53 PM »

slore

  • Moderator, WimBuilder
  • Sr. Chef
  • *****
  • Date Registered: Jun 2016
  • Posts: 664
Quote
Well, a little request, an optional "Explorer Restart.lnk" to Desktop if quick and easy for you
eg.
>Customize ---> _Personal-Tailor_ -->
"Add Restart Explorer Desktop Menu"
"Add Restart Explorer Desktop Shortcut"

It is easy, I just wonder if you want an option for this, or add by default with custom batch file(needs rename or delete the file for disabling it).

For option:
needs add one line in main.html,
needs add one line translation in zh-CN.js, kr-KO.js, ...
add codes in last.bat:
Quote
if not "x%opt[shortcut.restartexplorer]%"=="x" (
  call LinkToDesktop -paramlist "%opt[shortcut.restartexplorer]%.lnk" "'taskkill.exe', '/f /im explorer.exe', 'shell32.dll', 123"
)

For batch file:
WimBuilder2\Projects\WIN10XPE\_CustomFiles_\MyCustom\Last\
   _RestartExplorerShortcut.bat

Quote
call LinkToDesktop -paramlist "Explorer Restart.lnk" "'taskkill.exe', '/f /im explorer.exe', 'shell32.dll', 123"
« Last Edit: December 31, 2019, 02:06:00 PM by slore »

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #268 on: December 31, 2019, 01:58:50 PM »

Lancelot

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
It is easy, I just wonder if you want an option for this, or add by default with custom batch file(needs rename or delete the file for disabling it).

Quote
call LinkToDesktop -paramlist "Explorer Restart.lnk" "'taskkill.exe', '/f /im explorer.exe', 'shell32.dll', 123"

Ok no need option.   :thumbsup:

I was only sharing some ideas that hit my eyes.  :wink:

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #269 on: January 02, 2020, 02:37:43 PM »

Lancelot

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

small thing I notice on log:

Quote
opt[tweak.shortcut.noarrow]=false
opt[tweak.shortcut.nosuffix]=true
opt[_message.wait_for_printers]=          Printers will work in 2 minutes later           
Got code page: 1252
Can't read file: D:\Wim

0 File(s) copied
Applying Patch:D:\Wim Builder\9WimBS\Projects\WIN10XPE\_CustomFiles_\main.bat
Applying MyCustom\admin.bat ...

maybe about spaced base folder.

:turtle:

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #270 on: January 03, 2020, 12:28:16 PM »

Lancelot

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

another small thing  :wink:

Customize-Configures\x-Account\
Enable Administrator account - True
As auto logon account - False
Auto logon after second(s): 0
-->
Cause forever loop at boot

I set
Auto logon after second(s): 1
which is fine to me.  :great:


:turtle:

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #271 on: January 04, 2020, 07:22:35 PM »

slore

  • Moderator, WimBuilder
  • Sr. Chef
  • *****
  • Date Registered: Jun 2016
  • Posts: 664
WimBuilder2 v2020.01.01

download url: https://github.com/slorelee/wimb ... Full.v2020-01-01.7z
download url: http://lancelot.theoven.org/Slore/WimBuilder2-Full.v2020-01-01.7z

WimBuilder2-Full.v2020-01-01.7z (19.9 Mb) MD5: ea3c59e6a338c2d93424df09e9264002

This is a regular update. Added and improved the following:

* Fixed Traditional Chinese input method is not available. (Thanks @ 2012bear1alex1 for testing and feedback)
* New IME Added traditional input method (Phonetic, Quick, Cangjie) options.
* Fixed the issue that the wireless network is not working properly due to the Slim-Ultra option.
* Improved support for 20H2 preview. Fixes issue that IE can' work. (Thanks @James)
* Adjusted lua functions(LINK, PinToTaskbar, PinToStartmenu) to WinXShell\lua_helper\shell_helper.lua.
* Adjusted the default desktop, taskbar, and start menu icons be created in custom batch scripts.
   `Projects/WIN10XPE/_CustomFiles_ /MyCustom/Last/_CustomDesktopItems.bat`
* Improved When using the build(log) mode, historical build log files are retained. (Thanks @Lancelot)
* Added "Save As ..." button for Preset.
* Adjusted the display style of the interface.
* Improved clean mount point when wim file is unmounted. (Thanks @ 星体投射)
* Added an option to remove the \sources folder.
* Fixed the issue that cannot use the shutdown button in the start menu for SYSTEM account.
* Fixed the issue that when the confirmation time of automatic login is set to 0 second, the login fails. (Thanks @Lancelot for testing and feedback)
* Improved When the Administrator account is enabled, add message about the edition of install.wim. (Thanks @Lancelot for testing and feedback)
* Fixed an error when viewing "MyThemes" customization options under non-Chinese systems. (Thanks @Lancelot for testing and feedback)
* Added theme setting option (`$wb_settings ['theme'] = '<theme name>'` @ config.js).
* Added `snow` theme (Easter egg in v2019.12.12 version) and `picture` theme (static background image, does not occupy CPU).
* Added `The Spring Festival (the_spring_festival)` theme (http://hello.wimbuilder.world/en market download).

« Last Edit: January 05, 2020, 08:34:19 AM by slore »

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #272 on: January 05, 2020, 07:40:48 AM »

Lancelot

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Thanks a lot for the update slore,

 :band:
 :ymca:

Very Good indeed  :cheers:

We can continue cooking :great:
 :bbq:

Smells nice, taste nice and very good for my digestive system, Yummmy  :good:

It will be a fun Sunday (Today)  :cheers:

:turtle:

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #273 on: January 05, 2020, 08:59:23 AM »

slore

  • Moderator, WimBuilder
  • Sr. Chef
  • *****
  • Date Registered: Jun 2016
  • Posts: 664
Easter eggs in v2019.12.12!

The Winter Solstice(2019-12-22) and Christmas(2019-12-25) screens will demonstrate snowing effects.

ila_rendered

Ran WimBuilder2 on Christmas, If you saw the "About" page, there was Santa Claus(Noel).

ila_rendered

Click the "gift", gift code prompt will appear.

ila_rendered

Decode the gift code,you would get the "Christmas Gift Package" (valid on the day of 2019-12-25)

  • slore.SlimRegCLSID - remove invaild registry items by *.dll.
  • noel.TermSerivce - Remote Desktop Service for v1903 and later.
  • slore.AdminToSYSTEM - dual-sessions(Admin, SYSTEM) support

« Last Edit: January 05, 2020, 01:50:13 PM by slore »

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #274 on: January 05, 2020, 10:50:11 AM »

Lancelot

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

*
I can not create account here: http://hello.wimbuilder.world/join
I use pw with characters including a number and a lowercase letter, tested with 10 and 24 chars that fit that defination but failed.

maybe trouble is my email p...@hotmail.com !?

*
only informing, I do not see Santa theme on your previous post here ;)
 and I do not know how to manually enable available themes.

*
I feel time came for a new WimBuilder section  :cool:

:turtle:

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #275 on: January 05, 2020, 11:30:39 AM »

slore

  • Moderator, WimBuilder
  • Sr. Chef
  • *****
  • Date Registered: Jun 2016
  • Posts: 664
Quote
I do not know how to manually enable available themes.

* Added theme setting option (`$wb_settings ['theme'] = '<theme name>'` @ config.js).

'snow'
'picture'
or
'the_spring_festival'

Quote
I do not see Santa theme on your previous post here ;)

It is easter eggs(a surprise for 2019-12-25 ONLY), for now you can't see it, only the “snow" theme - snowing effects.

change system date to 2019-12-25,  then run WimBuilder.cmd,
you will see it. But the "Christmas Gift Package" is gone.

Quote
I can not create account
wimbuilder.world site is not complete,  no database now,  so can't sign up now.

« Last Edit: January 05, 2020, 01:49:21 PM by slore »

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #276 on: January 05, 2020, 11:35:18 AM »

Lancelot

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
only informing, I can not download from Marketplace without login, and without login I can not get points  :wink:

Quote
you have insufficient points to download this expansion pack.

You can earn points by sharing the extension package you created-system components, registry optimization, registry compaction, 3rd party program setting menus, etc.
If you log in during the holiday season, you will also get holiday reward points. Don't miss it.

You are doing very hard work, thanks a lot.  :great:
:turtle:

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #277 on: January 05, 2020, 01:28:33 PM »

slore

  • Moderator, WimBuilder
  • Sr. Chef
  • *****
  • Date Registered: Jun 2016
  • Posts: 664
Well, the website is still in concept. No sign up, No points, now.

I'm quite busy now, even no time to update the the release page for v2020.01.01.

When it is ready, I will make an announcement.

I can send you the patches in private if you are intresting on some features on the site, because you shared a lots of ideas, exp for builder desgin, and feedback lots of bugs.

The 'the_spring_festival' theme don't include in github source, but it already be packaged in WimBuilder2-Full.v2020-01-01.7z.

I want to be auto load the theme on 2020-01-24, 2020-01-25, but this release was late for couple days, I decide to make the theme support be public with an option,
In future, the "Settings" page will be done, and you can change the language, theme on UI.

Time is a luxury, I hope I can implement all the conception soon.
« Last Edit: January 05, 2020, 01:52:15 PM by slore »

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #278 on: January 05, 2020, 01:58:03 PM »

Lancelot

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

Yes Time is a luxury, I do not want to take your time if not very important.

I only noticed 3 projects on pictures
DISM UI
LiteOS
Windows

and 3 patches on Market place
slore - Clean up invalid services
slore - (CLSID ...)
noel -

and Sunday curiosity hit me... I can wait till you find some time.  :thumbsup:

Tip: you can upload such things to ftp with a "good password-protected" file having a no-sense name about what is inside.
  (eg. password protected naruto.7z having your holiday pictures ) :wink:



*
Maybe some other ideas to your builder design ;) but not vital, I need some nice time to gather ideas. :wink:

Happy Weekend, See You
:turtle:

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #279 on: January 07, 2020, 08:22:13 PM »

Lancelot

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

here are things before too late:

If you aim only to create a single project with any method (eg. Win10XPE), I would not write the following.

You are creating both a builder "special batch" which can run different project(s), 2 separate things with very close interactions  :wink:

Now I see (from picture) new projects, This will increase folder mess and troubles in passing time, having more projects will increase folder entropy .....
 We already solved this troubles in the past by spending huge time to solve old mistakes (current 5+1 projects run together well without folder mess, +1 is on the way)
   and It will be harder for you if you postpone such organizations, sharing experience :

1) Builder:
About name:
Reminding winbuilder initial name was batcher, which was the correct name, (and pebakery name was initially wrong and now It is too late )
 I am sure one can use WimBuilder in the future for other goals than creating wim ....
eg. maybe one day I can use WimBuilder to build Gena without wim , with low time it is very hard but just an idea ..
eg. one can use WimBuilder to change settings on HostOS or OfflineOS without wim. (like old TweakUI kind of things and more  :wink:) --> To gain advantages WimBuilder provide (UI + Open source batch design with ready macros :thumbsup: )


Well not critical to me,
 but better comment on the name now,
  maybe you consider better name before too late (before there are too many patches and codes beyond the limit to update)
   or maybe already too late, up to you.  :thumbsup:



*
Critical:
Please Put WimBuilder things to a separate folder
with compiled single .exe (eg. LiveSystemPro.exe, BuilderSE.exe) there is only configuration file (.ini)
with open source, only example I know PEBakery and as far as I remember ied206 put PEBakery related things to .\PEBakery\ folder (<-- better one confirms)


To keep base folder tidy, please put WimBuilder related files to a separate folder
eg.
with renaming configuration files :
config.js ---------> WimBuilder_config.js
auto_config.js --> WimBuilder_auto_config.js
---->
.\WimBuilder.hta
.\WimBuilder.cmd
.\WimBuilder_auto_config.js
.\WimBuilder_config.js
.\WimBuilder\assets\
.\WimBuilder\bin\
.\WimBuilder\doc\
.\WimBuilder\i18n\
.\WimBuilder\lib\

===>I guess these are the WimBuilder folders (independent from project(s))

*
btw
doc\History.md  ---> If you make file UTF8, Unicode or etc. It will be easier for all to use a translator ;)


2) ....

before 2) already a too long post, so far what you think?

:turtle:

 

Powered by EzPortal