Jump to content

Unattended copy I386 Folder and install Recovery Console


Recommended Posts

Hey everyone.

Recently been browsing this post http://www.msfn.org/board/Gosh-s-Unattende...icks-t9453.html and have tried to put together a way of copying my I386 folder to %SYSTEMDRIVE%\I386

However this doesn't seem to be working for me. Anyone have any ideas what I may be doing wrong?. Thanks

in my GUIRUNONCE I have the following:

[GUIRUNONCE]
Command0="%systemroot%\RunOnce\I386\i386.bat"
%systemdrive%\Install\Setup.exe

The Setup.exe is something I want to run after the i386 folder has copied. I presume by listing this as the 2nd command that it will perform after the i386 folder has copied?...not sure as its currently not working.

I have put my i386.bat and i386.reg in %OEM%\$$\RunOnce\i386 which are the following:

I386.bat

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.

i386.reg

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup]
"SourcePath"="%systemdrive%"
"ServicePackSourcePath"="%systemdrive%"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion]
"SourcePath"="%systemdrive%\\I386"

Edited by jben
Link to comment
Share on other sites


Hi,

I believe that Windows itself will append "\386" automatically to:

HKLM\Software\Microsoft\Windows\CurrentVersion\Setup\SourcePath

when installing items after install so this might also be an issue for you.

Kind Regards

Simon

Link to comment
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...