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

Discussion in 'MDL Projects and Applications' started by rpo, Mar 18, 2019.

  1. vigipirate

    vigipirate MDL Senior Member

    Feb 24, 2011
    402
    100
    10
    hello need your help
    I copy iso windows 7 x64 on cle usb launches your script
    Win10 Installation Disk [UEFI or BIOS / UEFI with Secure Boot / Install.wim over 4GB
    no problem at the bot of the usb key in Mbr I have the launch of windows but at the moment to install windows it mes me a window and asks
    A Media Driver Your Computer Needs "or" Error Message "A Required CD / DVD Drive Device Driver Is Missing" When You Install Windows

    with rufus I'm not that problem
    thanks for your or modify your script
     
  2. coleoptere2007

    coleoptere2007 MDL Guru

    Apr 8, 2008
    3,302
    1,939
    120
    As indicated in the title "Windows 10 installation......." :rolleyes:
     
  3. freddie-o

    freddie-o MDL Expert

    Jul 29, 2009
    1,605
    2,676
    60

    This may help
    How to install Windows 7 from a USB 3.0 Thumb Drive (FAST installation!)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. rpo

    rpo MDL Expert

    Jan 3, 2010
    1,503
    1,512
    60
    When you mount an unformated usb stick, you have no drive letter at all.
     
  5. rpo

    rpo MDL Expert

    Jan 3, 2010
    1,503
    1,512
    60
    As explained in a previous post, the script creates two partitions on a usb stick. This is not available with windows 7. And btw the script "mounts" an iso file : afaik this is only possible starting with windows 8. Why complicate your life? install.wim for windows 7 should not exceed 4 Gbytes. Just format your usb stick as fat32 and copy your W7 files to it. Make sure the fat32 partition is marked active when booting on a legacy mbr system; no need for rufus.
     
  6. freddie-o

    freddie-o MDL Expert

    Jul 29, 2009
    1,605
    2,676
    60
    Is there a problem with the present script?

    Code:
    Foreach ($USBDisk in $Disks) {
        $FriendlyName=($USBDisk.FriendlyName).PadRight(40," ").substring(0,39)
        $USBDisks+=$USBDisk.DiskNumber
        $USBDiskList.Items.Add(("{0,-39}{1:n2} GB" -f $FriendlyName,($USBDisk.Size/1GB)))|out-null
        $Partitions = Get-Partition | Where-Object { $_.DiskNumber -eq $USBDisk.DiskNumber}
        If ($Partitions) {
            Foreach ($Partition in $Partitions) {
            $Volumes=get-volume | Where-Object {$Partition.AccessPaths -contains  $_.path }
                Foreach ($Volume in $Volumes) {
                    $USBDisks+=$USBDisk.DiskNumber
                    $USBDiskList.Items.Add(("{0,-2}({1,1}:){2,-31}[{3:n2} GB]" -f " ", ($Partition.DriveLetter), $Volume.FileSystemLabel.PadRight(25," ").substring(0,25), ($Partition.Size/1GB)))|out-null
                }
            }
        }
    }
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. rpo

    rpo MDL Expert

    Jan 3, 2010
    1,503
    1,512
    60
    No problem at all.
     
  8. freddie-o

    freddie-o MDL Expert

    Jul 29, 2009
    1,605
    2,676
    60
    why do we need to replace it then, when the output is better?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. rpo

    rpo MDL Expert

    Jan 3, 2010
    1,503
    1,512
    60
    You don't need to replace it, i'm not sectariant; the output is not better : it's only a matter of taste!
     
  10. freddie-o

    freddie-o MDL Expert

    Jul 29, 2009
    1,605
    2,676
    60
    This is the reason I stuck to a monospaced font for the drop down list... the output is better.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. rpo

    rpo MDL Expert

    Jan 3, 2010
    1,503
    1,512
    60
    Yes, I know...

     
  12. uffbros

    uffbros MDL Senior Member

    Aug 9, 2010
    455
    59
    10
    @freddie-o ...Your download link says 404 not found if you want to fix it. Thanks. Love this script.
     
  13. freddie-o

    freddie-o MDL Expert

    Jul 29, 2009
    1,605
    2,676
    60
    #253 freddie-o, Oct 15, 2019
    Last edited: Oct 16, 2019
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. coleoptere2007

    coleoptere2007 MDL Guru

    Apr 8, 2008
    3,302
    1,939
    120
  15. freddie-o

    freddie-o MDL Expert

    Jul 29, 2009
    1,605
    2,676
    60
    If you mean you will create... sure. Thanks. :D Post them and I'll add them to the OP.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. freddie-o

    freddie-o MDL Expert

    Jul 29, 2009
    1,605
    2,676
    60
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. TheCollDude489

    TheCollDude489 MDL Member

    Apr 16, 2018
    147
    32
    10
    Is it better to use this script to create a Windows 10 Installation disk than other tools like Rufus?
     
  18. freddie-o

    freddie-o MDL Expert

    Jul 29, 2009
    1,605
    2,676
    60
    #258 freddie-o, Oct 19, 2019
    Last edited: Oct 19, 2019
    The only advantage I know of with this script is, if your PC is on UEFI with Secure Boot, you don't need to temporarily disable Secure boot during installation.

    But
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. freddie-o

    freddie-o MDL Expert

    Jul 29, 2009
    1,605
    2,676
    60
    #259 freddie-o, Oct 19, 2019
    Last edited: Oct 19, 2019
    Personally, I use Win10XPE. Because I can do more in a WinPE environment. Install Windows, create and restore backup Images of my OSes, Disk partitioning/management, etc.

    I don't even use a USB disk to boot into WinPE. I just boot from a separate partition in my harddisk and use EasyBCD to add the boot.wim to the BCD store.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  20. rpo

    rpo MDL Expert

    Jan 3, 2010
    1,503
    1,512
    60
    Yes, booting boot from a separate partition in your harddisk is a good idea because booting from a usb stick requires that you enter the boot menu and takes time. Do you just copy the content of the iso image? Or just the content of the sources directory?