Sign in to follow this  
Followers 0
greenbeauty

Trigger for installation window

3 posts in this topic

Hello

I have a question..

I just finished succesfull a script for an installation of a softwarepackage.

Every things works fine.. but we want to deploy this software on various sytems.

I find out that the first screen of the setup is sometimes present and sometimes not...

So my autoit script works only when the screen not shows up.

This is my script:

Run("\\el-w2k3fs1\apps\SMS_applicaties\Caseware 2009\AutoInstall\prog\cwp2009.exe")

WinWaitActive("Open File - Security Warning", "The publisher could not be verified")
Send("!r")

WinWaitActive("CaseWare Working Papers 2009", "WAARSCHUWING")
Send("!v")


WinWaitActive("CaseWare Working Papers 2009", "In welke taal moet CaseWare Working Papers worden geïnstalleerd")
Send("!v")


WinWaitActive("CaseWare Working Papers 2009", "De wizard is gereed om met de installatie te beginnen")
Send("!i")

WinWaitActive("CaseWare Working Papers 2009", "De InstallShield Wizard heeft met succes")
Send("!o")

The first window, the security warning is sometimes present, and sometimes not..

What must I add in my script to trigger the window if it's present or not, but still continue and not stop the script?

Share this post


Link to post
Share on other sites



Try this:

Run("\\el-w2k3fs1\apps\SMS_applicaties\Caseware 2009\AutoInstall\prog\cwp2009.exe")

While 1
    If WinWaitActive("Open File - Security Warning", "The publisher could not be verified", 1) = 1 Then
        Send("!r")
        WinWaitActive("CaseWare Working Papers 2009", "WAARSCHUWING")
        Send("!v")
        ExitLoop
    ElseIf WinWaitActive("CaseWare Working Papers 2009", "WAARSCHUWING", 1) = 1 Then
        Send("!v")
        ExitLoop
    EndIf
WEnd

WinWaitActive("CaseWare Working Papers 2009", "In welke taal moet CaseWare Working Papers worden geïnstalleerd")
Send("!v")

WinWaitActive("CaseWare Working Papers 2009", "De wizard is gereed om met de installatie te beginnen")
Send("!i")

WinWaitActive("CaseWare Working Papers 2009", "De InstallShield Wizard heeft met succes")
Send("!o")

Share this post


Link to post
Share on other sites

If WinWaitActive("Open File - Security Warning", "The publisher could not be verified", 5) Then Send("!r")


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

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  
Followers 0