disable System Restore during install?
#1
Posted 08 February 2005 - 04:22 PM
Thanks in advance!
#2
Posted 08 February 2005 - 05:52 PM
Also it can be turned off in the registry through cmdlines.txt, before any restore points are created.
#5
Posted 09 February 2005 - 12:01 AM
feochango, on Feb 8 2005, 04:22 PM, said:
Thanks in advance!
Option A - Import a registry tweak at CMDLINES.TXT with the tweak to disable the service (look in the registry tweak thread or BlackViper's site)
Option B - Once finding the registry entry, open up the hive***.inf files in your I386 directory and then change the proper entry to disable it from the start.
Problem with Option B, is that Setup might reset it during setup. Problem with Option A is that it might be active untill the end of setup (not sure on this one)
#6
Posted 09 February 2005 - 11:55 AM
Alanoll, thanks, I think I'll give option B a try.
#7
Posted 09 February 2005 - 12:13 PM
feochango, on Feb 9 2005, 11:55 AM, said:
Alanoll, thanks, I think I'll give option B a try.
in nLite its located under Services
#9
Posted 03 May 2005 - 08:35 AM
#10
Posted 03 May 2005 - 08:53 AM
; 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,
#11
Posted 05 May 2005 - 07:57 AM
InTheWayBoy, on May 3 2005, 08:53 AM, said:
; 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,
<{POST_SNAPBACK}>
How about inserting a line in batch file called executed via cmdlines.txt ?
example inside batch file :
rem *** disable system restore *** net stop srservice -YOUR CUSTOM CODE GOES HERE - rem *** finished with my custom stuff, turn restore back on *** net start srservice
Note that i put my reg tweaks AFTER this sequence in separate batch file, so even
if the restore (or enything else) is started, reg tweaks (including service-tweaks)
will still be in effect.
#12
Posted 05 May 2005 - 10:19 AM
I was about to make the same post, just if any really knowledgeavle geek could tell me what I need to put in the WINNT.SIF that would disable system restore. I would be very grateful.
Thanks
P.S. I've tried nLite and believe it rocks just wanted to do this through WINNT.SIF
#13
Posted 05 May 2005 - 10:29 AM
In the i386 folder there should be a file sr.in_, I expanded this and deleted everything apart from
[version] Signature="$CHICAGO$" SetupClass=BASE LayoutFile=layout.inf [DefaultInstall]Saved the file and placed it in the i386 folder and deleted the compressed sr.in_ file and it works for me, ugly maybe but it works.
This does not install the system restore and there is no tab available on the system properties page, so do not use this method if you at some time want to enable it.
#14
Posted 06 May 2005 - 08:21 AM
benners, on May 5 2005, 10:29 AM, said:
In the i386 folder there should be a file sr.in_, I expanded this and deleted everything apart from
[version] Signature="$CHICAGO$" SetupClass=BASE LayoutFile=layout.inf [DefaultInstall]Saved the file and placed it in the i386 folder and deleted the compressed sr.in_ file and it works for me, ugly maybe but it works.
This does not install the system restore and there is no tab available on the system properties page, so do not use this method if you at some time want to enable it.
<{POST_SNAPBACK}>
Ummm... Interesting approach ! There's lot of stuff you could throw out this way.
Major boot disk cleanup ! Maybe nLite works like this when removing components ?
I wonder ...
#15
Posted 30 September 2005 - 03:17 PM
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\default")
Set objItem = objWMIService.Get("SystemRestore")
errResults = objItem.Disable("")
2. SAVE FILE AS... "SROff.vbs"
3. PUT SROff.vbs IN YOUR $OEM$ FOLDER
$OEM$\$1\Install\Scripts\
4. ADD THIS LINE TO winnt.sif:
[GuiRunOnce] "%systemdrive%\Install\Scripts\SROff.vbs"
======================
Disable Full System Restore
http://www.microsoft.com/technet/scriptcen...e/dmsrvb03.mspx
This post has been edited by rockstarjeremy: 30 September 2005 - 03:26 PM
#16
Posted 30 September 2005 - 05:43 PM
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.
#17
Posted 01 October 2005 - 06:08 PM
InTheWayBoy, on May 3 2005, 09:53 AM, said:
; 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.
This post has been edited by nmX.Memnoch: 01 October 2005 - 06:08 PM
#18
Posted 01 October 2005 - 08:42 PM
Quote
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.....
#19
Posted 17 October 2005 - 08:35 AM
#20
Posted 17 October 2005 - 09:09 AM
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":
Quote
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\srservice]"Start"=dword:00000004
2. In cmdlines.txt i put this line:
Quote
"REGEDIT /S cmdlines.reg"
3. In my RunOnceEx.cmd I import a second time my reg tweak:
Quote
REG ADD %KEY%\055 /V 1 /D "regedit /s %cdrom%\SETUP\SOFT\Regtweak.reg" /f
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\srservice]
"Start"=dword:00000004
4. Into winnt.sif put these line:
Quote
DisableSR=1
CreateFirstRunRp=0
Here' a little part of my winnt.sif for example:
Quote
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 ^^
- ← problem with entergin the g-mail
- Unattended Windows 2000/XP/2003
- RIS Unattended file (SIF) question →



Help
Back to top









