jben Posted April 15, 2008 Posted April 15, 2008 (edited) 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 runwait("%systemroot%\RunOnce\I386\i386.bat") 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\CurrentVersion\Setup] "SourcePath"="%systemdrive%" "ServicePackSourcePath"="%systemdrive%" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion] "SourcePath"="%systemdrive%\\I386" 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 April 15, 2008 by jben
Legacy99 Posted April 15, 2008 Posted April 15, 2008 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
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