ckislam Posted July 15, 2007 Share Posted July 15, 2007 Hello,I am using these switches for hotfixes unattended setup since win2k-u Unattended mode-f Force other programs to close when the computer shuts down-n Do not back up files for uninstall-o Overwrite OEM files without prompting-z Do not restart when installation is complete-q Quiet mode (no user interaction)I'm missing the switch to disable the system restore. do you know it? i couldn't find it anywhere! Link to comment Share on other sites More sharing options...
Glenn9999 Posted July 15, 2007 Share Posted July 15, 2007 I'm missing the switch to disable the system restore. do you know it? i couldn't find it anywhere!There isn't one, because system restore has nothing to do with the patches. You have to do it separately yourself. Microsoft doesn't recommend that you forcibly disable system restore, either.It looks like, though, you can use the DisableSR key with this registry path:HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion\SystemRestoreI notice it runs as a service, too, so perhaps you can disable that through registry or API call for while you are running your script (I guess that's the question? Maybe it might be beneficial to tell us what you're looking to do specifically.I will note there is also an API service that will clear system restore points. Link to comment Share on other sites More sharing options...
ckislam Posted July 15, 2007 Author Share Posted July 15, 2007 as you said, i want to disable creating a restore point. because each hotfix i install, creates a system restore point, which takes too much time during the installation. I will try it with the RegistryKey you gave me. I suppose it will work by stopping the System Restore before the installation and then enabling it again.Thanks Link to comment Share on other sites More sharing options...
ckislam Posted July 15, 2007 Author Share Posted July 15, 2007 This works greatnet stop srservicehotfix-kb123.exe -u -z -o -nnet start srservice 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