So has anyone ever successfully got Windows 8/8.1 to work with Split WIMs?

Discussion in 'Windows 8' started by CODYQX4, Jan 17, 2016.

  1. CODYQX4

    CODYQX4 MDL Developer

    Sep 4, 2009
    4,812
    45,366
    150
    #1 CODYQX4, Jan 17, 2016
    Last edited by a moderator: Apr 20, 2017
    I have a batch file I use to make my WIMs, but with larger OS = larger WIM.

    I've been using EASY2BOOT for awhile but never actually had a UEFI machine to test with, then I learned about making IMGPTNs to boot with, ideally being FAT32.

    I was using ESDs, but my old laptop could take a real week to make one, and even the 32GB of RAM, Quad Core i7, and SSD I have can take a day of pegging the CPU at 100%. This is actually done in a Windows VM on an iMac. So, doing split WIMs means not exceeding 4GB and not taking a day per ISO.

    I recently started experimenting with RAM Disks (makes a lot of it barring the ESD part really quick). I gave a Windows 10 VM 16GB of RAM, to use 12GB of it for a RAM Disk. I had to use SoftPerfect RAM Disk because IMDisk doesn't emulate well enough for DISM to not throw a hissy fit.

    Well, here is my script. I use only MSDN ISOs, and I find their letters via label, and I use imagex to change the names,

    Code:
    @echo off
    echo Determining Drive Letters
    for /f %%A in ('wmic logicaldisk get caption^,volumename^| find "RAM Disk"') do set RAMDisk=%%A
    for /f %%B in ('wmic logicaldisk get caption^,volumename^| find "HRM_CCSA_X86FRE_EN-US_DV5"') do set Win832=%%B
    for /f %%C in ('wmic logicaldisk get caption^,volumename^| find "HRM_CENA_X86FREV_EN-US_DV5"') do set Win832E=%%C
    for /f %%D in ('wmic logicaldisk get caption^,volumename^| find "HRM_CCSA_X64FRE_EN-US_DV5"') do set Win864=%%D
    for /f %%E in ('wmic logicaldisk get caption^,volumename^| find "HRM_CENA_X64FREV_EN-US_DV5"') do set Win864E=%%E
    for /f %%F in ('wmic logicaldisk get caption^,volumename^| find "HRM_SSS_X64FREV_EN-US_DV5"') do set Server2012=%%F
    
    
    echo Creating Directories
    mkdir "%RAMDisk%\mount"
    mkdir "%RAMDisk%\Windows 8 RTM x86"
    
    
    echo Exporting Windows 8 x86 Images
    Dism /Export-Image /SourceImageFile:%Win832%\sources\install.wim /SourceIndex:2 /DestinationImageFile:"%RAMDisk%\Windows 8 RTM x86\install.wim" /compress:maximum
    Dism /Export-Image /SourceImageFile:%Win832E%\sources\install.wim /SourceIndex:1 /DestinationImageFile:"%RAMDisk%\Windows 8 RTM x86\install.wim" /compress:maximum
    Dism /Export-Image /SourceImageFile:%Win832%\sources\install.wim /SourceIndex:1 /DestinationImageFile:"%RAMDisk%\Windows 8 RTM x86\install.wim" /compress:maximum
    Dism /Export-Image /SourceImageFile:%Win832%\sources\install.wim /SourceIndex:1 /DestinationImageFile:"%RAMDisk%\Windows 8 RTM x86\install.wim" /compress:maximum
    
    
    echo Processing Windows 8 x86 Images (4 Images)
    for /l %%x in (1, 1, 4) do (
       echo Mounting Image %%x of 4
       Dism /mount-wim /wimfile:"%RAMDisk%\Windows 8 RTM x86\install.wim" /index:%%x /mountdir:"%RAMDisk%\mount"
    
    
       echo Installing Microsoft .NET Framework 3.5 for Image %%x of 4
       dism /image:"%RAMDisk%\mount" /enable-Feature /all /Featurename:NetFx3 /Source:%Win832%\sources\sxs
    
    
       IF "%%x" == "4" (
           echo Creating Windows 8 Pro with Media Center x86
           Dism /Image:"%RAMDisk%\mount" /Set-Edition:ProfessionalWMC
       )
    
    
       echo Unmounting Image %%x of 4
       Dism /unmount-wim /mountdir:"%RAMDisk%\mount" /commit
    )
    
    
    echo Changing Windows 8 x86 Image Names
    imagex /info "%RAMDisk%\Windows 8 RTM x86\install.wim" 1 "Windows 8 Core (x86)" "Windows 8 Core (x86)"
    imagex /info "%RAMDisk%\Windows 8 RTM x86\install.wim" 2 "Windows 8 Enterprise (x86)" "Windows 8 Enterprise (x86)"
    imagex /info "%RAMDisk%\Windows 8 RTM x86\install.wim" 3 "Windows 8 Pro (x86)" "Windows 8 Pro (x86)"
    imagex /flags "ProfessionalWMC" /info "%RAMDisk%\Windows 8 RTM x86\install.wim" 4 "Windows 8 Pro with Media Center (x86)" "Windows 8 Pro with Media Center (x86)"
    
    
    echo Splitting Windows 8 x86 Image
    Dism /Split-Image /ImageFile:"%RAMDisk%\Windows 8 RTM x86\install.wim" /SWMFile:"%RAMDisk%\Windows 8 RTM x86\install.swm" /FileSize:1000
    del /q /f "%RAMDisk%\Windows 8 RTM x86\install.wim"
    
    
    echo Cleaning Up
    rmdir /S /Q "%RAMDisk%\mount"
    pause
    
    This creates an ISO with:
    Core
    Enterprise
    Pro
    Pro with WMC

    I then take a copy of the Core/Pro MSDN image, remove the install.wim, relabel it as simply Windows 8 x86. I hear that an EI.cfg is supposed to fix the "Microsoft Licensing Terms not found" issue, but it doesn't. The ISO is fine with a WIM or an ESD but not SWM.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    5,996
    13,567
    180
    I didn't really read up your entire post but Rufus has NTFS drivers to make USB sticks UEFI compatible, obviously for wims or any file larger than 4GB, then no need to split (SWMs).
     
  3. CODYQX4

    CODYQX4 MDL Developer

    Sep 4, 2009
    4,812
    45,366
    150
    This issue seems to happen to me independent of formatting, say for example if I threw SWMs into a Windows 8 ISO and used that ISO to VM Boot.

    My USB itself is NTFS and it boots fine from UEFI.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    8,085
    26,947
    270
  5. CODYQX4

    CODYQX4 MDL Developer

    Sep 4, 2009
    4,812
    45,366
    150
  6. ashish.k

    ashish.k MDL Member

    Dec 27, 2014
    213
    103
    10
    Did you try this? murphy78 has done this successfully.
     
  7. CODYQX4

    CODYQX4 MDL Developer

    Sep 4, 2009
    4,812
    45,366
    150
    Ah, that makes possible sense.

    I'm splitting with 1GB, others were claiming 3GB splits.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. sebus

    sebus MDL Guru

    Jul 23, 2008
    5,933
    1,801
    180
    #8 sebus, Jan 17, 2016
    Last edited by a moderator: Apr 20, 2017
    Code:
    Important   Windows Setup doesn't support installing from a split .wim file for Windows 10.
    So Microsoft are lying or have no clue! They should employ murphy78 ASAP
     
  9. l33tissw00t

    l33tissw00t MDL Addicted

    Dec 6, 2012
    695
    423
    30
    Split-wim DOES work with Windows 8. You just need to get the licenses in the first part. See this from murphy - http://forums.mydigitallife.net/thr...-than-4-GB-How?p=931336&viewfull=1#post931336

    In short:
    W8 Setup looks for licenses ONLY in first WIM-part. So best practice, put all licenses in 1st index of wim, and split wim to largest size, and you're good to go :) Tried and tested by murph, myself, and i'm sure others.
     
  10. CODYQX4

    CODYQX4 MDL Developer

    Sep 4, 2009
    4,812
    45,366
    150
  11. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    6,680
    10,126
    210
    I still wonder if there's a way to fool this with the boot.wim or iso layout...
    I tried a few things, but I never really dug too far because I already had a working solution.
    I remember previous Windows versions having a licensing folder, but I think I tried that and it failed, at least during boot setup.
    I think I also tried shoving them in the boot.wim index 2, but I don't remember.

    Sadly, I've lost a lot of interest in figuring out these kinds of things since I no longer torrent.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. l33tissw00t

    l33tissw00t MDL Addicted

    Dec 6, 2012
    695
    423
    30
    Just to add, the ei.cfg that you mentioned in OP - that's added so that windows doesn't prompt for a key when installing.
     
  13. CODYQX4

    CODYQX4 MDL Developer

    Sep 4, 2009
    4,812
    45,366
    150
    Well, you weren't lying about WIMLIB. Finished Windows 8 x86 WIM using solid compression in about a half an hour.

    PS: Do you know if solid compression is valid for Vista-7? Documents call it equal to compress recovery, which came with Windows 8.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    5,996
    13,567
    180
    Yes you are thinking right. The answer is no.
     
  15. CODYQX4

    CODYQX4 MDL Developer

    Sep 4, 2009
    4,812
    45,366
    150
  16. CODYQX4

    CODYQX4 MDL Developer

    Sep 4, 2009
    4,812
    45,366
    150
  17. sebus

    sebus MDL Guru

    Jul 23, 2008
    5,933
    1,801
    180
  18. Flipp3r

    Flipp3r MDL Expert

    Feb 11, 2009
    1,544
    662
    60
    #20 Flipp3r, Jan 18, 2016
    Last edited by a moderator: Apr 20, 2017
    It is. I do all my installs from a usb3 key. It's also easy to add base drivers on the fly using dism too:
    Code:
    Dism /Image:W:\ /Add-Driver /Driver:%Drv% /Recurse /Forceunsigned
    No need to integrate any drivers to wims/esd's anymore. Easy to keep updated...