Sign in to follow this  
Followers 0
am632

Check if already installed help

3 posts in this topic

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



#2 ·  Posted (edited)

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

this works gr8, 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  
Followers 0