jben Posted April 15, 2008 Share Posted April 15, 2008 (edited) 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%\I386However this doesn't seem to be working for me. Anyone have any ideas what I may be doing wrong?. Thanksin my GUIRUNONCE I have the following:[GUIRUNONCE]Command0="%systemroot%\RunOnce\I386\i386.bat"%systemdrive%\Install\Setup.exeThe 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.batreg query HKLM\Software\Microsoft\Windows\CurrentVersion\Setup /v "SourcePath" > %systemroot%\temp.txtfor /f "tokens=3 skip=2" %%i in (%systemroot%\temp.txt) do set CDROM=%%iECHO Please wait, Recovery Console is being installed locally.%CDROM%\i386\winnt32.exe /dudisable /cmdcons /unattendmd %systemdrive%\i386ECHO 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.regECHO 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 April 15, 2008 by jben Link to comment Share on other sites More sharing options...
PsiMoon314 Posted April 17, 2008 Share Posted April 17, 2008 Hi,I believe that Windows itself will append "\386" automatically to: HKLM\Software\Microsoft\Windows\CurrentVersion\Setup\SourcePathwhen installing items after install so this might also be an issue for you.Kind RegardsSimon Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now