It runs just fine on Win10 with nearly identical autounattend.xml.
I added `00. Setup 1.bat` via Post-Setup > After-logon. Result = nothing.
So then I tried RunOnce. Result = nothing.
Edit: The Start menu popping up on first logon isn't the the problem, is it? When it pops up, it seems like it REALLY wants attention.
00. Setup 1. bat:
RunOnce:
I added `00. Setup 1.bat` via Post-Setup > After-logon. Result = nothing.
So then I tried RunOnce. Result = nothing.
Edit: The Start menu popping up on first logon isn't the the problem, is it? When it pops up, it seems like it REALLY wants attention.
00. Setup 1. bat:
Code:
@echo off
setlocal enabledelayedexpansion
set "TAG=Setup"
set "LOGFILE=%PUBLIC%\Desktop\Setup Log.log"
set "SETUPPATH=%PUBLIC%\Desktop\Setup"
echo %TAG%: Starting setup 1...
echo !time! - %TAG%: Starting setup 1... >> "%LOGFILE%"
call :RunBat "90. Wait.bat"
call :RunBat "90. Focus.bat"
call :RunBat "01. Install.bat"
call :RunBat "02. Resolution.bat"
call :RunBat "90. Restart.bat" "00. Setup 2.bat"
goto :eof
:RunBat
set "BATFILE=%~1"
set "RUNONCEBAT=%~2"
if exist "%SETUPPATH%\%BATFILE%" (
call "%SETUPPATH%\%BATFILE%" "%RUNONCEBAT%"
)
goto :eof
RunOnce:
Code:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]
"AddRunOnce"="C:\\Users\\Public\\Desktop\\Setup\\00. Setup 1.bat"
Attachments
Last edited: