Jump to content
Sign in to follow this  

Unattended install i386 with AutoIT

Recommended Posts


Hi everyone.

Recently been trying to incorporate the i386 folder copy and recovery console installation into my AutoIT project. I'm just wondering if anyone has any ideas if the following is correct as i'm currently having issues.

I currently have the following in my setup.exe AutoIT script


the code above runs the i386.bat file which is copied to the location during windows installation via the %OEM%\$$\RunOnce\I386 folder on the disk

the i386.bat file will run the following:

reg query HKLM\Software\Microsoft\Windows\CurrentVersion\Setup /v "SourcePath" > %systemroot%\temp.txt
for /f "tokens=3 skip=2" %%i in (%systemroot%\temp.txt) do set CDROM=%%i
ECHO Please wait, Recovery Console is being installed locally.
%CDROM%\i386\winnt32.exe /dudisable /cmdcons /unattend
md %systemdrive%\i386
ECHO Please wait, source files are being copied.  This may take several minutes.
xcopy /Y /e %CDROM%\i386\*.* %systemdrive%\i386\
ECHO Adding registry entries.
regedit.exe /s %systemroot%\RunOnce\I386\i386.reg
ECHO Done.

and the i386.reg contains the following:


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion]

All of this runs via my winnt.sif file. The setup.exe file runs fine as I install software automated with my script which I compiled with AutoIT, I have the setup.exe within my GUIRUNONCE. But I'm just trying to add the above to the current working setup.exe script without much success for some reason.

Just not sure why the above doesn't work. Hope someone can help. Thanks

Edited by jben

Share this post

Link to post
Share on other sites

I didn't think that you could use %systemroot% unless you make some modifications which it looks like you started to do, it looks like your missing some registry keys at a glance. see here for more info MSFN Forums maybe it will help

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this