Unattend installation + /NoReboot


c7aesa7r

Member
Local time
8:45 AM
Posts
9
OS
Win11
Is it possible to have an unattend installation and force the setup to not reboot after the installation finishes?

I tried addin a setupconfig.ini to the setup.exe folder with
INI:
[SetupConfig]
NoReboot=1
But it still reboots.

Also tried modifying the autoruninfo file:
INI:
[AutoRun.Amd64]
open=setup.exe /NoReboot /Unattend:D:\notautounattend.xml
icon=setup.exe,0

[AutoRun]
open=sources\SetupError.exe x64
icon=sources\SetupError.exe,0
But it doesnt start the unattended installation.

I'm trying to have the unattended installation being auto executed as usually but at that point stop it from rebooting.
 

Attachments

  • vmware_aRd3DaKD4x.webp
    vmware_aRd3DaKD4x.webp
    7.2 KB · Views: 1

My Computer

System One

  • OS
    Win11
    Computer type
    PC/Desktop
    Manufacturer/Model
    23H2 22631
    CPU
    i9 9900k
/NoReboot option only applies to in-place Windows upgrades, it doesn't work for a clean install. You can't have unattended installs stop at the end of WinPE, since that's only the 1st phase of Windows installation.

In order to stop at the same point without rebooting, you would have to make a custom WinPE which does the same things:

1. Partition the target disk with diskpart, and format as needed.
2. Copy the bootfiles to the target disk.
3. Extract the install image using DISM /Apply-Image.
4. Add any drivers using DISM /Add-Driver.
5. Run bcdboot to make the installed image the default boot disk.

By following those steps, you're repeating most of what WinPE does before the first reboot. The reboot is hard-coded into setup.exe, so the only way to avoid it is to script WinPE yourself.

Here are two examples:
 

My Computer

System One

  • OS
    Windows 7
  • Like
Reactions: OAT

Latest Support Threads

Back
Top Bottom