Install Media Customizer Kitchen - IMCK (formely known as "Custom Toolkit")

Discussion in 'Application Software' started by inTerActionVRI, Nov 22, 2022.

  1. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    #81 inTerActionVRI, Jun 18, 2023
    Last edited: Jun 19, 2023
    (OP)
    Custom Toolkit - Old Main Post
    https://forums.mydigitallife.net/threads/msmg-toolkit.50572/page-793#post-1606110


    Install Media Customizer Kitchen - Current Main Post
    https://forums.mydigitallife.net/th...n-imck-formely-known-as-custom-toolkit.86170/


    ImageEditions_VirtualManager.zip 2023-06-06 (updated with 2023-06-05 @abbodi1406 "uup-converter-wimlib-90")
    Note: To work with Virtual Manager, it is not necessary to extract the file. The script will do the entire process.

    Sent a new IMCK. Updated file attached in the link above.

    Download: in my Signature.

    ***** [2023-06-09] --> Released the localized version of IMCK *****
    Any one who wants to be Maintainer in you own language can follow the instructions from Post 10 to 13.
    https://forums.mydigitallife.net/th...y-known-as-custom-toolkit.86170/#post-1765659

    Changes since the version released on June 09th:

    Merged with Toolkit 13.4 2023-06-11

    Fixed reported bugs with help from @bala1, @haris_mdlf69, @正义羊, @GeorgePirkl and @gialong

    01. Added the official Toolkit Tweak "Disable Downloads Folder Auto Group By Date Layout"
    On IMCK it's called "Download Folder TopViews (Properties for folder Listing)"
    But it is a Menu with options to customize the view of the Downloads folder, not to disable the listing by date, although the default of the tweak is not by date.
    This has been present since before this localized release.

    02. Fixed all issues reported by users.

    03. Improved algorithm for translation.

    04. Improved function code for writing AutoUnattend file.
    Fixed AutoUnattend compatibility issues arising from Users removing components. And removed miscellaneous settings that may be problems in the future.

    05. Many optimizations focused on performance, since in the development of the function to generate AutoUnattend, there was a considerable loss of performance when entering several functions.
    Among them the creation of the "Function to Get Information for Language Locales and Unattended File" separate from the function to get data from the Image that is used throughout the code and because of that there was slowness.

    06. Moved the Unsupported Image information message to the beginning of the code, just before Image Mounting. Thus, it is easier to avoid wasting time with providing a wrong ISO.

    07. Added red color in Warnings.
    07.1. Made other cosmetic alignment changes.

    08. Some changes to translation variable names, especially conflicting variables.
    Translation corrections in the Portuguese language.

    09. Fixed Convert ESD to WIM to export in user preferred order.

    10. I removed the following components from the "select all components" option:
    windows update
    ClientCBS
    InputApp
    StartMenuExperienceHost
    ShellExperienceHost
    UndockedDevKit
    WindowsDefender

    11. Simply so that you pay attention to these components.
    If you want to remove it, know what you're doing.

    12. Removed redundancy in removing components.

    13. Improved cleaning of leftover registry mount points.
    Merged with Toolkit 13.4 2023-05-29 and 2023-06-08

    01. Resolved some types
    02. Fixed sequential pauses
    03. Several minor improvements

    04. The user rights elevation scheme with nSudo has been circumvented so that it works even if you run as Administrator or if you have UAC disabled. So far there have been many tests and previously reported problems have not been repeated. Now the script can also be run directly with 2 clicks.

    05. Improved Get Image Index Informations for IMCK needs.

    06. A Dark Theme with 2 BackGround was made available and registry tweaks related to this integration were enabled.
    06.1. To use "Dark Theme" you have to use "Custom Features Menu" - Option "Custom Files".
    06.2. In "Customize Menu" - "IMCK Tweaks Menu" use Option "WindowsExplorer_PreferencesandPolicies" and "EnableDarkThemeandTransparency" Tweaks.

    07. Added the "ImageEditions_VirtualManager_List.zip" list inside the "\Bin\Lists" folder which will be extracted only once.
    In this list you can order or remove what you want so that the "Virtual Manager" does the work of reordering and creating the Editions not present.
    As your list is already in the order you want, when you get to "Virtual Manager Menu", the menu will be in the order of your list and you can simply select everything and press 'C' to continue.

    08. If WinRe.wim is removed "InPlace Update" stops working. In this case, the "Manual Setup" component will be removed.

    09. Improved DownloadFile function

    10. Added a feature, after integrating the "Microsoft Games" package to prevent removing components that act as dependencies.

    11. Removed the repeated questions related to downloading updates through UUPdownloader.
    Now the process is automated so that it detects if the download you are downloading is already present and avoids downloading it again.

    12. Added a Tweak that adds "GPedit" in Core Editions.
    Added within the "IMCK Tweaks Menu", a Tweak "Download Folder Top Views (Properties for folder Listing)" to configure the display mode of file lists in the "Download" folder.

    13. Improved "SmartScreen" Tweak.
    14. Improved "Disable Windows Defender" Tweak. Implemented in this update an MSMG Tip.
    15. Fixed several registry entries that were REG_SZ when they should be REG_EXPAND_SZ.

    16. Fixed a problem in the "Export" option function in the "Wim Manager Menu", in which the path to the Install.wim image was wrong.

    17. Fixed a problem where the ImageDefaultLanguage variable value was damaged. This fact occurred due to the fact that there was no index available for reading the data, when the user decided to remove WinPE.
    And, to avoid future problems with getting the Language data. A function that removes whitespace only from the beginning and end of a variable's value has been implemented.
    The previous technique removed spaces before the string, but if there was a character, it would remove that character. And if the command were run again for some random reason, it would still remove the first letter of the string.

    18. Implemented the function to make the installation response file "AutoUnattend.xml".
    A WARNING is implemented in the Main Menu, so that the user remembers to create the AutoUnattend file in case the "CloudExperienceHost" component is removed.

    19. Added a feature in the "CleanUp Temporary File and Folders" function, to clean folders of Languages other than en-US and your language.

    20. Optimized Save Source by refactoring the Virtual Manager code to leave the indexes already organized according to the user's preference.
    Added "Base Editions" to be exported in the position that the user defines, along with "Virtually Created Editions", directly in the "Virtual Manager" code.

    21. Added "Virtual Manager" option "vwim2swm" to split "install.wim" for FAT32 partitions.

    22. "Virtual Manager Menu" has been improved to be automatically generated within IMCK, displaying only the options available for the "install.wim" being worked on.

    23. Final export is performed only once. Previously, 2 processes were performed when using the "Virtual Manager".

    24. Improved Write EI.cfg funcition.

    25. Fixed problems in Target Menu - in MakeISO option, options will no longer be displayed in cases where they cannot be used.
    25.1. It is now allowed to leave "Label" blank.

    26. Updated Scripts on "Installers.zip" and "ExtraUtilities.zip" packages.

    27. Updated "UUPDump_UpdatesOnly[IMCK_Downloader].cmd" Script. It works directly out of IMCK. Downloads from UUP dump: NetFX35; OpenSSH Server and Client. The downloads will be placed in there respective Packs folders.

    Fixed "OpenSSH Server" integration.
    Critical Fix: issue that breaks the "IMCK.cmd" when "Lite" or "XtremeLite" PreSets are used.

    Improved the code for find Pendrive "Installers" folder for working with VMs. When you use the Customize Menu [A] option.
    Code:
      [A] (+)Alternative for SetupComplete, OOBE and FirstLogon, through the Start Menu.
             Note: In this way it is possible that install automation can be
                   performed after 1st connection directly from the web.
    
    Merged with Toolkit 13.2 [2023-01-24], Toolkit 13.2 [2023-03-01] and Toolkit 13.3 [2023-03-25].

    1. Updated Scripts on "Installers.zip" and "ExtraUtilities.zip" packages.

    2. Updated "UUPDump_UpdatesOnly[IMCK_Downloader].cmd" Script. Now It works directly out of IMCK. It downloads from UUP dump: NetFX35; OpenSSH Server and Client. The downloads will be placed in there respective Packs folders.

    3. Updated PreSets for Components Removal.
    Added "Lite", "Xtreme Lite" and "Personal Work" PreSet Lists in the ".\Bin\Lists\Example_Lists.zip" package.

    4. Improved NetFX35 code block for cab files detection.

    5. Improved the function to remove a Locked/Hidden Windows Package from the Image

    6. Improved the function for Download Files

    7. Implemented "Third Party App Packs" auto Generate Menu.

    8. CleanUp temporary and log files or folders changed to be used as a function.

    9. Some code refatoration and minor fixes.

    1. Fixed some bug related with new components after Windows Updates Integration.
    2. Fixed a critical bug that break the script when user enter the SystemApps Menu.
    3. Added: Hide VC++ from Uninstall Programs list when Integrating VC++Runtime Pack.
    12.11 Merged with Toolkit [2022-12-21 and 2022-12-28].

    1. Added a question for you to decide if you want to remove WinPE.
    And corrected all the code, to handle Boot.wim with just one index.

    2. Already after the removal of WinRE, in the Integration of WHD Updates, a problem that prevented the integration of updates in Install.wim was generated.
    So a new option has been added to fix this "Integrate to Windows Setup Boot ^& Install Images".


    3. Made a change to the display of component notes in the menus.
    Now the notes are more evident for those who will open the component removal menus for the first time.
    As you select the components to be removed, the warning messages will stop being displayed.
    The way it was, the person would type, for example: 25. Then the screen would reload and the person wouldn't even bother to see if any messages appeared.
    I've been thinking about this for some time now.

    4. A bug in the registry file converter has been fixed. The new file is available in the package for testing purpose.

    5. A bug in the code that downloads updates via UUP dump has been fixed.
    In this bug the right Build is found, but it wasn't getting the hash to download the list and start the downloads. Another bug fixed for downloading updates for x86.

    Merged with Toolkit [2022-11-30].

    Convert ESD to WIM is in 1 option:
    --> 1 Source Menu --> 4 Convert Source Install Image file from .ESD to .WIM).
    bin\EsdDecrypter.exe file updated with available by aboodi1406 in the esd-decrypter-wimlib-63.7z package.

    Fixed: Obtaining the Download of Updates through the WHD Menu no longer repeats the Download at the time of implementing the Updates.
    Merged with 12.9 [2022-11-25].
    Merged with 12.9 [2022-11-13] and [2022-11-19]. And other minor fixes.

    Now the Images are mounted with Read/Write permission with Imagex.
     
  2. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    #82 inTerActionVRI, Jun 22, 2023
    Last edited: Jun 22, 2023
    (OP)
    You need to extract the package in Toolkit's.
    Your need to use short Path.
    The path cannot contains [ ].
    If yours Toolkit's folder be like "C:\MSMG" or "C:\TK" is better to avoid issues.
     
  3. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    Yes, you have started updates integration outside the IMCK.
    But I once told you that a way around this is in the "remove components menu" to, after integrating updates, press "D" to "revert all choices to Default".
    I didn't leave it automatic because every time you enter the "remove components menu" it would be very slow.

    Try to do the test, integrating the updates tru IMCK. To see if if bring some changes. If not just use the "D" option before use the Option "3". If you use the Option "T". It will remove everything without filter.

    Put your updates in your Build WHD folder

    Then enter in Integrate Menu --> Updates and press "P"
    It will integrate the updates inside the "\WHD\w10\x64\10.0.19041" folder.
    Note: You can select all you want in every menu inside the integrate menu.
    Then return to Integrate Menu and press "S" to Start all Integration.
    You can use the Win32Calc Skin to insert a modern icon it will not give to you any SFC, simply because win32calc no longer comes natively with the system.
    upload_2023-6-22_11-38-48.png
     
  4. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    #84 inTerActionVRI, Jun 22, 2023
    Last edited: Jun 22, 2023
    (OP)
    You can.

    About "I can move MSGM anywhere". No, you can not. Due to long paths, you may get errors when removing some components, same as here.

    If you run it from the desktop, it should be in C:.

    If you want to change to D: for example.
    put the Toolkit folder in D:\MSMG or D:\TK
    Don't put in long paths like C:\Users\YourUserName\Desktop\IMCKwithSquareBrackets and on top of that without reading the topic.

    The IMCK will always be extracted into the Toolkit root folder. I just told you to put it on a short path.
    It will never work alone. I am not authorized to provide a complete package with the MSMG Toolkit project inside the IMCK package.

    I can't guess that you don't have space in C:\.


    If you had read the Changelogs you would have known that there is a file for you to configure your working directory.


    You haven't even tried to make proper use of it and you're calling it rubbish.
    Lack of respect, no my dear. Criticize by showing the mistakes.

    Do better, nobody stops you.

    Yes, in this version several errors were found because the change was massive, due to the implementation of the Translation system.

    But the errors you are having are not the Script's fault.

    If you don't have patience for learning, this is not for you. You're better off using the official ISOs, rather than customizing one.
    If you still want to give it a try: Change the path inside the file "\Bin\EnvironmentPath.cmd".
    If not, Use the tools you already know.

    By the way, today has update, but only aesthetic details.
    And a correction in obtaining language data for Autounattend file.
     
  5. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    Very simple! Needs ajustment... Nice, thnks!
     
  6. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    #86 inTerActionVRI, Jun 26, 2023
    Last edited: Jul 7, 2023
    (OP)
    Custom Toolkit - Old Main Post
    https://forums.mydigitallife.net/threads/msmg-toolkit.50572/page-793#post-1606110


    Install Media Customizer Kitchen - Current Main Post
    https://forums.mydigitallife.net/th...n-imck-formely-known-as-custom-toolkit.86170/


    ImageEditions_VirtualManager.zip 2023-07-01 (updated with 2023-06-30 @abbodi1406 "uup-converter-wimlib-92")
    Note: To work with Virtual Manager, it is not necessary to extract the file. The script will do the entire process.


    Sent a new IMCK. Updated. Link for Download: in my Signature.


    ***** [2023-06-09] --> Released the localized version of IMCK *****
    Any one who wants to be Maintainer in you own language can follow the instructions from Post 10 to 13.
    https://forums.mydigitallife.net/th...y-known-as-custom-toolkit.86170/#post-1765659


    Merged with Toolkit 13.5 on 2023-06-28 and 2023-06-29.

    Please download the new ToolkitHelper.exe and replace it in \Bin folder.

    1. Fixed an issue referenced by friend @正义羊, in the Toolkit's thread.

    2.Fixed an issue that did not prevent the use of the function but made it more difficult. This caused the user, when using an "AutoUnatted" Writting menu option, to be returned to the function entry menu. Now it stays in the correct menu until you choose W to write the "AutoUnattend.xml".

    3. Fixed an issue with setlocal endlocal when ending using ImageEdition_VirtualManager Options.

    4. Fixed translation variable conflict, improved several translation aesthetic details, and added new translations.

    Note: you need to update the file "\Bin\EnvironmentPath.cmd" based on the new one that is available inside "\Bin\EnvironmentPath.zip".
    1. Fixed problem with detection of environment variables: Local User Name (UserName) and Local User Profile (UserProfile). Which are not recognized by scripot correctly when running the Script as TrustedInstaller with nSudo, MinSudo or PowerRun. Data is only retrieved correctly if run as Administrator.

    2. Added checking for spaces and special characters in MSMG Toolkit path
    3. Added check for C:\ partition with low storage space and suggestion to configure another working space for IMCK. Thnks to @miuki, because according to our conversations above, I remembered that I had already started to develop this code a few years ago. So now I'm done. I hope this free space detection algorithm code will not cause further problems on IMCK for other languages.

    Note 1: Below 48Gb a message will be displayed for you to make the decision to place the workbook in another location or configure it to remain in C:\ even if there is space below 48Gb. I don't know if anyone has noticed but the processes in the MSMG Toolkit or IMCK can vary between 25gb and over 50gb.

    Note 2: In this verification, the configuration file will be opened so that you can make the settings relevant to you.


    4. Added new information in the support warning. Informing which Builds are supported.

    5. Some more corrections were made in the Function to Write AutoUnattend file and new options were added to the AutoUnattend menu.
    5.1. Fixed language detection for AutoUnattend file writing.
    5.2. You can now use a Personal AutoUnattend file. Just put it in the Custom folder. And use Copy Personal AutoUnattend file option.

    6. Some aesthetic fixes like centering the WARNINGS.

    7. Fixed an issue that was not rearranging the Indexes, if the user wanted to do it manually instead of setting the "\Bin\Lists\ImageEditions_VirtualManager_List.txt" file with the preferred arrangement.

    Changes since the version released on June 09th:

    Merged with Toolkit 13.4 2023-06-11


    01. Added the official Toolkit Tweak "Disable Downloads Folder Auto Group By Date Layout"
    On IMCK it's called "Download Folder TopViews (Properties for folder Listing)"
    But it is a Menu with options to customize the view of the Downloads folder, not to disable the listing by date, although the default of the tweak is not by date.
    This has been present since before this localized release.

    02. Fixed all issues reported by users.

    03. Improved algorithm for translation.

    04. Improved function code for writing AutoUnattend file.
    Fixed AutoUnattend compatibility issues arising from Users removing components. And removed miscellaneous settings that may be problems in the future.

    05. Many optimizations focused on performance, since in the development of the function to generate AutoUnattend, there was a considerable loss of performance when entering several functions.
    Among them the creation of the "Function to Get Information for Language Locales and Unattended File" separate from the function to get data from the Image that is used throughout the code and because of that there was slowness.

    06. Moved the Unsupported Image information message to the beginning of the code, just before Image Mounting. Thus, it is easier to avoid wasting time with providing a wrong ISO.

    07. Added red color in Warnings.
    07.1. Made other cosmetic alignment changes.

    08. Some changes to translation variable names, especially conflicting variables.
    Translation corrections in the Portuguese language.

    09. Fixed Convert ESD to WIM to export in user preferred order.

    10. I removed the following components from the "select all components" option:
    windows update
    ClientCBS
    InputApp
    StartMenuExperienceHost
    ShellExperienceHost
    UndockedDevKit
    WindowsDefender

    11. Simply so that you pay attention to these components.
    If you want to remove it, know what you're doing.

    12. Removed redundancy in removing components.

    13. Improved cleaning of leftover registry mount points.

    14. Updated Main Scripts ROOT Checking in GenericStart and UUPDownloader.
    Merged with Toolkit 13.4 2023-05-11

    Fixed reported bugs with help from @bala1 and @haris_mdl
    Merged with Toolkit 13.4 2023-05-29 and 2023-06-08

    01. Resolved some types
    02. Fixed sequential pauses
    03. Several minor improvements

    04. The user rights elevation scheme with nSudo has been circumvented so that it works even if you run as Administrator or if you have UAC disabled. So far there have been many tests and previously reported problems have not been repeated. Now the script can also be run directly with 2 clicks.

    05. Improved Get Image Index Informations for IMCK needs.

    06. A Dark Theme with 2 BackGround was made available and registry tweaks related to this integration were enabled.
    06.1. To use "Dark Theme" you have to use "Custom Features Menu" - Option "Custom Files".
    06.2. In "Customize Menu" - "IMCK Tweaks Menu" use Option "WindowsExplorer_PreferencesandPolicies" and "EnableDarkThemeandTransparency" Tweaks.

    07. Added the "ImageEditions_VirtualManager_List.zip" list inside the "\Bin\Lists" folder which will be extracted only once.
    In this list you can order or remove what you want so that the "Virtual Manager" does the work of reordering and creating the Editions not present.
    As your list is already in the order you want, when you get to "Virtual Manager Menu", the menu will be in the order of your list and you can simply select everything and press 'C' to continue.

    08. If WinRe.wim is removed "InPlace Update" stops working. In this case, the "Manual Setup" component will be removed.

    09. Improved DownloadFile function

    10. Added a feature, after integrating the "Microsoft Games" package to prevent removing components that act as dependencies.

    11. Removed the repeated questions related to downloading updates through UUPdownloader.
    Now the process is automated so that it detects if the download you are downloading is already present and avoids downloading it again.

    12. Added a Tweak that adds "GPedit" in Core Editions.
    Added within the "IMCK Tweaks Menu", a Tweak "Download Folder Top Views (Properties for folder Listing)" to configure the display mode of file lists in the "Download" folder.

    13. Improved "SmartScreen" Tweak.
    14. Improved "Disable Windows Defender" Tweak. Implemented in this update an MSMG Tip.
    15. Fixed several registry entries that were REG_SZ when they should be REG_EXPAND_SZ.

    16. Fixed a problem in the "Export" option function in the "Wim Manager Menu", in which the path to the Install.wim image was wrong.

    17. Fixed a problem where the ImageDefaultLanguage variable value was damaged. This fact occurred due to the fact that there was no index available for reading the data, when the user decided to remove WinPE.
    And, to avoid future problems with getting the Language data. A function that removes whitespace only from the beginning and end of a variable's value has been implemented.
    The previous technique removed spaces before the string, but if there was a character, it would remove that character. And if the command were run again for some random reason, it would still remove the first letter of the string.

    18. Implemented the function to make the installation response file "AutoUnattend.xml".
    A WARNING is implemented in the Main Menu, so that the user remembers to create the AutoUnattend file in case the "CloudExperienceHost" component is removed.

    19. Added a feature in the "CleanUp Temporary File and Folders" function, to clean folders of Languages other than en-US and your language.

    20. Optimized Save Source by refactoring the Virtual Manager code to leave the indexes already organized according to the user's preference.
    Added "Base Editions" to be exported in the position that the user defines, along with "Virtually Created Editions", directly in the "Virtual Manager" code.

    21. Added "Virtual Manager" option "vwim2swm" to split "install.wim" for FAT32 partitions.

    22. "Virtual Manager Menu" has been improved to be automatically generated within IMCK, displaying only the options available for the "install.wim" being worked on.

    23. Final export is performed only once. Previously, 2 processes were performed when using the "Virtual Manager".

    24. Improved Write EI.cfg funcition.

    25. Fixed problems in Target Menu - in MakeISO option, options will no longer be displayed in cases where they cannot be used.
    25.1. It is now allowed to leave "Label" blank.

    26. Updated Scripts on "Installers.zip" and "ExtraUtilities.zip" packages.

    27. Updated "UUPDump_UpdatesOnly[IMCK_Downloader].cmd" Script. It works directly out of IMCK. Downloads from UUP dump: NetFX35; OpenSSH Server and Client. The downloads will be placed in there respective Packs folders.

    Previous CHANGELOGS part 02: begining from 2021-07-16 to 2023-04-12 - End of non-Localized IMCK.

    Previous CHANGELOGS part 01: begining from 2020-07-04 to 1st year 2021-07-03_2
     
  7. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    #87 inTerActionVRI, Jun 30, 2023
    Last edited: Jul 7, 2023
    (OP)
    Please, note this detail.

    And new ImageEditions_VirtualManager based on new uup-converter-wimlib-92 is available since 2023-07-01

    Download in my signature.

    EDITED
     
  8. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    Tell me more about your idea. I didn't quite understand what you are referring to.

    .ISO files will only be in the ISOsource folder and the ISO folder.

    ISOsource are supported ISOs sourced from UUPdump or MSDN.

    ISO are the ISOs saved after customization is finished.
     
  9. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    But why not finalize the work on the image and save the ISO in the folder destined for this?

    You didn't explain what happens there, which is spread out. It was very vague.

    How would that be different? Give examples, that I can understand. After all, you have the idea, but I don't know what experience you are having there.

    I see no reason to make executables, but I also don't know what you want to run inside the extracted content in the InstallMedia folder.


    About leaving traces, when ending with Q the cleanup will be executed.


    I also don't like cloaking scripts in executables.

    If it were to make it executable, it would be better to develop in c++ or .NET and work with the system libraries.
    Since everything is native, I see no reason to reinvent the wheel.
    Just make it easier with menu options so you don't have to do everything manually, as many do.

    And my intention is to help the community, keeping it open for anyone who wants to fork and improve... That's interesting.

    MSMG taught me a lot of things, and it also brought up a lot of ideas. I made the codes and sent them to him. He decided what to implement there in the Toolkit. And I was customizing here, several things in order to learn and make available to anyone who wants to use it. There are things that I see as facilitators when making an ISO. After all, I customized it in my parameters to facilitate my daily use. Many think I put too much stuff and complicated it. heheheheh

    If you want to write a Batch Script with your logic and send me the Regex as you suggested, I will better understand what you mean.

    Send the code here.
     
  10. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    Because the "ToolkitHelper.exe" executable that handles component removal (powered by MSMG) is what dictates which builds are supported.

    In case you are not going to use removing components through the menus, or through the ToolkitHelper package list. You can use IMCK normally.

    So, if the build is not supported, you can use the option to remove some packages via the DISM package list.

    I always suggest, download the xxxxx.1 ISOs through UUPdump and keep them inside the ISOsource folder.

    When you are going to customize it, just use the integration of updates and remove the components.
    This method is supported.
    If integrating updates, and commit the image. The next time you mount the image, components are not guaranteed to be removed.

    The image remains a .1 even if it has received updates, when it remains being worked on. For this reason, there are no problems when removing components. I really don't know what goes on underneath.
    I just know that one of the side effects of removing components in an unsupported image is problems with Windows Update.
    So if you want to keep Windows Update active and remove only the contents of menu 8, you already know what to do.
    Removing components from menu 1 through 7 makes no difference if you are going to leave Windows Update running, as after a cumulative update these components will be restored.
     
  11. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    #91 inTerActionVRI, Jul 25, 2023
    Last edited: Jul 25, 2023
    (OP)
    In any command, in which you want to do a data search with DISM on host with other languages, you need to use DISM /english.
    Thus, one script maintains compatibility with all locales.

    For the performance. Also, because there is a switch that must grant read and write permissions on the mount point.

    Because, in most, they are strings.
    Where there are numbers that need calculation, there are no quotes.

    No. I just kept the debug implemented by MSMG (it is in Tools Menu).
    Obs.: When I'm developing the scripts, I display the data on screen. After achieved the objectives in the tests, I delete it in the files I distribute.

    I'm a junior DEV, and I've been learning about debugging for a short time. I'm still working out the strategy of implementing a per-function logging scheme.
     
  12. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    The templates are in folders inside \Bin\Lists\Template......
    Take a look there.
     
  13. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    Which compiler? For batch scripting?
    In each language different syntaxes.
    If you use if geq gtr leq lss with a number and in the comparator the numbers have different numbers of digits you will have problems.

    The script already runs as trustedintaller with nSudo.
    Even so, mounting with DISM sometimes gave "access denied".
    With the mounting through MS imagex this improved.
    About wimlib-imagex I haven't tested it. But if it works and the speed is better I prefer it. But I don't have time to do the necessary tests for changes, at this level of tests at the moment.
     
  14. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    #94 inTerActionVRI, Jul 25, 2023
    Last edited: Jul 25, 2023
    (OP)
    it is unquoted?
    I'll check it out.
    set ROOT="%cd%"
    it's the same thing as:
    set "ROOT=%cd%"

    There is incompatibility with the code of many people and that compiler there.
    Whoever wrote the compiler did not foresee this syntax variant.
    Or I don't know about the issue they encountered.
    I'll dig a little bit into this.

    Perhaps you will raise this issue with them (support of CMDebug). Either they will fix it or they will tell you what the problem is with using it like this:
    set "ROOT=%cd%".

    There are no unquoted "%ROOT%" in the code.

    EDIT: Maybe you are suggesting that it would be possible to use the variables that are already quoted, in the course of the code without having to use quotes in all of those.
    If so, it would remove some characters. But it's a lot to review.
    abbodi1406 told me this here.
    But I prefer to keep this as it is the variables surrounded with quotes if needed. Because when I need to remove those quotes from variable value it is not too readble, only this.
    What I could do is remove all quotes from set "something=value" but when this value be with some spaces (set "something=value of image description") it will bring issues, so no.
     
  15. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    #95 inTerActionVRI, Sep 2, 2023
    Last edited: Sep 3, 2023
    (OP)
    Custom Toolkit - Old Main Post
    https://forums.mydigitallife.net/threads/msmg-toolkit.50572/page-793#post-1606110

    Install Media Customizer Kitchen - Current Main Post
    https://forums.mydigitallife.net/th...n-imck-formely-known-as-custom-toolkit.86170/


    ImageEditions_VirtualManager.zip 2023-08-28 (updated with 2023-08-14 @abbodi1406 "uup-converter-wimlib-93f")
    Note: To work with Virtual Manager, it is not necessary to extract the file. The script will do the entire process.


    Sent a new IMCK. Updated. Link for Download: in my Signature.


    ***** [2023-06-09] --> Released the localized version of IMCK *****
    Any one who wants to be Maintainer in you own language can follow the instructions from Post 10 to 13.
    https://forums.mydigitallife.net/th...y-known-as-custom-toolkit.86170/#post-1765659

    1. Minor fixes.

    2. Updated "WHD\UUPDump_UpdatesOnly[IMCK_Downloader].cmd" Script.

    3. Corrected the package name with the lists for Presets Menu, from "PreSet_Lists.zip" to "PreSetLists_Pack.zip" in ".\Bin\Lists\PreSets" folder, just so that the code performs the self-extraction, in case the lists do not have been manually extracted.

    4. Some Component dependencies information was not being displayed for the en-US language has been fixed. There were variables with wrong names and some missing.

    5. More visually aesthetic alignments.
    Merged with Toolkit.cmd version 13.5 2023-08-04 Testing (with colors in component removal menu).

    Updated VirtualManager with uup-converter-wimlib-v93f

    1. Now IMCK identifies the ToolkitHelper from 9.5 to 13.5, changes its version, in the window title bar, according to the ToolkitHelper presented by the user and makes the Removal Menus and the removal by ToolkitHelper List remain compatible with the components that were renamed during updates from version 9.5.
    Regarding new components that have been made available for removal: These will only be displayed in versions of ToolkitHelper in which it was released and later versions.
    Furthermore, it also tells you exactly which builds are supported in each version.

    2. The color system is in a separate file from the IMCK script, in ".\Bin\ANSI_ColorPalette.bat".

    3. Implemented a simple function to debug IMCK initialization.

    4. Optimized localization code for IMCK translation.

    5. Fixed a bug that prevented the choice of another ISO to be made in the same session. It was necessary to restart the IMCK after completing an ISO.
    Note: Even so, to create an ISO that will be put into daily use, it is recommended that the IMCK be closed and started again.


    6. The Language Packs function supported adding one Language at a time.
    This has been improved and now, if you have the necessary files, you can select all the languages you want to deploy at once.
    You just need to type the required languages, separated by space.
    Ex: pt-BR es-ES it-IT de-DE en-GB zh-CN jp-JP

    7. InboxApps Menu was breaking script and has been fixed.

    8. Fixed the sending of Sidebar Integration information to prevent its dependencies from being able to be removed in the Remove components menu.
    This sending of information also occurs if you integrate MS Games.
    With this Integration information, even if you put it to remove through the list, the components related to these 2 integrations will not be removed.


    9. There was a restructuring in Remove Menu.
    9.1 In Remove Menu - new options in the form of Menus have been added:
    * DISM Remove Provisioned Windows Appx Menu
    * DISM Remove Capabilities Menu
    * DISM Remove Component Packages Menu

    9.2 In Remove Components Menu - All Presets are now lists.
    9.2.1 The options in the presets menu read the respective lists.
    As always the RemovePkgsList.txt list always had an option for reading it, allowing your choices to be changed in the sub-menus.
    9.2.2 The filter option has been completely removed, since currently the control is carried out in any part and option of the menu, except if the User chooses to use the Automated Sub-Menu.


    10. In Customize Menu - Improvements have been made to the Disable Features and Enable Features functions.
    And, also fixed, in General Tweaks, some tweaks regarding compression, thanks to forum member @GeorgePirkl.

    11. Fixed the WIMSplit and WIMerge functions against deleting the existing image if the user decides not to continue using the function.

    12. Several translation improvements, many new changes in the translation files due to the massive change that was made available by @MSMG, in Toolkit.cmd version 13.5 Testing.

    13. Fixed issues related to empty translation variables due to language difference.
    In Portuguese the translations can be more extensive. So, in English there can be empty variables, which can result in extra lines being added to the message display.

    14. Facilitated the understanding of the Main menu options related to IMCK Session Cleanup and Restart.

    15. Many, many visual aesthetic changes, for displaying messages on screen and for developers to be able to read the code well...

    Merged with Toolkit 13.5 on 2023-06-28 and 2023-06-29.

    1. Fixed an issue referenced by friend @正义羊, in the Toolkit's thread.

    2.Fixed an issue that did not prevent the use of the function but made it more difficult. This caused the user, when using an "AutoUnatted" Writting menu option, to be returned to the function entry menu. Now it stays in the correct menu until you choose W to write the "AutoUnattend.xml".

    3. Fixed an issue with setlocal endlocal when ending using ImageEdition_VirtualManager Options.

    4. Fixed translation variable conflict, improved several translation aesthetic details, and added new translations.

    Note: you need to update the file "\Bin\EnvironmentPath.cmd" based on the new one that is available inside "\Bin\EnvironmentPath.zip".

    1. Fixed problem with detection of environment variables: Local User Name (UserName) and Local User Profile (UserProfile). Which are not recognized by scripot correctly when running the Script as TrustedInstaller with nSudo, MinSudo or PowerRun. Data is only retrieved correctly if run as Administrator.

    2. Added checking for spaces and special characters in MSMG Toolkit path
    3. Added check for C:\ partition with low storage space and suggestion to configure another working space for IMCK. Thnks to @miuki, because according to our conversations above, I remembered that I had already started to develop this code a few years ago. So now I'm done. I hope this free space detection algorithm code will not cause further problems on IMCK for other languages.

    Note 1: Below 48Gb a message will be displayed for you to make the decision to place the workbook in another location or configure it to remain in C:\ even if there is space below 48Gb. I don't know if anyone has noticed but the processes in the MSMG Toolkit or IMCK can vary between 25gb and over 50gb.

    Note 2: In this verification, the configuration file will be opened so that you can make the settings relevant to you.


    4. Added new information in the support warning. Informing which Builds are supported.

    5. Some more corrections were made in the Function to Write AutoUnattend file and new options were added to the AutoUnattend menu.
    5.1. Fixed language detection for AutoUnattend file writing.
    5.2. You can now use a Personal AutoUnattend file. Just put it in the Custom folder. And use Copy Personal AutoUnattend file option.

    6. Some aesthetic fixes like centering the WARNINGS.

    7. Fixed an issue that was not rearranging the Indexes, if the user wanted to do it manually instead of setting the "\Bin\Lists\ImageEditions_VirtualManager_List.txt" file with the preferred arrangement.

    Changes since the version released on June 09th:

    Merged with Toolkit 13.4 2023-06-11


    01. Added the official Toolkit Tweak "Disable Downloads Folder Auto Group By Date Layout"
    On IMCK it's called "Download Folder TopViews (Properties for folder Listing)"
    But it is a Menu with options to customize the view of the Downloads folder, not to disable the listing by date, although the default of the tweak is not by date.
    This has been present since before this localized release.

    02. Fixed all issues reported by users.

    03. Improved algorithm for translation.

    04. Improved function code for writing AutoUnattend file.
    Fixed AutoUnattend compatibility issues arising from Users removing components. And removed miscellaneous settings that may be problems in the future.

    05. Many optimizations focused on performance, since in the development of the function to generate AutoUnattend, there was a considerable loss of performance when entering several functions.
    Among them the creation of the "Function to Get Information for Language Locales and Unattended File" separate from the function to get data from the Image that is used throughout the code and because of that there was slowness.

    06. Moved the Unsupported Image information message to the beginning of the code, just before Image Mounting. Thus, it is easier to avoid wasting time with providing a wrong ISO.

    07. Added red color in Warnings.
    07.1. Made other cosmetic alignment changes.

    08. Some changes to translation variable names, especially conflicting variables.
    Translation corrections in the Portuguese language.

    09. Fixed Convert ESD to WIM to export in user preferred order.

    10. I removed the following components from the "select all components" option:
    windows update
    ClientCBS
    InputApp
    StartMenuExperienceHost
    ShellExperienceHost
    UndockedDevKit
    WindowsDefender

    11. Simply so that you pay attention to these components.
    If you want to remove it, know what you're doing.

    12. Removed redundancy in removing components.

    13. Improved cleaning of leftover registry mount points.

    14. Updated Main Scripts ROOT Checking in GenericStart and UUPDownloader.
    Merged with Toolkit 13.4 2023-05-11

    Fixed reported bugs with help from @bala1 and @haris_mdl
    Merged with Toolkit 13.4 2023-05-29 and 2023-06-08

    01. Resolved some types
    02. Fixed sequential pauses
    03. Several minor improvements

    04. The user rights elevation scheme with nSudo has been circumvented so that it works even if you run as Administrator or if you have UAC disabled. So far there have been many tests and previously reported problems have not been repeated. Now the script can also be run directly with 2 clicks.

    05. Improved Get Image Index Informations for IMCK needs.

    06. A Dark Theme with 2 BackGround was made available and registry tweaks related to this integration were enabled.
    06.1. To use "Dark Theme" you have to use "Custom Features Menu" - Option "Custom Files".
    06.2. In "Customize Menu" - "IMCK Tweaks Menu" use Option "WindowsExplorer_PreferencesandPolicies" and "EnableDarkThemeandTransparency" Tweaks.

    07. Added the "ImageEditions_VirtualManager_List.zip" list inside the "\Bin\Lists" folder which will be extracted only once.
    In this list you can order or remove what you want so that the "Virtual Manager" does the work of reordering and creating the Editions not present.
    As your list is already in the order you want, when you get to "Virtual Manager Menu", the menu will be in the order of your list and you can simply select everything and press 'C' to continue.

    08. If WinRe.wim is removed "InPlace Update" stops working. In this case, the "Manual Setup" component will be removed.

    09. Improved DownloadFile function

    10. Added a feature, after integrating the "Microsoft Games" package to prevent removing components that act as dependencies.

    11. Removed the repeated questions related to downloading updates through UUPdownloader.
    Now the process is automated so that it detects if the download you are downloading is already present and avoids downloading it again.

    12. Added a Tweak that adds "GPedit" in Core Editions.
    Added within the "IMCK Tweaks Menu", a Tweak "Download Folder Top Views (Properties for folder Listing)" to configure the display mode of file lists in the "Download" folder.

    13. Improved "SmartScreen" Tweak.
    14. Improved "Disable Windows Defender" Tweak. Implemented in this update an MSMG Tip.
    15. Fixed several registry entries that were REG_SZ when they should be REG_EXPAND_SZ.

    16. Fixed a problem in the "Export" option function in the "Wim Manager Menu", in which the path to the Install.wim image was wrong.

    17. Fixed a problem where the ImageDefaultLanguage variable value was damaged. This fact occurred due to the fact that there was no index available for reading the data, when the user decided to remove WinPE.
    And, to avoid future problems with getting the Language data. A function that removes whitespace only from the beginning and end of a variable's value has been implemented.
    The previous technique removed spaces before the string, but if there was a character, it would remove that character. And if the command were run again for some random reason, it would still remove the first letter of the string.

    18. Implemented the function to make the installation response file "AutoUnattend.xml".
    A WARNING is implemented in the Main Menu, so that the user remembers to create the AutoUnattend file in case the "CloudExperienceHost" component is removed.

    19. Added a feature in the "CleanUp Temporary File and Folders" function, to clean folders of Languages other than en-US and your language.

    20. Optimized Save Source by refactoring the Virtual Manager code to leave the indexes already organized according to the user's preference.
    Added "Base Editions" to be exported in the position that the user defines, along with "Virtually Created Editions", directly in the "Virtual Manager" code.

    21. Added "Virtual Manager" option "vwim2swm" to split "install.wim" for FAT32 partitions.

    22. "Virtual Manager Menu" has been improved to be automatically generated within IMCK, displaying only the options available for the "install.wim" being worked on.

    23. Final export is performed only once. Previously, 2 processes were performed when using the "Virtual Manager".

    24. Improved Write EI.cfg funcition.

    25. Fixed problems in Target Menu - in MakeISO option, options will no longer be displayed in cases where they cannot be used.
    25.1. It is now allowed to leave "Label" blank.

    26. Updated Scripts on "Installers.zip" and "ExtraUtilities.zip" packages.

    27. Updated "UUPDump_UpdatesOnly[IMCK_Downloader].cmd" Script. It works directly out of IMCK. Downloads from UUP dump: NetFX35; OpenSSH Server and Client. The downloads will be placed in there respective Packs folders.

    Previous CHANGELOGS part 02: begining from 2021-07-16 to 2023-04-12 - End of non-Localized IMCK.

    Previous CHANGELOGS part 01: begining from 2020-07-04 to 1st year 2021-07-03_2



    EDIT 2023-09-03:
    All sub-menus for Removing Components have a "Select All" option.
    However, this generates a lot of human error. I made this option select many options at once, but there is a restriction for more important components and in order to maintain their functionality. These components, if not blocked by compatibility, can be manually selected if desired.

    Note Components still remain locked, they are the ones needed by most other components. If you know what you're doing or want to have fun testing and want something without the compatibility restrictions, use the following sequence from the Main Menu: "[3] --> [1] --> [4] Select Components Automated Sub-Menus (Auto Generated)".
     
  16. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    #96 inTerActionVRI, Sep 3, 2023
    Last edited: Sep 3, 2023
    (OP)
    Please do the download again!
    In my signature.

    Some ScreenShots
    upload_2023-9-3_4-24-59.png

    upload_2023-9-3_4-28-26.png

    upload_2023-9-3_2-39-17.png

    upload_2023-9-3_2-39-37.png

    upload_2023-9-3_2-40-10.png

    upload_2023-9-3_2-48-55.png

    upload_2023-9-3_2-49-11.png

    upload_2023-9-3_4-7-6.png

    upload_2023-9-3_4-10-6.png

    upload_2023-9-3_2-55-23.png
     
  17. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    In pixeldrain counts (mega and gdrive don't offer this kind of info. If they do, I don't know where to look), we reached 11 downloads in the version of September 1st.
    In the version of the 3rd of September, there were 5 downloads...
    Hehehehe, people don't want to do tests anymore.

    Jokes aside... Let's leave some details in evidence.
    I make a point of bringing big changes, but if there's no creativity, it's just merge and minor fixes.
    So, in each release, with your tests, I manage to catch things that alone are not easy to detect.
    As a friend here on the forum said, there are so many things to be tested, in an implementation that we forget that there are other scenarios to be tested.

    I am very grateful to those who remain, giving feedback so that there are always improvements in IMCK.

    If you want, we can release more versions assiduously, with a # here, another comma there, a period that was missing in some message displayed on the screen...

    But I don't like releasing updates that don't have functional fixes.
    So when there is a release or relaunch, it's because a hotfix was needed.

    There is also another detail for anyone translating LOCALES.cmd into other languages.
    1. Always compare the previous (English) version you have with the new (English) version.
    2. Check deleted variables, added variables and renamed variables. So, you only work on what has changed.
    3. This will happen because there is a lot of potential for code optimization, especially in the code for component removal menus. And, there is prediction for that.

    Sorry for the giant text, but I don't really know how to make a TLDR text, for me either things are explained or people have a lot of questions.

    I have a pendency, a demand that my friend @raptorddd brought me a few months ago.
    So my dear, I'm going to try to implement what you talked to me about, I'm going to check the code and as I implement it in your code I'll also add it to IMCK.
    I hope it goes well, heheheh. I will share with you.
    I also want to see if I make the menus I've added in this version useful for use in Online mode.


    Very grateful guys!
     
  18. catosis

    catosis MDL Junior Member

    Apr 24, 2022
    87
    23
    0
    #98 catosis, Sep 21, 2023
    Last edited: Sep 21, 2023
    Well you can count 2 downloads in total from me.
    Back the first time I had similar experience as today. I want to build an up-to-date Windows 11 installation image, cut down as much as possible to not damage Xbox Cloud Gaming, which needs me to login to my account with valid subscription. I also want WSL2 to work. I don't use it, I've used it maybe for 5 minutes total since release, but it's on my "will learn at least the basics someday" list.
    And completely seriously - I occasionally make next attempt on cooking my personalised Windows 11, always problems, yet I'm doing it for about a year already. Zero success rate.
    Maybe you could help me out? For starters would be great to know, have a description or at least set of components that using one of your "MSMG removal" lists breaks completely or if it's not so black and white how exactly affects the final cooked Windows install image.
     
  19. inTerActionVRI

    inTerActionVRI MDL Expert

    Sep 23, 2009
    1,748
    3,575
    60
    #99 inTerActionVRI, Sep 21, 2023
    Last edited: Sep 26, 2023
    (OP)
    hehehehe


    I will be very clear with you.

    Start using a list of presets available in the menus.
    You will have a working ISO.

    If you want to appeal by removing everything possible, you will eventually run into problems.

    And if you use a preset like Lite and Xtreme Lite, eventually you will also find something that doesn't work.

    I've done this many times and what I use in my daily life is the For Work preset. I no longer had headaches.

    And I'm past the stage of trying to remove everything, I analyze the descriptions and think about what might end up being necessary at some point.
    I also check what is needed for what. There are components that are necessary for so many things that if I removed everything that depends on them I would still keep them in place.

    So, doing an ISO removing everything straight away is like having a headache.
    It will take you a while to find what suits you best.


    By the way. The IMCK merge with MSMG Toolkit 13.6 is coming out in few days.
     
  20. GeorgePirkl

    GeorgePirkl MDL Novice

    Feb 4, 2018
    45
    15
    0
    Are u all right ?