Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 Dec : How to delete all system restore points programmatically?

www.cryer.info
Managed Newsgroup Archive

How to delete all system restore points programmatically?

Subject:How to delete all system restore points programmatically?
Posted by:"Arthur Hoornweg" (antispam.hoornweg@casema.nl.net)
Date:Mon, 17 Dec 2007 08:58:26

Hello all,

would anyone know how I can delete all system restore points on drive
C:\  programmatically (preferably in Delphi, but any other programming
language will do also)?


The reason for my asking is, we deploy Windows XP pc's that are installed
from network using a bootable floppy and an unattended installation script.
Some of the scripting tools that we use in the process of this installation
are recognized false-positively as malware by some virus scanners.

Even though the installation directory is deleted on the hard disk after
installation, some of the "offending" executables are still present in
restore points in the \System Volume Information folder and I would very
much like to get rid of them.

I know how to do it by hand, but I would rather have it done in code so
it can be automated.

The easy way would be to grant the installation account full access
on the "\System volume information" folder and simply zap all the files
in it but that method is kinda un-elegant IMHO. I'd rather do it the
"documented" way if you understand my point.


--
Arthur Hoornweg

(In order to reply per e-mail, please just remove the ".net"
  from my e-mail address. Leave the rest of the address intact
  including the "antispam" part. I had to take this measure to
  counteract unsollicited mail.)

Replies:

www.cryer.info
Managed Newsgroup Archive