Jump to content

Recommended Posts

Posted

Hi All,

I want to install sav client 10.1.8.8000 using autoit programming.

My problem is when the wizard want to choose option button for license agreement. I tried using the script below but it didn't work.

WinWaitActive("Symantec AntiVirus - InstallShield Wizard", "Press Page Down to see the rest of the agreement")
Opt ("Symantec AntiVirus - InstallShield Wizard", "Press Page Down to see the rest of the agreement", "I &accept the terms in the Licence Agreement")
ControlClick ("Symantec AntiVirus - InstallShield Wizard", "Press Page Down to see the rest of the agreement", "&Next >")

Also tried using

Send ("!a") and ControlClick for license agreement but also didn't work.

Appreciated if anyone can help this. thanks. :)


Posted

Welcome to the MSFN forums.

Opt() supports the settings to change the interpreters behavior and the method that you use is incorrect. Instead use Send(), ControlClick() or ControlCommand() to act with the radio button.

You may need to debug to know what is the issue and I would advise that you add the line below at the top of your script.

Opt("TrayIconDebug", 1)

Now you can hover the mouse cursor over the AutoIt icon in the system tray next to the clock while the script is running. When the script seems to have failed/stalled, then you can see a tray tip window which shows the line of code that the script is at. If it stalled at the line with WinWaitActive(), then you may have a bad parameter text or perhaps inactive window. If the window fails to activate on it's own, then you can make it activate bu using WinWait() to wait for the window, then WinActivate to force the window to activate, and then use WinWaitActive() to wait for the window to become active.

For ease, Control*() functions do not normally require active windows to interact with so using only WinWait() prior to Control*() is usually sufficient.

SAV may support silent install switches and I would suggest searching for those for your convenience.

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
  • Recently Browsing   0 members

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