Jump to content
Sign in to follow this  
am632

Need help with a windows update script

Recommended Posts

am632

Hi, I have searched around the internet and the help files but not really getting anywhere.

I starting work on a script that installs windows updates from a folder on a network computer which isn't a problem. but is there a way that i can use the script to check to see if the update is already installed, if so it will automatically go onto the next update, if not it will install it then go onto the next one?

Also my second question is.. if the computer needs a reboot after the install of an update, is there a way to continue the running of the script after the reboot from the place it left off?

Thanks

Share this post


Link to post
Share on other sites
lordicast

To check if a current update is installed I would use a FileRead() to check the install log.

If you use RegWrite() you can write a value that will start your .exe or script upon boot up of the system.

Finally you can use Shutdown(6)to force a reboot.

All these commands are fully explained the help file.

-Enjoy


[Cheeky]Comment[/Cheeky]

Share this post


Link to post
Share on other sites
am632

Hi, thanks for the reply,

It is my understanding that these log files are cleared by programs such as ccleaner? this would mean the script would find updates as not installed, is this correct?

if so, is there another way to check?

thanks

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.