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

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #240 on: December 22, 2019, 03:28:53 PM »

slore

  • Moderator, WimBuilder
  • Sr. Chef
  • *****
  • Date Registered: Jun 2016
  • Posts: 664
Quote
I will read all topic again for help doc

 :ohmy:

WimBuilder.cmd -h
or
WimBuilder.cmd --help

all paramters are there.

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #241 on: December 22, 2019, 09:53:27 PM »

Lancelot

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

sorry, I test very quickly, I know WimBuilder.cmd -h but missed ....  :embarrassed:

Still, I will add very useful info at your Reply 239 to my help document ...

See You on next posts ......  :thumbsup:

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #242 on: December 22, 2019, 09:56:19 PM »

Lancelot

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

here is another bug or maybe not report ;)

Reproduce:
*
open cmd prompt at WimBuilder folder (as admin)
Use WimBuilder.cmd
(or WimBuilder.cmd --wait or Call WimBuilder.cmd --wait , all tested) - UI etc. successfully , close WimBuilderUI ...

again use cmd prompt to start WimbuilderUI
-->
It opens "Project" page
---->
Click Left "Building"
click "1-build(cmd)"
Quote
An error has occurred in the script on this page
Line 328
Char 5
Error: Object doesn't support properly or method 'get_undetermined'
Code: 0
Url: file:///D:/Test%20WimBuilder/assets/js/page_patches.js

Do you want to continue running scripts on this page?

Workaround:
Click No to answer "Do you want to continue running scripts on this page?"
Click Left "Customize"
Click Left "Building"
Click "1-build(cmd)"

It will continue to build fine.  :thumbsup:

****
Since I had already build, js files are already set up, there should not be a need to Click Left "Customize" !
(or even at first run, there is already default.js (copied to current.js with Patch Preset: current) so no need to Click Left "Customize" to make a default build )
ps:
I had made step by step tutorial pictures to avoid end-user above kind script errors on one of the posts before, but reporting now... :wink:

Maybe bug or maybe designed that way. Up to you.  :thumbsup:

See You on next posts....

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #243 on: December 22, 2019, 10:51:34 PM »

Lancelot

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Quote
A little bug report:
Customize-> _Personal-Tailor_ -----> click to the left of _Personal-Tailor_ to see sub tree "My Theme"

I can't reproduce the issue.
If you can't click "Customize" again, this must some wrong option(language?) write to the current preset.
send me the _Assets_\preset\current.js to check.

Can you try to rename the current.js to be test.js, and reopen WimBuilder.cmd again, could it be fixed?

Hi Slore,

yes rename current.js to test.js and reopen WimBuilder.cmd again, fixed opening "Customize"
 Still when I Click "My Theme" error again happens.
I can easily reproduce with Lancelot Reply 233 http://theoven.org/index.php?topic=2390.msg35913#msg35913
ps: Reminding Base folder with space ;)

+
Here is current.js
http://lancelot.theoven.org/TheOvenAttach/20191223_1_current.7z
yes using this current.js , I quickly get Customize not working anymore.

Shortly I have not seen "My Theme" ui yet  :cool:

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #244 on: December 22, 2019, 10:57:40 PM »

Lancelot

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
so the Windows should be on the top.
:thumbsup:

On my side I mostly use critical cmd things with min for that goal.  :wink: :thumbsup:

In future version, they will be a button to save the current build option to a batch file, then we can build by double click the batch file without HTA UI.
so there won't be many cmd Windows, just one cmd.exe process for --- build, make-iso, and test.
I already quick test with your (thanks to you) WimBuilder cmd parameters + Plugins + etc. ,  more option is not bad at all.  :great:

There will be option for MIN them, or hide them.
At first, I will change the title for this ...
If createiso included, I vote to min default, since even rarely there are sometimes errors when creating iso.

For others, you know better. :thumbsup:

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H1 Supported)
« Reply #245 on: December 22, 2019, 11:13:33 PM »

Lancelot

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
or your stuff that make WimBuilder2 can use the *.script plugins.
For that goal, the very very first step is, better one day you create an extractor from *.script plugins without need to .net  :wink:
 and without old tools that can cause license troubles I avoid....
  There is no such tool on TheOven around yet...

