/build/static/layout/Breadcrumb_cap_w.png

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.

0 Comments   [ + ] Show comments

Answers (1)

Posted by: getIT 15 years ago
Orange Senior Belt
0
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.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