Jump to content

Mamatha

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by Mamatha

  1. I changed ShellExecuteWait($exe) to Run($exe) But the last bit still doesn't work
  2. I am trying to automate (.exe file) the installation process of my product using autoit. Everything works ok except the last before page. When I hit next button on "ready to install" page, it goes to "installing" page (on this page it installs all the required files and it has no buttons / keys to sent to goto next page. This process takes about 3-4 minutes) And then it automatically goes to "installation successful" page. On this page I have to hit "finish" button here to end up. It stopped working at the "installing" page in the wizard. Please find the code that I have been trying. #requireadmin Opt("WinTitleMatchMode", 2) Opt("WinTextMatchMode", 2) $Version = "1234" $sScriptName = "Installation Automater" $exe = "C:\Setup"&$Version&".exe" $ProcessName = "Setup"&$Version&".exe" $windowname = "Matrix Setup" $delay = 1000 ShellExecuteWait($exe) ;It waits for the 'welcome' page of the wizard to popup and become active WinWaitActive($windowname) sleep(500) Send("!n") Sleep($delay) ;Sends a mouse click command to 'I Agree' radio box on the license agreement dialog ControlClick($windowname, "I agree to the terms of this license agreement", 602, "", 1) Sleep($delay) Send("!n") ;It waits for the 'installation folder' page of the wizard to popup and become active WinWaitActive($windowname) Sleep($delay) Send("!n") ;It waits for the 'shortcuts' page of the wizard to popup and become active WinWaitActive($windowname) Sleep($delay) ControlClick($windowname, "Next >", 100, "", 1) ;It waits for the 'ready to install' page of the wizard to popup and become active WinWaitActive($windowname) Sleep($delay) Send("!n") ;It waits for the "lnstalling' page of the wizard to popup and become active WinWaitActive($windowname, "Installing Matrix") Sleep(180000) ;It waits for the 'installation successful' page of the wizard to popup and become active WinWaitActive($windowname, "Installation Successful") Sleep($delay) Send("!f") Exit
  3. I wanted to display a set of instructions line by line before run the script in auto it I have 10 lines of text to show before I run the script Can you suggest me how to do that?
  4. Hey, It works for me when I add #requireadmin at the begining of my script Now my code looks like this #requireadmin Opt("WinTitleMatchMode", 2) Opt("WinTextMatchMode", 2) $file = "C:Setup.exe" ShellExecuteWait($file) if @error then Msgbox(0,"Error","installer not found") exit endif WinWaitActive("Setup") sleep(1000) ;MsgBox(0, "Welcome", "works") send("!n") exit Thank You very much
  5. I tried sleep(1000) right before the send command - still no luck Tried #AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator - this one doesn't help either Please can someone help me as I am unable to go any further with my script, Thank You
  6. still doesn't work Thank you for your time anyway
  7. Yes, I made a msgbox before the send function msgbox came up after winwaitactive but still not executing send function
  8. When I compiled that script it produced exe file when I run that exe file as an administrator, it says "the specified path does not exist" The file did exist on the network drive If I run the script straight away it finds the file ok send and controlsend both doesn't work
  9. My code is like this: Opt("WinTitleMatchMode", 2) Opt("WinTextMatchMode", 2) $file = "G:\Setup.exe" ShellExecuteWait($file) if @error then Msgbox(0,"Can't find the installer","M1 installer not found") exit endif WinWaitActive("M1 Setup") Send("!n") If i type alt-n manually it works ok I read this problem in this forum submitted by others but none of the solution seem to work on my machine can someone please help on this? Thank You
×
×
  • Create New...