Request input on a VB script

I have a script which I want to run from the Send To menu command. It is designed to cause the OS (Windows XP) to create a Restore Point, then pass the executable (MSI or EXE, usually) for processing.

My end-aim is to have a Send To method to right-click on a install application, create a restore point and then begin application installation. However, I seem to be missing something in passing the "installer" for execution.

Set IRP = getobject("winmgmts:\\.\root\default:Systemrestore")
strDescription = InputBox("Restore point description: ","Installation Restore Point")
MYRP = IRP.createrestorepoint (strDescription, 0, 100)
John DarbyPMAsked:
Who is Participating?
sirbountyConnect With a Mentor Commented:
Hi johndarby, intresting question youve got.
Im not sure I completely follow you though.
The problem is in adding to SendTo, or in running the installer?
John DarbyPMAuthor Commented:
The installer doesn't run after the ASR backup completes. Intuitively, it seems this should work, but, who knows?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.