Jump to content

Recommended Posts

Posted

Hi, everybody. I am completing my third unattended project (thanks to you all!) and there are a couple of things that I have never been able to solve. I hope you can give me a hand on this.

For example, my winnt.sif calls start.cmd in a pretty standard way.

[GuiRunOnce]

%systemdrive%\install\start.cmd

Start.cmd installs lot of applications (90% unattended and 10%, regretable, not). When Start.cmd begins want to create a silent restore point. I have been playing with a vbs called "SysRestorePointSilent.vbs" (from www.dougknox.com) and rstrui.exe. The weird things is that when executed from Start.cmd the vbs is not recognized: "cannot find....". I paste the same routine calling "SysRestorePointSilent.vbs" in any other moment (now for example) and it works. (I have also failed trying to execute rstrui.exe silently)

ECHO.

@echo ---------------------------------------------------------

ECHO SILENT RESTORE POINT

@echo ---------------------------------------------------------

ECHO To allow going back to original win xp sp2 installation

ECHO.

start /wait %~d0\Install\SysRestorePointSilent.vbs

ECHO Please wait...

:: start /wait %systemroot%\system32\restore\rstrui.exe

Any idea of why it happens (could it be because of its long name?) and how to overcome it?

Thanks in advance


Posted (edited)

Eee :unsure: ...I don't know about the VBS , but I do know about the "SysRestorePoint.exe" that is on Doug Knox's Website.

Download it here and simply add this to your batch file>>

call "%PATHTOTHESRPUTILITY%\SysRestorePoint.exe"

A can't think of reason why this shouldn't work :)

Edited by Yonderboy

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...