1@echo off 2set WINETEST_DEBUG=0 3set WINETEST_PLATFORM=reactos 4 5:: On the first boot, we're started through RunOnce. 6:: Add us to the Run key, so we're also started on the next reboot in case ReactOS crashed *and* the registry has been saved. 7:: Exit right after that, because Explorer processes the Run key right after RunOnce and therefore picks up regtest.cmd a second time during the first boot. 8reg query HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v regtest 9if "%errorlevel%"=="1" ( 10 reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v regtest /t REG_SZ /d "%SystemRoot%\system32\cmd.exe /c regtest.cmd" 11 exit 0 12) 13 14move "%WINDIR%\bin\redirtest1.dll" "%WINDIR%\bin\kernel32test_versioned.dll" 15move "%WINDIR%\bin\testdata\redirtest2.dll" "%WINDIR%\bin\testdata\kernel32test_versioned.dll" 16if exist "%WINDIR%\bin\AHKAppTests.cmd" ( 17 dbgprint "Preparing AHK Application testing suite." 18 call "%WINDIR%\bin\AHKAppTests.cmd" 19 del "%WINDIR%\bin\AHKAppTests.cmd" 20) 21 22dbgprint --process "ipconfig" 23cd "%WINDIR%\bin" 24start rosautotest /r /s /n 25