Jump to content

Automate VMware Enhanced Authentication Plugin


Recommended Posts

I am feeling really stupid. I cannot figure out what I am doing wrong.

I followed the "Winzip" example, and I cannot get autoit to simply send an enter when the first window appears.  There are 2 windows like that, and neither one gets the enter.

ShellExecute("VMware-EnhancedAuthenticationPlugin-6.7.0.exe")
WinWaitActive("VMware Plug-in Service Installer.","instances will be closed")
Send("{ENTER}")
WinWaitActive("VMware Plug-in Service Installer.","run in succession")
Send("{ENTER}")
WinWaitActive("VMware Enhanced Authentication Plug-in 6.7.0","Welcome to the installation wizard")
Send("!n")
WinWaitActive("VMware Enhanced Authentication Plug-in 6.7.0","End-User License Agreement")
Send("!a!n!n!i")
WinWaitActive("VMware Enhanced Authentication Plug-in 6.7.0","Change")
Send("!n")
WinWaitActive("VMware Enhanced Authentication Plug-in 6.7.0","Install")
Send("!i")
WinWaitActive("VMware Enhanced Authentication Plug-in 6.7.0","Finish")
Send("!f")
WinWaitActive("VMware Plug-in Service","Welcome to the installation wizard")
Send("!n")
WinWaitActive("VMware Plug-in Service", "End-User License Agreement")
Send("!a!n")
WinWaitActive("VMware Plug-in Service", "Install the VMware Plug-in Service in")
Send("!n")
WinWaitActive("VMware Plug-in Service", "Install")
Send("!i")
WinWaitActive("VMware Plug-in Service","Finish")
Send("f")

I used the Window ID tool to verify that I am using the correct title, and those substrings appear in the dialog.

I really did not want to have to post here, as this seems like a trivial effort.  But I am stuck.  I hate stuck.

Thanks!

Link to comment
Share on other sites

Ok.  User context error.  Does not fix my feelings of stupid, but at least this makes sense now.  If AutoIT is not running elevated, it cannot see the elevated windows to act on them.

Ran the autoit3.exe VMEAP.au3 from admin CMD and it worked like it should.

Ran Compiled EXE as admin and worked as it should as well.

Silly me.

Edited by ThePappas
Additional Info
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

×
×
  • Create New...