MAN Posted May 16, 2007 Posted May 16, 2007 hii have created unattended installation for a software here is the linesOpt("WinWaitDelay",100)Opt("WinTitleMatchMode",4)Opt("WinDetectHiddenText",1)Opt("MouseCoordMode",0)Run('C:\Documents and Settings\amir\Desktop\New Folder\setup.exe')WinWait("Welcome to the MathWorks Installer","")If Not WinActive("Welcome to the MathWorks Installer","") Then WinActivate("Welcome to the MathWorks Installer","")WinWaitActive("Welcome to the MathWorks Installer","")Send("{ENTER}")WinWait("License Information","")If Not WinActive("License Information","") Then WinActivate("License Information","")WinWaitActive("License Information","")Send("amir{TAB}ali{TAB}")WinWait("Program Manager","")If Not WinActive("Program Manager","") Then WinActivate("Program Manager","")WinWaitActive("Program Manager","")WinWait("License Information","")If Not WinActive("License Information","") Then WinActivate("License Information","")WinWaitActive("License Information","")Send("xxx{TAB}{TAB}{TAB}{ENTER}")WinWait("MathWorks Account","")If Not WinActive("MathWorks Account","") Then WinActivate("MathWorks Account","")WinWaitActive("MathWorks Account","")Send("{SPACE}{TAB}{TAB}{SPACE}{ENTER}")WinWait("License Agreement","")If Not WinActive("License Agreement","") Then WinActivate("License Agreement","")WinWaitActive("License Agreement","")Send("{SPACE}{ENTER}")WinWait("Installation Type","")If Not WinActive("Installation Type","") Then WinActivate("Installation Type","")WinWaitActive("Installation Type","")Send("{ENTER}")WinWait("Folder Selection","")If Not WinActive("Folder Selection","") Then WinActivate("Folder Selection","")WinWaitActive("Folder Selection","")WinWait("Confirmation","")If Not WinActive("Confirmation","") Then WinActivate("Confirmation","")WinWaitActive("Confirmation","")Send("{ENTER}")but the problem is i want to put it on cd so when the autorun start and after that script it perform the installation from there but the autoit script gives me error i have changed the path with the command srcdir this way :<SrcDir>\Run('<SrcDir>\setup.exe')so the script must execute setup.exe from cd but is doesnot and gives me errorunable to execute the external programthe system cannot find the file specified can someone help me plz ?th very much
November Posted May 16, 2007 Posted May 16, 2007 Why dont you include the install file in the script and decompress to a temp folder? maybe vars with @ could help too! Cheers Old Scriptology Visual Ping 1.8 - Mass Ping Program with export to txt delimited. Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code. Desktop 2 RGB - Pick a color in the desktop and get the RGB code. ShootIT 1.0 - Screen Capture full and partial screen [font="'Arial Black';"]Remember Remember The Fifth of November.[/font]
Developers Jos Posted May 16, 2007 Developers Posted May 16, 2007 Just use : Run("Setup.exe") assuming the setup is in the same directory as the compiled script . SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
MAN Posted May 16, 2007 Author Posted May 16, 2007 Why dont you include the install file in the script and decompress to a temp folder?maybe vars with @ could help too!Cheersthats little hard for mei am not expert
MAN Posted May 16, 2007 Author Posted May 16, 2007 Just use :Run("Setup.exe") assuming the setup is in the same directory as the compiled script .vowww man works like a charmtthanks so much
MAN Posted May 16, 2007 Author Posted May 16, 2007 hi again excuse me i have another quesyion too( seems good place to learn) i want to add line to the script so that when at any point of installation i exit the the script exit too can u tell me what should i add to script? thanks
Generator Posted May 16, 2007 Posted May 16, 2007 hi againexcuse me i have another quesyion too( seems good place to learn) i want to add line to the script so that when at any point of installation i exit the the script exit toocan u tell me what should i add to script?thanksIf WinExists("Your Installation Title or Hwd")=0 Then Exit
MAN Posted May 17, 2007 Author Posted May 17, 2007 sorry where should i add this command in which line?? and something else the install process have more than one windows ( one after one)and every windows has its own name do i have to write this command for every windows?
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