am632 Posted August 31, 2010 Posted August 31, 2010 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
iamtheky Posted August 31, 2010 Posted August 31, 2010 (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 August 31, 2010 by iamtheky ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now