Jump to content
Sign in to follow this  
am632

Check if already installed help

Recommended Posts

am632

Hi, I have a script that installs windows updates, and here is a snippet

Run("high-pri1\Cumulative Security Update for Internet Explorer 8 for Windows XP (KB978207)\X86-en-ie8-windowsxp-kb978207.exe /q /norestart")

ProcessWaitClose("X86-en-ie8-windowsxp-kb978207.exe")

Run("high-pri1\Security Update for Jscript 5.8 for Windows XP (KB971961)\X86-en-ie8-windowsxp-kb971961.exe /q /norestart")

ProcessWaitClose("X86-en-ie8-windowsxp-kb971961.exe")

How can I make it check if the update is already installed first?

Thanks

Share this post


Link to post
Share on other sites
iamtheky

I just posted this one that checks the registry entry prior to running the KBs

http://www.autoitscript.com/forum/index.php?showtopic=119138&view=findpost&p=828253

RegRead(path to update entry in registry)

if @error > 0 Then

runwait (KB123456.exe)

Else

sleep (2000)

Edited by iamtheky

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

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.