Jump to content

Activating buttons in .MSI Install


Recommended Posts

Hello everyone just having a little trouble and wondering if anyone can point me in the right direction.

I am trying to automate UPH-Clean from Microsoft

Here is my script...

$UPH = 'C:\Windows\System32\msiexec.exe /i "C:\UPHClean-Setup.msi"'
Runwait($UPH)

controlclick("User Profile Hive Cleanup Service", "&Next >", "Button1")

It's not fancy but it clicks "Next" about once every 10 times I run it. I have also tried "Next >" instead of "&Next >"

if anyone can help me figure out how to activate the next button I can finally finish all my app automations. Thanks for your time guys.

Link to comment
Share on other sites

Thanks, I have another Q. one of the installs goes "install" "decompression" "install" but the titles at the top are all the same so how can I make it wait until the decompression is done to submit another button press?

Link to comment
Share on other sites

I've been trying but it won't catch the text in the winwait.

Posted Image

Posted Image

Posted Image

Those are my images and here is my code so far

Run("antivir_workstation_winu_en_h.exe")
;Clicks Accept and starts decompression
WinWaitActive("Avira AntiVir Personal - Free Antivirus")
Controlclick("Avira AntiVir Personal - Free Antivirus", "Accept", "Button1")
; Waits until after decompression and activates "next" button
WinWaitActive("Avira AntiVir Personal - Free Antivirus", "Welcome to the setup")
Controlclick("Next", "Button2")

The second Control click does not work because it can't tell the difference between the 2nd and third screens.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...