[Moderator (Sealeopard): Added CODE tags]
code:
; fixblast
;
;USE OF THIS SCRIPT IS AT YOUR OWN RISK AND I CANNOT BE HELD RESPONSIBLE FOR THE CONSEQUENCES
;I HAVE USED IT SUCCESSFULLY ON MANY MACHINES - WITH AN ACCOUNT WITH ADMINISTRATIVE PRIVILEGES
;CHANGE "\\reg\mac-pc\fixblast\patchwindows\filename.exe" to match the location and filename
;of your fixe(s)
;
;Disable System Restore
;
$rc = WriteValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore\", "DisableSR", "1", "REG_DWORD")
$rc = WriteValue("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\sr\", "Start", "4", "REG_DWORD")
; Run the removal tool - automatically and silently
Shell '%comspec% /c "\\reg\mac-pc\FixBlast\RemoveBlast\fixblast /start /silent"'
; Run the patch utilities
Shell '%comspec% /c "\\reg\mac-pc\fixblast\patchwindows\filename.exe -q -z"'
; Shell '%comspec% /c "\\reg\mac-pc\fixblast\patchwindows\filename.exe -q -z"'
;reboot the machine
Shutdown ("@HOSTNAME", "done", 1, 1, 1)
[ 15. August 2003, 16:04: Message edited by: sealeopard ]
_________________________
I came, I saw, I fell asleep

)