Jump to content
Sign in to follow this  
Shawndt

SERVICE PACK 3

Recommended Posts

Shawndt

Good Morning Gents,

Can anyone tell me why when I run WINDOWS XP SERVICE PACK 3 manually, it shows me the progress bar as it is installing. Yet when I automate it with Autoit it does not. I have included the code below. Do I need to add something in my code to prevent it from happening? I cannot tell when it is done or where it is in the install without see the progress bar. Does using Autoit change it some how?

$WinTitle4 = "Software Update Installation Wizard"

Run("D:\automation\WindowsXP-SP3-x86.exe")
WinWait("Extracting Files")
WinWait($WinTitle4)
sleep(2000)
Controlsend($WinTitle4, "","", "{ENTER}")
Sleep(2000)
WinWait($WinTitle4, "license agreement")
ControlClick($WinTitle4, "", "[ID:11009]")
ControlClick($WinTitle4, "", "[ID:12324]")
ControlClick($WinTitle4, "", "[ID:12324]")
ControlClick($WinTitle4, "", "[ID:12325]")
Sleep(4000)

Share this post


Link to post
Share on other sites
weaponx

Don't even bother with Win*() functions. Use RunWait() and install it silently like a real man.

http://support.myteks.net/xp-sp3-silent-install

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.