Win10+ Setup Disk (Works with UEFI Secure Boot / BIOS / Install.wim over 4 GB)

Discussion in 'Scripting' started by freddie-o, Mar 21, 2019.

  1. shhnedo

    shhnedo MDL Expert

    Mar 20, 2011
    1,837
    2,447
    60
    @freddie-o well, x86 and x64 separate isos are both fine, they have the usual structure where you got a sources folder with boot.wim and install.wim. The isos I'm referring to are the ones that have an x64 and x86 folders in the root, which respectively contain... well... basically an x64 and x86 iso in them. In that regard I can see how the script wouldn't work based on just iso folder structure. After that I'm absolutely clueless. :)
     
  2. snofte

    snofte MDL Member

    Jan 10, 2013
    169
    30
    10
    Having trouble using this script.
    Generated a usb-stick using this script.
    Selected a win11FIXED iso.
    This iso is produced by the MDL fix-kit for bypassing legacy pc win11-blocking limitations.
    (win11 boot and upgrade fix-kit ver. 3.0).
    This iso works fine for upgrading legacy pcs from win 10 to win 11.
    (that is, an update of drivers are needed beforehand) .
    Now I wanted to generate a bootable usb-stick with this iso on it.
    To be used for clean installs on blank disk.
    The script runs fine, finished ok.
    Booting the usb-stick, starts ok,
    selecting clean install of win11pro, works for a while, win11-windows-logo displays, but after a restert,
    abort with error mess "dpc watchdog violation".
    Any hint for solving this matter ?
    regards
    snofte
     
  3. shhnedo

    shhnedo MDL Expert

    Mar 20, 2011
    1,837
    2,447
    60
    That has nothing to do with this script.
     
  4. freddie-o

    freddie-o MDL Expert

    Jul 29, 2009
    1,576
    2,630
    60
    Best to ask about it in the dedicated thread
    https://forums.mydigitallife.net/threads/win-11-boot-and-upgrade-fix-kit.83724/
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. rpo

    rpo MDL Expert

    Jan 3, 2010
    1,484
    1,486
    60
    Sorry for being late. You could try Ventoy (www.ventoy.net). It creates a USB stick with 2 partitions. A 32 MB Fat partition contains what is needed for booting; You just copy your ISO images into the second exFat partition. After booting a menu allows you to chose the ISO you want to install.
     
  6. shhnedo

    shhnedo MDL Expert

    Mar 20, 2011
    1,837
    2,447
    60
    I'm already using ventoy on my own USBs. I also have one win10 setup disk personal usb that I use as a fail safe for when ventoy decides to be iffy. Also, all the win10/11 USBs at work are also made using win10 setup disk. I was just wondering if I could make a USB with an x86+x64 iso.
     
  7. pm67310

    pm67310 MDL Guru

    Sep 6, 2011
    3,419
    2,603
    120
    ventoy are uefi and secure boot / and legacy capable
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. rpo

    rpo MDL Expert

    Jan 3, 2010
    1,484
    1,486
    60
    It is possible to create a WinPE combining X86 and X64 and copy it to a 1 GB fat32 active partition. Format the remaining space of the usb disk as exFAT and copy the contents of the X86 and x64 to their respective folders (for example x86 and X64). During the Winpe creation, modify the startnet. cmd file in order it can detect the folders x86 and x84 and execute setup.exe.
     
  9. rpo

    rpo MDL Expert

    Jan 3, 2010
    1,484
    1,486
    60
    Two (minor) modifications to the script :
    When executing robocopy where the source is a mounted iso image, the files attributs are set to read only for the target files and this was the cause of difficulties when execiting bcdedit. The work arround is to add the /a-:R parameter to teh robocopy statements. Hence the script is cleaner.
    To initialize the usb disk, the first action is to invoque the disk management cmdlets; if they fail, diskpart is executed.
    The new version can be found here : https://drive.google.com/file/d/1cmyMICqe9C-yldgMC8-OqaJRWllsD8uM/view?usp=share_link
     
  10. freddie-o

    freddie-o MDL Expert

    Jul 29, 2009
    1,576
    2,630
    60
    Updated to v2.8
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. dNz

    dNz MDL Novice

    Jun 14, 2010
    15
    10
    0
    Hey, thanks for this, is it up to date ? to use it with win 11 ltsc just rleased
     
  12. freddie-o

    freddie-o MDL Expert

    Jul 29, 2009
    1,576
    2,630
    60
    #392 freddie-o, May 25, 2024
    Last edited: May 25, 2024
    (OP)
    It will work with Windows 11 LTSC.

     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. kyrcy

    kyrcy MDL Member

    Feb 25, 2020
    235
    11
    10
    #393 kyrcy, Dec 30, 2024
    Last edited: Dec 30, 2024
    Is there a reason to use the script instead of simply extracting the contents of the ISO to an NTFS formatted USB drive and booting?
     
  14. freddie-o

    freddie-o MDL Expert

    Jul 29, 2009
    1,576
    2,630
    60
    If you're using BIOS/MBR disk you can do that
    For UEFI/GPT disk you need FAT32
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. kyrcy

    kyrcy MDL Member

    Feb 25, 2020
    235
    11
    10
    #395 kyrcy, Dec 30, 2024
    Last edited: Dec 30, 2024
    Do I need FAT32 to install on a disk with capacity of more than 2TB?
     
  16. freddie-o

    freddie-o MDL Expert

    Jul 29, 2009
    1,576
    2,630
    60
    #396 freddie-o, Dec 30, 2024
    Last edited: Dec 30, 2024
    (OP)
    From what I've read the limit for FAT32 volume size 2TB
    Plus the maximum possible file size is 4 GB
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. kyrcy

    kyrcy MDL Member

    Feb 25, 2020
    235
    11
    10
    #397 kyrcy, Dec 30, 2024
    Last edited: Dec 30, 2024
    What I am asking is why do I need FAT32 for UEFI/GPT disk?
     
  18. freddie-o

    freddie-o MDL Expert

    Jul 29, 2009
    1,576
    2,630
    60
    For one, if you have Secure boot enabled, you won't have to disable it first temporarily to install Windows
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. kyrcy

    kyrcy MDL Member

    Feb 25, 2020
    235
    11
    10
    I don't, but I would still like to know under what scenario could I use the script.
     
  20. freddie-o

    freddie-o MDL Expert

    Jul 29, 2009
    1,576
    2,630
    60
    I just told you. Read the OP.
    If it doesn't apply to your scenario then you don't need the script
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...