Shortly eg. SloreEncode.exe and SloreExtract.exe from slore will be great to encode & extract files inside *.script plugins ....
 (most extract used by plugins but also encode used .... )


My Stuff can help WimBuilder2 use *.script plugins with such extractor/encoder since I write things very tidy instead of all in one build core plugins.
 like Gena where core plugins are written quite tidy to provide step by step info, current work even tidier with help info but slow progress with limited time.
   shortly It will be very easy for you to follow ..... Summer ....

  And I will have some other requests for that goal in future ....

Step by Step, Slowly, we can come to this page in the future. :smart: :xmas-thumbsup:

Good night :zzz:
:turtle:

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #246 on: December 23, 2019, 11:30:22 AM »

slore

  • Moderator, WimBuilder
  • Sr. Chef
  • *****
  • Date Registered: Jun 2016
  • Posts: 664
Quote
Since I had already build, js files are already set up, there should not be a need to Click Left "Customize" !

The options is setted up, but which patches you selected is based on the patches tree on "Customize" page.

preset js script is use function to select the node, not the full list of the selection.

Code: [Select]
function patches_state_init() {
uncheck_tree_node("_CustomFiles_");
open_tree_node("_CustomFiles_");
uncheck_tree_node("00-Configures");
open_tree_node("00-Configures");
uncheck_tree_node("01-Components");
open_tree_node("01-Components");
uncheck_tree_node("01-Drivers");
uncheck_tree_node("02-Apps");
uncheck_tree_node("za-Slim");
uncheck_tree_node("za-SlimExtra");
check_tree_node("zz-ISO");
select_tree_node("00-Configures/Build");
}

So you need click the "Customize" menu first to initinitalize the tree.


Quote
Shortly I have not seen "My Theme" ui yet
The preset is good. the problem is in the main.html.

WimBuilder2\Projects\WIN10XPE\_CustomFiles_\MyTheme\main.html

change

Code: [Select]
script
    if (lang != 'zh-CN') document_write('<br/>');
script

change the code to be only
Code: [Select]
<br/>
you will see the myTheme.


it seems that can't use "document.write" here. for good for all language the codes will be:

Quote
[label][input type="radio" class="opt_item" name="mytheme.theme_id" value="2" /] Theme Pack 2[/label]
<div id="mytheme_br" />
[script]
    if ($lang == 'zh-CN') $("#mytheme_br").css('display', 'none');
[/script]

<label><input type="radio" class="opt_item" name="mytheme.theme_id" value="3" /> Theme Pack 3</label>

The four options is short in Chinese,  so make them be one line for Chinese,  others be two line.
« Last Edit: December 23, 2019, 02:36:59 PM by slore »

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #247 on: December 23, 2019, 07:14:17 PM »

Lancelot

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

*
Maybe bug or maybe designed that way. Up to you.  :thumbsup:
Ok designed that way   :great:

*
Thanks for the fix,
Both Replacing with

Code: [Select]
<br/>

OR

Quote
<div id="mytheme_br" />
<script>
    if ($lang == 'zh-CN') $("#mytheme_br").css('display', 'none');
</script>

works fine here  :thumbsup:

I can see "My Theme" ui now and all related works fine.   :xmas-beer:

Tip:
use following with lines starting with script with quote (not codebox) with current forum engine  :wink:
Code: [Select]
[b]<[/b]

:turtle:

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #248 on: December 25, 2019, 02:11:18 PM »

Lancelot

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

btw,
 "My Theme" changing Theme has no effect I can notice (maybe I missed ?!)

  Themes are not my priority at all, only noticed and feedback.  :cool:

:turtle:

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #249 on: December 25, 2019, 02:49:22 PM »

slore

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

if you see the build log, or the code, you will find out , YES, it do nothing, it is in --dry-run mode,
just show next message for you, when you want to make some Theme:
style files, wallpaper, sound files, Cursors, ..., you can make 7z files, and remove the echo to enable it in real.

Z:\WimBuilder2\Projects\WIN10XPE\_CustomFiles_\MyTheme\last.bat
Code: [Select]
if "x%opt[mytheme.theme_id]%"=="x" goto :EOF

echo [Example]Theme Id: %opt[mytheme.theme_id]%

