But for those of you who don't want to wait, here is how my own unattended setup looks like:
presetup.cmd
set tagfile=\WIN51 IF EXIST C:%tagfile% SET CDDRIVE=C: ... IF EXIST Z:%tagfile% SET CDDRIVE=Z: %systemdrive% cd %systemroot%\system32 if exist setup.exe ren setup.exe setupold.exe if exist setupORG.exe ren setupORG.exe setup.exe call %CDDRIVE%\OEM\bin\cmdlines.cmd
Not much work is done here, I just start another script from CD. This makes testing much easier in vmware, because I can do a snapshot after textmode and start from there whenever I change something, because presetup.cmd is copied to disk (so it is in the snapshot) and cmdlines.cmd comes fresh from (virtual) CD after (virtual) reboot.
So here is the real work:
cmdlines.cmd
set tagfile=\WIN51 IF EXIST C:%tagfile% SET CDDRIVE=C: ... IF EXIST Z:%tagfile% SET CDDRIVE=Z: REM uncompressing drivers %SystemDrive% cd \ %CDDRIVE%\OEM\bin\7za.exe x -y -aoa %CDDRIVE%\OEM\drivers.7z REM Adjusting DevicePath %CDDRIVE%\OEM\bin\SetDevicePath.exe %SystemDrive%\drivers REM Uncompressing additional stuff (OEMLogo, some reskit tools, etc.) cd %SystemRoot%\system32 %CDDRIVE%\OEM\bin\7za.exe x -y -aoa %CDDRIVE%\OEM\data\System32.7z REM Automating GUIMode Setup start %CDDRIVE%\OEM\bin\AutoIt.exe %CDDRIVE%\OEM\bin\guiinstall.aut REM Preparing t-13 install SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx REG ADD %KEY%\998 /V 1 /D "%CDDRIVE%\OEM\bin\quietex.exe %CDDRIVE%\OEM\bin\t-13_install.cmd" /f REM Preparing postinstall REG ADD %KEY%\999 /V 1 /D "REG ADD %KEY%\zzz999 /V 1 /D %CDDRIVE%\OEM\bin\postinstall.cmd /f" /f REM Starting regular Setup start /WAIT setup.exe -newsetup
So you see it is not that different from my original work, just some adjustments.
Hope it helps!
--
Pyron



Help

Back to top









