←  AutoPatcher for Windows XP SP3 (x86)

AutoPatcher Forum

»

auto-starting AP multiple times to get all...

Phariset's Photo Phariset 10 Feb 2010

Some time ago there was someone looking at getting their autopatcher to run multiple times on startup so that all the windows updates would be completed. I'm curious is to if that person succeeded and how they went about it.

I have some theory about using some batch files but my only concern is either having batch files that dont get deleted and causing conflicts or the ability to have a batch file delete itself...which really isnt possible. But i do also want the entire thing automated aswell.soo...

has anyone achieved this?

i'm going to try it anyway but it'd be nice if somoene already has a tested method that works.
Quote

Cristiano's Photo Cristiano 10 Feb 2010

it's possible automate that task, yes. you will require the usage of the runonce. this is an sample of an .reg file that will add an option to run something at runonce:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]
"sp2"="C:\\temp\\i386\\update\\update.exe /passive /forcerestart /o /f"

once added into registry, when the machine reboots it will be done. to reboot automatically, you can choose an tool to that, like autoshutdown or something. some of those tools have an option to reboot

> delete itself...which really isnt possible
that is possible. i've just did it right now, just to test. i've just did an simple .bat file, with the name 1.bat. this was the content of that file:
del 1.bat

then, double-click that file. and 1.bat it's gone

[]s
Edited by Cristiano, 10 February 2010 - 11:20 PM.
Quote

Phariset's Photo Phariset 11 Feb 2010

That will work quite nicely. Thankyou.
Quote