echo [Example]7za.exe x "%~dp0Web%opt[mytheme.theme_id]%.7z" -y -aos -o"%X_WIN%\"
echo [Example]copy /y startup%opt[mytheme.theme_id]%.wav "%X_WIN%\Media\startup.wav"
« Last Edit: December 25, 2019, 02:50:10 PM by slore »

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #250 on: December 27, 2019, 10:43:10 AM »

Lancelot

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

how to change WimBuilderUI with other Available Languages?

I quess you auto read hostos registry for WimBuilderUI, but I could not find an option on WimBuilderUI

If not available:
Request: Can you add an option to change WimBuilderUI Language.  :cool:
eg.
Auto English etc.  :wink: Like preset ....

:turtle:

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #251 on: December 27, 2019, 11:11:57 AM »

slore

  • Moderator, WimBuilder
  • Sr. Chef
  • *****
  • Date Registered: Jun 2016
  • Posts: 664
config.js

$lang = 'en-US';

default is '',  it will use the system language,  but fallback to English.

asserts/i18n/
(en-US, zh-CN,  ko-KR,  fr-FR)
 
In Future there will be Settings page for changing the options.
« Last Edit: December 27, 2019, 11:14:45 AM by slore »

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #252 on: December 28, 2019, 01:24:21 PM »

Lancelot

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

Maybe a bug :
Tested with 1909 English x86 AND 1909 English x64

I select Full Preset, and made the build, on emulator when ui comes I select "Administrator"
-->
Screen waits forever with "Switch to Administrator, please wait..."

+
when I select "System" at boot and use "Switch to Admin" shortcut, nothing happens

*
I spend quite a nice time today when testing other WimBuilder things, thanks :great: above was a random catch.

:turtle:

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

slore

  • Moderator, WimBuilder
  • Sr. Chef
  • *****
  • Date Registered: Jun 2016
  • Posts: 664
SwitchToAdmin needs tsdiscon.exe, do you use the Home Edition? If yes, please try the Pro Editon.
« Last Edit: December 28, 2019, 02:36:06 PM by slore »

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #254 on: December 28, 2019, 03:11:10 PM »

Lancelot

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

Now working fine, I forgot tsdiscon.exe ....

Maybe better write some info to
WimBuilder-Customize-Configures\x-Account
eg.
Quote
"Administrator account Requires Pro and later with 1809 and later"

and inside patch something like following will be good :
eg. inside Win10PESE\Finals\"Logon as Admin" plugin for builds after 1803 there is a line at near the top
Code: [Select]
If,Not,ExistFile,%Source_sys%\tsdiscon.exe,Call,Echo,"Win10 %TargetVersion% needs the Education, Professional or Enterprise edition. Exiting now.",Warn,1,Message,5,Exit

*
now I can test related PEMaterial startup things  :wink:

:turtle:

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #255 on: December 28, 2019, 03:53:48 PM »

cretino

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

Just tested 20H2 (10.0.19536.1000)

MTP, Printer, RemoteDesktopSerivce are fine, hope MS don't change them again.

when i click on the print button, nothing happens, the printer does not print.
any idea about what missing ???  (http://theoven.org/index.php?topic=1639.msg36025#msg36025)
« Last Edit: December 28, 2019, 03:54:22 PM by cretino »

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #256 on: December 28, 2019, 06:23:29 PM »

Lancelot

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

Using - 1909 English x64 en-US
index 10 (Windows 10 Pro for Workstations - 10.0.18362)

*
Something interesting I notice when testing :

I add one line to ..PEMaterial\Autoruns\Startup\OneLoupe_bg.bat file
Code: [Select]
Start "" /D "X:\Program Files\OneLoupe_Unicode_x64" "X:\Program Files\OneLoupe_Unicode_x64\OneLoupe_x64.exe" -bg

It works at boot  :thumbsup:
It works when I use "Switch User.lnk" at desktop  :thumbsup:
Using "Switch User.lnk" again (2nd time) --> OneLoupe lost (not available on task manager)
Using "Switch User.lnk" again (3rd time)  --> OneLoupe lost (not available on task manager)

Something about OneLoupe I guess  :wink:
http://www.softwareok.com/?seite=Microsoft/OneLoupe

*
All other 3rd party apps I use at \Startup\   bat  works fine so far, Good work.  :xmas-beer: :xmas-good:


*
Penetwork:
icon lost at tray when I use "Switch user.lnk" (other user, since explorer tray only shows tray icon up to user(session) )

Here is a quick & dirty way I workaround by adding 3+1 lines to NetInit.bat to demonstrate a fix
Code: [Select]
rem Launch PENetwork
if exist "%ProgramFiles%\PENetwork\" (
    cd /d "%ProgramFiles%\PENetwork\"
    start "PENetwork" "%ProgramFiles%\PENetwork\PENetwork.exe"
)
--------------->
Code: [Select]
rem Launch PENetwork
if exist "%ProgramFiles%\PENetwork\" (
    cd /d "%ProgramFiles%\PENetwork\"
    start "PENetwork" "%ProgramFiles%\PENetwork\PENetwork.exe"
    cd /d "%SystemDrive%\PEMaterial\Autoruns\Startup"
    ::NetIni1.bat filename before NetInit.bat hoping WimBuilder startup will bypass
    Echo Start "PENetwork" /D "%ProgramFiles%\PENetwork\" "%ProgramFiles%\PENetwork\PENetwork.exe">NetIni1.bat
    Echo Set RunOnce=1 >>NetIni1.bat
)

