auto start windows install when USB has multiple partitions

Page 1 of 2 12 LastLast

  1. Posts : 16
    Windows 10
       #1

    auto start windows install when USB has multiple partitions


    i am planning to automate windows installation using answer autounattend.xml. i have used system manager for this and i am successful in it.
    however my USB has two partitions one 2 GB FAT32 partition and other NTFS partition with remaining size. i use 64 gb USB drive.
    when i boot from USB, it stops at WINPE screen. to start the install process i have to manually navigate to other partition and type setup.exe. then install completes automatically without any intervention.
    any help on how to automate this process is much appreciated.
      My Computer


  2. Posts : 4,094
    Windows 7 HP 64 - Windows 10 Pro - Lubuntu
       #2

    How did you created the Win 10 installation drive with two partitions?
    Is the source the Win 10 iso?
    Is the Win PE the same from Win 10 iso?

    Do you want that, once booted from the installation drive, it begins installation without intervention?
      My Computers


  3. Posts : 16
    Windows 10
    Thread Starter
       #3

    i cannot start installation autoamtiocally once i boot to PE. i have to navigate to other parition where exed file is available and launch it manually
    diskpart
    list disk <to get disk number of USB drive>
    Select Disk <disk number from list disk above>
    clean
    Create part pri size=2048
    select partition 1
    active
    Format quick fs=fat32 label=win10 boot files
    assign
    Create part pri
    select partition 2
    Format quick fs=ntfs label=win10iso exe files
    assign
    exit

    Safely eject USB stick from windows system tray and reinsert

    - Copy the content of boot files to the root of the smaller drive just created (the 2Gb drive)
    - Copy the content of extracted files to the root of the larger drive just created

    basically boot files are repeated in both partitions... As my USB drive is more than 32 GB, i dont have other options
      My Computer


  4. Posts : 7,484
    Windows 10 Home 20H2
       #4

    sandeepshekar said:
    i have to navigate to other parition where exed file is available and launch it manually
    Use a CMD script to launch it automatically. When my WinPE starts, a CMD script will be run automatically. You have to find out how to make your WinPE run a script automatically at startup. My Chinese WinPE was created by WimBuilder2: 你好, WimBuilder 世界




    Before I created my WinPE, I put a CMD script into the following folder:
    \Projects\WIN10XPE\_CustomFiles_\PEMaterial\Autoruns\Startup\

    The CMD script will then run a VBScript file, which can be modified at will because it is not in boot.wim. The CMD script can find out the correct partition containing the VBScript file.
    Last edited by Matthew Wai; 18 Jul 2020 at 02:22.
      My Computer


  5. Posts : 16
    Windows 10
    Thread Starter
       #5

    i cannot use third part tools. is there something with dism i can use...because of 2 partitions, i have 2 boot.wim files. one to boot and another one in full package of windows 10 iso. apart from this method, any other way ?
      My Computer


  6. Posts : 7,484
    Windows 10 Home 20H2
       #6

    sandeepshekar said:
    i cannot use third part tools.
    A CMD script is not a third-party tool. A script is a file which you can modify at will. If you cannot modify it, I can do it for you.
      My Computer


  7. Posts : 4,094
    Windows 7 HP 64 - Windows 10 Pro - Lubuntu
       #7

    Why do you create two partitions, one to boot and another to have the installation? Is because Install.wim is bigger than 4G?

    You can split install.wim into smaller install.swm files, create only one Fat32 partition, boot from it and run setup automatically. To make setup run automatically you must use DISM to modify boot.wim.
      My Computers


  8. Posts : 7,484
    Windows 10 Home 20H2
       #8

    My boot.wim has the following CMD script:

    J:\sources\boot.wim\PEMaterial\Autoruns\Startup\$_Matthew.cmd

    It will be run automatically at Windows PE startup.
      My Computer


  9. Posts : 4,094
    Windows 7 HP 64 - Windows 10 Pro - Lubuntu
       #9

    Matthew Wai said:
    My boot.wim has the following CMD script:

    J:\sources\boot.wim\PEMaterial\Autoruns\Startup\$_Matthew.cmd

    It will be run automatically at Windows PE startup.
    Matthew Wai, That's new for me. Boot.wim is a file, not a folder. How does it has sub folders (\PEMaterial\Autoruns\Startup)?
      My Computers


  10. Posts : 7,484
    Windows 10 Home 20H2
       #10

    See below:

    auto start windows install when USB has multiple partitions-boot-wim.jpg

    The following is my Chinese Windows PE USB device:

    auto start windows install when USB has multiple partitions-windows-pe.jpg
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 19:34.
Find Us




Windows 10 Forums