slorelee / wimbuilder2

wimbuilder with new UI & new syntax (hta+bat+vbs+js)
470 stars 105 forks source link

WimBuilder2\Projects\WIN10XPE\02-Apps\Defraggler #70

Closed rupelodn closed 2 years ago

rupelodn commented 2 years ago

I thought defragmenting the disk from WinPE would be more efficient, but I couldn't get it to work dfrgui.exe . Therefore, I suggest Defraggler. The patch integrates Defraggler into the building as much as possible, replaces the standard defragmenter, the desired language is automatically selected during building, unnecessary languages are removed. Part of the code is taken from Explorer++. It would be possible to do with fewer reg files if i didn't translate the context menu.

rupelodn commented 2 years ago

Hello slore. Your option works well, but the lines in the context menu are created twice - when building and when loading. For some reason it doesn't work for me:

if not "%APP_HOST_LANG%"=="%WB_PE_LANG%" goto :CONTEXTMENU_UPDATER

I tried to turn WimBuilder2 into Russian in the interface, but it didn't help. Initially, there was an Auto language setting. When I chose Russian, the log when listing variables was written APP_HOST_LANG=ru-RU. If the setting is Auto, APP_HOST_LANG=ru-RU is also written.

Another question: what should I do with this pull request? In any case, your variant is better, you need to add your patch. A very necessary GetLocaleId macro. Now adding localized resources to many programs will get better.

rupelodn commented 2 years ago

Hi slore, I decided to close this pull request because the code has been significantly redone. I completely managed to get rid of reg files, thanks a lot for the help to identify and copy language resources!