Jump to content

intergrating system restore into Win 2K3 CD?


Recommended Posts

OK guys here is what I would like to do.

I would like to intergrate the installation of the system restore ustility into my Windows 2003 Server CD

1. I have copied all of the files to the x:\i386 folder

I want to know how do I get winnt.sif to run the sr.sif file during the installation of Win 2K3

I am thinking that you just paste the contents of the sr.sif file into the Winnt.sif file before your batch files

Link to comment
Share on other sites


Do you mean sr.inf?

%SystemRoot%\System32\rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 path/to/sr.inf

replace path/to/sr.inf with necessary path

You should execute this from a batch file, save it as sr.cmd and place the path to sr.cmd from winnt.sif's GuiRunOnce

Link to comment
Share on other sites

oops yeah I meant sr.inf

Ok so when I place it into my batch file it should run without prompting for the CD\I386 since the files have been placed into the \I386 folder on the CD right?

so my path would be like this X = CD Rom drive letter

x:\I386 <- where I placed the system restore files

x:\$oem$\$1\install\SystemRestore\sr.inf

I will run

x:\$oem$\$1\install\SystemRestore.cmd

-------contents of systemrestore.cmd---------

Echo Please wait while Windows System Restore is installed...

Echo.

Echo Installing System Restore registry entries

REGEDIT /S %systemdrive%\install\SystemRestore\SystemRestore.reg

Echo.

Echo Please wait while Windows runs the System Retore setup routine.

Echo.

%SystemRoot%\System32\rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %systemdrive%\install\SystemRestore\sr.inf

Exit

--------end of contents------------------------

Now since this is all good one last question How do I prevent it from prompting for a reboot?

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...