Problem in creating System Restore Point in Vista through Installer
Hi,
I need to create System Restore Point before the installation of our application starts. I found some script that does this.
But i m facing some difficulties in doing so in Vista Machines. I believe it is due to permission problem.
Please let me know how to overcome this in Vista?
Thanks.
I need to create System Restore Point before the installation of our application starts. I found some script that does this.
But i m facing some difficulties in doing so in Vista Machines. I believe it is due to permission problem.
Please let me know how to overcome this in Vista?
Thanks.
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
getIT
15 years ago
Here is the VBScript i am using to create System Restore Point:
If WScript.Arguments.Count = 0 Then
Set objShell = CreateObject("Shell.Application")
objShell.ShellExecute "wscript.exe", "D:\SystemRestoreforVista.vbs" & " uac", , "runas", 1
Else
Set IRP = getobject("winmgmts:\\.\root\default:Systemrestore")
strDescription = InputBox("Restore point description: ","Installed Application")
MYRP = IRP.createrestorepoint (strDescription, 0, 100)
GetObject("winmgmts:\\.\root\default:Systemrestore").CreateRestorePoint "description", 0, 100
End If
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.