@Enthousiast Will your great script also work on windows 11? Also, could this script be integrated into the TPM 2.0 / secure boot that you're creating?
Yes, it's windows build independent. I can do that but not happy to overcomplicate things, the tools can be used after one another but this one needs an overhaul (implementing all new coding i've learned since), will start tomorrow.
Does it create an ISO with install.swm or install.esd? I have some ideas, will see when the ISO mayhem calms down.
Thank you for providing the command. I am using "ISO_With_Install.swm.cmd", but I have One question. However, using the command I can not automatically copy the contents of the ISO folder to a FAT32 formatted USB flash drive. Is there any restriction on the timing of inserting the USB memory stick into the PC ? I'd like a more detailed explanation, if possible. Of course, it is possible to manually export the installation ISO to a USB memory stick after it is created. ’----------- Self resolved.
Yes, maybe the ISO name will be incorrect but the install.esd or .swm stuff will work fine. Code: Creating ISO folder Extracting ISO to ISO folder 7-Zip 19.00 (x86) : Copyright (c) 1999-2018 Igor Pavlov : 2019-02-21 Scanning the drive for archives: 1 folder, 1 file, 5745197056 bytes (5480 MiB) Extracting archive: Source_ISO\en-us_windows_11_business_editions_version_21h2_updated_aug_2022_x64_dvd_50c9cab3.iso -- Path = Source_ISO\en-us_windows_11_business_editions_version_21h2_updated_aug_2022_x64_dvd_50c9cab3.iso Type = Udf Physical Size = 5745197056 Comment = CPBA_X64FRE_EN-US_DV9 Cluster Size = 2048 Created = 2022-08-06 02:00:00 Everything is Ok Folders: 89 Files: 948 Size: 5739477967 Compressed: 5745197056 Optimizing Boot.wim "ISO\Sources\boot.wim" original size: 488251 KiB Using LZX compression with 16 threads Archiving file data: 1142 MiB of 1142 MiB (100%) done "ISO\Sources\boot.wim" optimized size: 486805 KiB Space saved: 1446 KiB Optimizing Install.wim "ISO\Sources\install.wim" original size: 4853991 KiB Using LZX compression with 16 threads Archiving file data: 9 GiB of 9 GiB (100%) done "ISO\Sources\install.wim" optimized size: 4815340 KiB Space saved: 38650 KiB Splitting install.wim to multiple 3500MB install.swm files Writing "ISO\Sources\install.swm" (part 1 of 2): 0 MiB of 4698 MiB (0%) written Writing "ISO\Sources\install2.swm" (part 2 of 2): 3474 MiB of 4698 MiB (73%) written Finished writing split WIM part 2 of 2 Deleting install.wim Creating ISO... OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility Copyright (C) Microsoft, 1993-2012. All rights reserved. Licensed only for producing Microsoft authorized content. Scanning source tree (500 files in 45 directories) Scanning source tree complete (949 files in 90 directories) Computing directory information complete Image file is 5702057984 bytes (before optimization) Writing 949 files in 90 directories to Win10_With_Install_SWM.ISO 100% complete Storage optimization saved 4 files, 24576 bytes (0% of image) After optimization, image file is 5704151040 bytes Space saved because of embedding, sparseness or optimization = 24576 Done. Now you have time to copy the content of the ISO folder to a FAT32 formatted USB key, when done copying, press any key to cleanup the ISO folder. Press any key to continue . . . Will update the tool asap
>Yes, maybe the ISO name will be incorrect but the install.esd or .swm stuff will work fine. Thank you for your prompt response. The tool is available. I am glad.
> Yes, maybe the ISO name will be incorrect but the install.esd or .swm stuff will work fine. Thank you for your prompt response. The tool is available. I am glad.
https://forums.mydigitallife.net/th...-install-esd-install-swm-creation-tool.78925/ Changelog: Code: Win_ISO_W_ESD-SWM_Tool_v2.0 (Oct. 23. 2022) Major changes: Unified the scripts to one script with the options to select ISO with install.esd or install.swm. When the source ISO doesn't contain an install.wim, the script will abort. When swm is selected the script will check the filesize of the install.wim, when <4GB the script will abort. ISO filename will be the one from the source ISO with either ESD or SWM and modification date added. The Pause for copying the ISO folder content to a USB key is made optional (by editing the script options). Updated the 7z and wimlib-imagex files. Supports Windows 8.1/10/11/+ (swm option for win 7 on the todo list) Spoiler: Progress examples Code: ========================================================= Create ISO with compressed install.esd or multiple 3500MB install.swm v2.0 ========================================================= ========================================================== Select the compression type for the "Install" file ========================================================== [ 1 ] - ESD File - Smaller install file, longer creation. [ 2 ] - SWM File - Multiple split wim files. ========================================================== * Type your option and press Enter: 2 ========================================================== Creating ISO folder... ========================================================== ========================================================== Extracting ISO to ISO folder... ========================================================== 7-Zip 21.07 (x86) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26 Scanning the drive for archives: 1 file, 6136567808 bytes (5853 MiB) Extracting archive: Source_ISO\de-de_windows_10_consumer_editions_version_22h2_x64_dvd_ac60ae62.iso -- Path = Source_ISO\de-de_windows_10_consumer_editions_version_22h2_x64_dvd_ac60ae62.iso Type = Udf Physical Size = 6136567808 Comment = CCCOMA_X64FRE_DE-DE_DV9 Cluster Size = 2048 Created = 2022-09-09 02:00:00 Everything is Ok Folders: 85 Files: 906 Size: 6131128530 Compressed: 6136567808 ========================================================== checking install.wim filesize, when <4GB the script will be aborted... ========================================================== ========================================================== Install.wim is larger than 4GB, continuing splitting the wim file... ========================================================== ========================================================== Optimizing Boot.wim... ========================================================== "ISO\Sources\boot.wim" original size: 675741 KiB Using LZX compression with 16 threads Archiving file data: 1104 MiB of 1104 MiB (100%) done "ISO\Sources\boot.wim" optimized size: 449170 KiB Space saved: 226570 KiB ========================================================== Optimizing Install.wim... ========================================================== "ISO\Sources\install.wim" original size: 5040198 KiB Using LZX compression with 16 threads Archiving file data: 10 GiB of 10 GiB (100%) done "ISO\Sources\install.wim" optimized size: 5004900 KiB Space saved: 35297 KiB ========================================================== Splitting install.wim to multiple 3500MB install.swm files... ========================================================== Splitting WIM: 4884 MiB of 4884 MiB (100%) written, part 2 of 2 Finished splitting "ISO\Sources\install.wim" ========================================================== Deleting install.wim... ========================================================== ========================================================== Creating ISO... ========================================================== OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility Copyright (C) Microsoft, 1993-2012. All rights reserved. Licensed only for producing Microsoft authorized content. Scanning source tree (500 files in 41 directories) Scanning source tree complete (907 files in 86 directories) Computing directory information complete Image file is 5866422272 bytes (before optimization) Writing 907 files in 86 directories to de-de_windows_10_consumer_editions_version_22h2_x64_dvd_ac60ae62_SWM_2022_10_23.ISO 100% complete Storage optimization saved 24 files, 14176256 bytes (1% of image) After optimization, image file is 5854318592 bytes Space saved because of embedding, sparseness or optimization = 14176256 Done. ========================================================== Now you have time to copy the content of the ISO folder to a FAT32 formatted USB key, when done copying, press any key to cleanup the ISO folder. ========================================================== Press any key to continue . . . Code: ========================================================= Create ISO with compressed install.esd or multiple 3500MB install.swm v2.0 ========================================================= ========================================================== Select the compression type for the "Install" file ========================================================== [ 1 ] - ESD File - Smaller install file, longer creation. [ 2 ] - SWM File - Multiple split wim files. ========================================================== * Type your option and press Enter: 2 ========================================================== Creating ISO folder... ========================================================== ========================================================== Extracting ISO to ISO folder... ========================================================== 7-Zip 21.07 (x86) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26 Scanning the drive for archives: 1 file, 3577901056 bytes (3413 MiB) Extracting archive: Source_ISO\en_windows_10_enterprise_2016_ltsb_x64_dvd_9059483.iso -- Path = Source_ISO\en_windows_10_enterprise_2016_ltsb_x64_dvd_9059483.iso Type = Udf Physical Size = 3577901056 Comment = CES_X64FREV_EN-US_DV5 Cluster Size = 2048 Created = 2016-07-16 16:31:30 Everything is Ok Folders: 96 Files: 987 Size: 3572824357 Compressed: 3577901056 ========================================================== checking install.wim filesize, when <4GB the script will be aborted... ========================================================== ========================================================== The install.wim filesize is <4GB, aborting the script... ========================================================== ========================================================== Cleaning up ISO folder... ========================================================== Press any key to continue . . . Code: ========================================================= Create ISO with compressed install.esd or multiple 3500MB install.swm v2.0 ========================================================= ========================================================== Select the compression type for the "Install" file ========================================================== [ 1 ] - ESD File - Smaller install file, longer creation. [ 2 ] - SWM File - Multiple split wim files. ========================================================== * Type your option and press Enter: 1 ========================================================== Creating ISO folder... ========================================================== ========================================================== Extracting ISO to ISO folder... ========================================================== 7-Zip 21.07 (x86) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26 Scanning the drive for archives: 1 file, 3577901056 bytes (3413 MiB) Extracting archive: Source_ISO\en_windows_10_enterprise_2016_ltsb_x64_dvd_9059483.iso -- Path = Source_ISO\en_windows_10_enterprise_2016_ltsb_x64_dvd_9059483.iso Type = Udf Physical Size = 3577901056 Comment = CES_X64FREV_EN-US_DV5 Cluster Size = 2048 Created = 2016-07-16 16:31:30 Everything is Ok Folders: 96 Files: 987 Size: 3572824357 Compressed: 3577901056 ========================================================== Compressing install.wim to install.esd with LZMS compression This can take some time, depending on the hardware and used source ISO! ========================================================== Using LZMS compression with 16 threads Archiving file data: 6025 MiB of 6025 MiB (100%) done ========================================================== Deleting install.wim... ========================================================== ========================================================== Creating ISO... ========================================================== OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility Copyright (C) Microsoft, 1993-2012. All rights reserved. Licensed only for producing Microsoft authorized content. Scanning source tree (500 files in 13 directories) Scanning source tree complete (987 files in 97 directories) Computing directory information complete Image file is 2815393792 bytes (before optimization) Writing 987 files in 97 directories to en_windows_10_enterprise_2016_ltsb_x64_dvd_9059483_ESD_2022_10_23.ISO 100% complete Storage optimization saved 11 files, 667648 bytes (0% of image) After optimization, image file is 2816968704 bytes Space saved because of embedding, sparseness or optimization = 667648 Done. ========================================================== Now you have time to copy the content of the ISO folder to a FAT32 formatted USB key, when done copying, press any key to cleanup the ISO folder. ========================================================== Press any key to continue . . .
A small query, will this tool's swm output work with ex-FAT for larger than 32GB flash drives. @Enthousiast
What would be the relation there? The split wim option is to meet the max. filesize limit from FAT32, if exfat has another lower limit then set it to that limit but exfat can be used for bootable windows USBs?
Only getting NTFS & ex-FAT for my 64gb flash drive. Also, my main purpose is to make a bootable win 11 flash drive without using any 3rd party tool like rufus which can install win 11 on a laptop with full UEFI no csm only secure boot enabled option.
Got the HP USB Disk Storage Format tool which turned out I had a copy in old downloads folder since 2016. Anyway I will first try with NTFS to see if my laptop will allow uefi boot from it with no CSM & secure boot enabled & if not then will try fat32 way. I will update my findings here in next few hours.