Customizing Windows 10 setup disc
I was able to resolve the issue. Such a newb problem. For some reason, NTLite mounted the WIM file, created an ISO image and saved the ISO image within the WIM file. This was the source of the bloated disc. I found that out when I went and fixed the blank system properties and recreated a new WIM file. The previous WIM was 13 GB about and I mounted it, found the ISO so I just tossed that out since I made a new clean one. It obviously won't fit on a single layer DVD, but fits nicely on my dual layer, or on a large enough USB drive if that's your thing.
If anyone wants a copy of the standalone PRO or HOME version or the PRO and HOME version, let me know and I will figure a way to upload it. There is no activation key or license to it so there should not be an issue with that.
There a couple caveats... some of the Windows 7 feel and the Windows 9 branding will revert to Windows 10 after updating, AeroGlass will need to be updated as Windows is updated, and that will bring back the watermark in the PRO version. The HOME version already has the watermark as I did not care to go through the effort to clear that this time around.
To update AeroGlass, just download the correct version at glass8.eu. If you want to get rid of the watermark, you could donate to the author and get a key you save to the AeroGlass folder. The other thing to note is that AeroGlass will nag you every startup if you want to copy the machine code. You need that code to download the donation key to deactivate the nag and the watermark.
Anyway, it has been an adventure, that's for sure and it was interesting how this came together and glad to have Windows 9 Home for my laptops now.
I want to thank Electronics Wizardy and TheDelphiDude for their assistance and giving me a start point to continue on the project. With all the research I had to do with Google searching a method to have the LayoutModification.xml work to my needs and getting the Unattend.xml file set up, it took a few days. The LayoutModification.xml file is broken for the Start menu but works for the taskbar, which is fine as I'm using Classic Shell for the Start menu anyway. If it helps anyone else, I've attached autounattend.xml (ironic since it is setup to be fully attended), Unattend.xml, and LayoutModification.xml files. The proper location that worked automatically for me is as follows:
autounattend.xml: Root of the installation folder ( / )
Unattend.xml: %systemdrive%\Windows\System32\sysprep\
LayoutModification.xml: %allusersprofile%\microsoft\windows\Shell
Once done configuration Windows with sysprep audit and have everything setup just as you like, either close the sysprep GUI and run sysprep /generailze /oobe /shutdown at a CMD prompt, or in the GUI, select OOBE, check generalize, and select shutdown. Shouldnt take long to complete.
I used VirtualBox to create my custom install. After sysprep, I created a new virtual drive, large enough to fit my WIM file and the temporary files used to build the WIM and attach to the VM. I inserted the Windows 10 disc that my Win9 build was based from and as soon as it prompts for Locale information, just press SHIFT+F10 to get the command prompt.
NOTE: drive letters do change from what they normally are within Windows!
I enter diskpart and then enter list volume to check which disk is the new one I added to the VM and then type select disk x (where x is the number provided by list volume) and from there, type create partition primary to create a usable partition. Type assign letter=Z (where Z is an available driver letter of your choice). Type exit to leave disk part and then type format Z: /q /fs:NTFS (where Z is the same drive letter assigned). Then select drive Z: by typing Z: and at the prompt, type mkdir Scratch.
Time to whip out the DISM magic. The full command entered is:
dism /capture-image /imagefile:Z:\install.wim /capturedir:D:\ /ScratchDir:Z:\Scratch /name:"Win9Home_AMD64" /compress:maximum /checkintegrity /verify /bootable
The only spaces in the above command are between the "/". Anyway, just let that run. Once completed, I simply attach a USB drive to the VM via the USB filters (the icons below the VM display) by right clicking on the USB icon and selecting the USB drive of choice. I then type copy Z:\install.wim A:\ (where A is the drive letter of your USB drive). Wait for the copy to complete and remove the USB drive from the VM.
If you haven't done so already, extract the entire Windows 10 installation to your computer, for example D:\ISO_Files\. Then copy the new WIM file from the USB drive over the original in the \Sources folder.
To create an ISO image that is correct, run Deplayment and Imaging Tools Environment as Administrator, from the Windows ADK (which needs to be at least the version Windows you are working with). type cd/ to get to the C:\ prompt. Then type the following long command (it is a single line command):
oscdimg.exe -m -o -u2 -udfver102 -bootdata:2#p0,e,bd:\iso_files\boot\etfsboot.com#pEF,e,bd:\iso_files\efi\microsoft\boot\efisys.bin d:\iso_files d:\Win9Home_AMD64.iso
The above command only has a space before each "-" and at the end, before "d:\iso_files" and again, before "d:\Win9Home_AMD64.iso". The d:\iso_files is where the extracted installation files are located and d:\Win9Home_AMD64.iso is where you want the ISO to be saved and its location.
The various switches in the command are as follows:
-m Ignores the maximum size limit of an image
-o Uses an MD5 hashing algorithm to compare files
-u2 Creates an image that only contains a UDF file system
-udver102 The image will use UDF version 1.02
-bootdata: Specifies a multi-boot image, followed with the number of entries. Uses the # symbol to
separate each boot entry.
-p Specifies the value to use for the platform ID in the El Torito catalog
EF Specifies the UEFI system in the El Torito catalog
0 Specifies the BIOS system in the El Torito catalog
-e Disables floppy disk emulation in the El Torito catalog
-b Boot sector file
bEFisys.bin is used for UEFI
bEtfsboot.com is used for BIOS
The OSCDIMG information was found from Microsoft documents:
https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/oscdimg-command-line-options
Feel free to put all this information into a clearly easy to read tutorial. Other pages used to help with this project, in no particular order are:
https://www.ntlite.com/discussions/#/discussion/1503/wim-joiner-append

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now