I guess you will have a better fix. :thumbsup:

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


*
I accidentally create
\Users\Administrator\
folder during one of the tests.. (during build)

when boot:
When Administrator session start,
since there is already
X:\Users\Administrator\
folder
It creates another folder:

X:\Users\Administrator.MINWINPC

and copy files there.... (which seems to break at least Desktop shortcuts)

I hope It is easy to update SwitchToAdmin when there is X:\Users\Administrator\ already there ?

*
One more thing later when I find a time and a reproducible way  :wink:

:turtle:

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #257 on: December 28, 2019, 06:40:32 PM »

slore

  • Moderator, WimBuilder
  • Sr. Chef
  • *****
  • Date Registered: Jun 2016
  • Posts: 664
Already in:
Z:\WimBuilder2\Projects\WIN10XPE\00-Configures\x-Account\Admin\SwitchToAdmin.bat

Code: [Select]
if not exist "%X_SYS%\tsdiscon.exe" (
  echo \033[97;101mERROR Switch to Admin needs tsdiscon.exe present in Education, Professional or Enterprise edition | cmdcolor.exe
)

You should see RED noticed Errormessage or see it in log file.

WimBuilder2 is too fast for that, I should add a sleep.exe 5 ...
« Last Edit: December 28, 2019, 06:40:57 PM by slore »

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #258 on: December 28, 2019, 06:43:44 PM »

slore

  • Moderator, WimBuilder
  • Sr. Chef
  • *****
  • Date Registered: Jun 2016
  • Posts: 664
Do you use WimBuilder2 to build a 20h2 with Printer feature?

Run the shortcuts on Desktop, and waiting for 2 minutes, you should see the Printer.

I just tested notepad.exe with Print menu.


Quote
when i click on the print button, nothing happens, the printer does not print.
Can you see the printer in Device Manager?

Re: WimBuilder2 - New Builder with Re:WIN10XPE project(~20H2 Supported)
« Reply #259 on: December 28, 2019, 06:52:00 PM »

Lancelot

  • Moderator, Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
You should see RED noticed Errormessage or see it in log file.

WimBuilder2 is too fast for that, I should add a sleep.exe 5 ...

No no no,
no sleep.exe 5
--> Very bad idea that only serves longer build time

1)
 It is my mistake not checking log, unlike other projects I used to, I should.


2)
Good idea to RED warning, but what I mean is,
 WimBuilder continue adding SwitchToAdmin --> It should not add SwitchToAdmin
   Since I saw SwitchToAdmin (logon) at boot, I did not check log but assume since added it should be working.

eg.
SE\Finals\"Logon as Admin" plugin do not add SwitchToAdmin when there is no tsdiscon.exe
 even end-user forgot checking log (like me),
  since there will be nothing related to "Logon as Admin" forces end-user to check log.  :wink:



@cretino
reminding, you should wait some time after boot till everything ready for printer related things
 (noelblanc also recently wrote on  MicroWinpeBuilder
     and I can tell you it is same with Gena printer,
         wait some time to get printer related things ready )

:turtle:

 

Powered by EzPortal