greenbeauty Posted January 6, 2010 Share Posted January 6, 2010 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? Link to comment Share on other sites More sharing options...
zorphnog Posted January 6, 2010 Share Posted January 6, 2010 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") Link to comment Share on other sites More sharing options...
somdcomputerguy Posted January 6, 2010 Share Posted January 6, 2010 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now