Jump to content

Hello Everyone :D


New2Autoit

Recommended Posts

Just wanted to take this time and introduce myself. I'm a newbie to AutoIt and think it's a very cool program.

Also I have been working on a script and if anyone can help me out I'll Appreciate it.

Ok, So here it is.

DriveMapAdd("o:","\\server",8,"myusername","password")

dim $tab, $enter, $space

$tab = "{tab}"

$space= "{space}"

$enter="{enter}"

$alt="{alt}"

;running command

Run("cmd.exe")

send($space)

send("O:" & $enter)

;activating patchlink

send("UpdateAgent.msi" & $enter )

;exiting cmd

send("exit" & $enter )

;waiting for patchlink to initialize - only one window title

WinWait("PatchLink Update Agent - InstallShield Wizard")

Send($alt)

Send("!N")

Send("!A")

Send("!N")

Send("!N")

;sends the install command

send("!i")

send("!f")

winwaitnotactive("PatchLink Update Agent - InstallShield Wizard")

DriveMapdel("o:")

the problem occurs when the installation finishes. The "!f" never executes, requiring a user to be present. I will continue to look at the autoit bible. Thanks in advance. :D

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

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