At least one appreciates that share The one who asked for it has not been here for 12 days now.... since his request.
OP: https://forums.mydigitallife.net/threads/murphy78-diskpart-and-apply-image-script.53532/ Has a v.1.4 of the Diskpart and Apply Image script. The main feature is a customizable recovery partition, however I spent most of my time on win7 source iso compatibility and multi-language source iso compatibility + testing and bug fixing. Take note that I have changed the script name from menu.cmd to dascript.cmd Spoiler
Noticed a bug. I don't know how long this has existed. Perhaps this was just introduced with 1.4 It occurs when in UEFI mode and disabling the recovery partition. Then if you go into manual setup where you select partition size to maximum, it gives an error with diskpart. It doesn't give an error when using fast install and I didn't mess with other settings. I'm not going to mess with it today as I had a busy day. I'm just letting people know that I'm aware of the issue and I'll be working on it soon.
I seem to have isolated the issue. It was as I suspected. I'm just going to fix this issue of the disabled recovery partition in UEFI boot as it pertains to manual partition setups and test the manual setups in a bunch of various other methods to make sure everything is working correctly in both UEFI and bios boot before I release a 1.4.1 fix. It was a very short 2 line fix but I want to make sure that everything is supposedly working correctly. Edit: Found another bug where UEFI multiboot was incorrectly trying to create more than one recovery partition.
Uploaded two new files. One is the bugfix for the recovery partition errors discovered in manual setup and multi-boot. That is a v1.4.1. I have also uploaded a compilation that includes everything from 1.2.8 to 1.4.1. I will try to do this every time I update the Diskpart-Apply image script for those who like to retain all of the versions at once. v1.4.1 Bug fixes to non-fast (Manual setup) installs when in UEFI mode. Fixed an issue where UEFI manual setup was trying to create a recovery partition when it shouldn't Also fixed a bug when multi-boot setup was not correctly disabling recovery partitions Get the File: New: Spoiler https://mir.cr/0ILB4C1U File Name: murphy78-Diskpart-Apply-v1.4.1.zip File Size: 9.50 MB SHA1: DE4FBF36ABD11D23E4C8A383708523AE9D27484B File type: zip/pw PW: MDL2025 Compilation: Spoiler https://mir.cr/0XBN9FF9 File Name: murphy78-Diskpart-Apply-Script_v1.2.8-to-v1.4.1-compilation.zip File Size: 36.4 MB SHA1: 2D8B0C6EC3BE7ED79FB2348F6A481C6AA810E4CB File type: zip/pw PW: MDL2025 Links are also on the original post: https://forums.mydigitallife.net/threads/murphy78-diskpart-and-apply-image-script.53532/
Tinkering with the script. Thinking about doing an overhaul of sorts. Every time I touch something I'm reminded of why it's so complicated in the first place. I made some dumb extra variable because I had to spread some other function across multiple other functions. This just proves how necessary it is to redo this thing if someone else is going to be able to take it and work with it whenever I stop someday though. It needs to be organized, simple, and everything needs to be in the right place, unlike now. It really would be a lot easier if this were C code or something and I could call functions rather than using GOTO commands. Hmm... This may take quite a while before a 1.5 comes out.
I have gone through the script making notes and contemplated changing a few things here or there. I have basically a heavily annotated version of 1.4.1 that helped me realize some flaws as well as some changes I wanted to make to the Diskpart Apply Image Script. These won't be feature additions. Mostly these will be consolidations and cleanup of the script. I have already gone through and changed notes to REM lines and moved UEFI recovery partition to the initialization section. Next I'm going to move the Image list creation to just before the Image List display portion and start working on consolidating all of the various winre, nosyspart, and 0 recovery partition size options. The idea being that regardless of whether or not you are using UEFI or BIOS boot, there will be a single option to disable the large extra recovery/system partition. I will stop there for a version 1.4.2 and I will probably be working on that for quite a while as those variables are tangled all over the script. It will take quite a lot of untangling and testing. After that I plan to continue to simplify and cleanup the script. That means only including REM notes where it is important for someone who needs to edit the script, such as with my famous "REM Don't use nested SET /P command, use goto: with errorlevel to avoid if desired" Excessive notes make the script too long and I feel like I'm too verbose when I start on them. I also want to group similar functions and commands such that they are executed in order if at all possible. Previously, I might set a variable and use if and GOTO commands. While that might still happen, having them right next to each other makes it easier for someone to come along and edit I plan on working on decent amounts of this stuff at a time and testing to make sure everything is still working as I go. Hopefully, with lesser increments, by the time 1.5 rolls around, the script is fully overhauled and cleaned up.
I have an update to v1.4.2 These changes are part of the incremental cleanup process and will mostly not contain feature upgrades. It's a bit hard to articulate the cleanup process as it's mostly removing an unnecessary line here or reordering a line of code there. The major changes of this particular update are the consolidation of WINRE / NOSYSPART / and 0 custom recovery partition size options Now the script simply uses the Custom Recovery Partition Size option to determine if someone wants to disable the extra partition or not. I also increased the UEFI's GPT EFI partition size from 100mb to Microsoft's recommended 200mb. While most people won't run into this issue, some who dual boot with Linux, might with the old default of 100mb. I will edit the OP with new screenshots and relevant info when I finish the whole script overhaul. Changelog v1.4.2: UEFI EFI partition size change from 100mb to 200mb Colon comments changed to REM comments Consolidated No System Partition Option (NOSYSPART=1) with Custom Recovery Partition Size 0 option (ENABLERECPART=0) Consolidated Winre copy Option (WINRE=1) with Custom Recovery Partition Size 0 option (ENABLERECPART=0) Minor cleanup of a few function echo user displays and script comments Get the File: New: Spoiler https://mir.cr/1PITU2RB File Name: murphy78-Diskpart-Apply-v1.4.2.zip File Size: 9.50 MB SHA1: 8A910BBE9245F4C0281E80DDEE0BFB546C1F7F0F File type: zip/pw PW: MDL2025 Compilation: Spoiler https://mir.cr/RQ5KPMAW File Name: murphy78-Diskpart-Apply-Script_v1.2.8-to-v1.4.2-compilation.zip File Size: 41.1 MB SHA1: 87D54397BF6935DA0ED090D565F7CDF53BE27884 File type: zip/pw PW: MDL2025
thanks @murphy78, I use this tool you created as a mandatory tool for all ISOs I use. ---update-- @murphy78 I found your script stuck if wmic is not installed. maybe this needs to be fixed.