Jump to content

disable System Restore during install?


Recommended Posts

@rockstarjeremy :

Thanks for that code ! I really like to solve stuff via vbs, i don't have to use any

3rd party application to automate stuff for me (yes i know about AutoIt and others,

i'm just trying to use all the native support i can get).

BTW: Do you know a good tutorial/faq about use of WMI under VBS ? There's

a lot of useful things that can be done (mainly reading system performance

counters) for various pieces of hardware. I've managed to rip vbs script that uses

WMI to access a wireless NIC (read-only) and have re-wrote it to work as

standalone script.

Link to comment
Share on other sites


I use this in my cmdlines.txt

; Disable System Restore Service
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\srservice]
"Start"=dword:00000004

Of course that is in a .reg file that is called from cmdlines.txt,

Be sure to add the following command to your CMDLINES.TXT (either before or after the .reg file import...doesn't matter)

NET STOP "System Restore Service"

That will stop the service. Just disabling the service will leave it running until the next reboot or until it's been manually stopped either in the Services MMC or with the command above.

Edited by nmX.Memnoch
Link to comment
Share on other sites

winnt.sif method works fine and really easy to do:

[systemRestore]    DisableSR=1

    CreateFirstRunRp=0

And in my regfile (cmdlines.txt) I also add the regkey for stopping the SR service.

That's it at least for me.....

Link to comment
Share on other sites

  • 3 weeks later...

Ok here's my method....

CDXP

--$OEM$

----cmdlines.txt

----cmdlines.reg

---$OEM$

-----------$1

--------------install

--------------RunOnceEx.cmd

--I386

----winnt.sif

1. In cmdlines.reg i put ALL my tweak, including off course the "Stop System Restore Service":

; Desactivation of System Restore Service

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\srservice]"Start"=dword:00000004

2. In cmdlines.txt i put this line:

[COMMANDS]

"REGEDIT /S cmdlines.reg"

3. In my RunOnceEx.cmd I import a second time my reg tweak:

REG ADD %KEY%\055 /VE /D "Configuration de Windows XP" /f

REG ADD %KEY%\055 /V 1 /D "regedit /s %cdrom%\SETUP\SOFT\Regtweak.reg" /f

Obviously this regtweak.reg contains also the strop SR tweak:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\srservice]

"Start"=dword:00000004

4. Into winnt.sif put these line:

[systemRestore]

DisableSR=1

CreateFirstRunRp=0

Here' a little part of my winnt.sif for example:

[GuiUnattended]AdminPassword=

EncryptedAdminPassword=No

OEMSkipRegional=1

OEMSkipWelcome=1

TimeZone=105

[userData]

ComputerName="PC-BUREAU"

FullName="Proprietaire"

OrgName="/"

ProductKey=your serial num here.

[Display]

BitsPerPel=16

Xresolution=1024

YResolution=768

Vrefresh=75

[systemRestore]

DisableSR=1

CreateFirstRunRp=0

[TapiLocation]

CountryCode=33

Dialing=Tone

[RegionalSettings]

InputLocale=040c:0000040c

LanguageGroup=1

Language=0000040c

UserLocale=0000040c

[identification]

JoinWorkgroup=WORKGROUP

[Networking]

InstallDefaultComponents=Yes

that's it, and its works fine ^^

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