Rakitha Posted September 23, 2011 Share Posted September 23, 2011 I need to automate software installation through the AutoIt and Au3Recorder. But I have to use temporary directory to store the installation files which changes it file path every time. So for Run command I can't give the exact file path. I have tried giving Run('Setup.exe') but it gives debug error at the end. This is code I have got. Please give me any ideas how to do this installation. #Region ;**** Directives created by AutoIt3Wrapper_GUI ****#AutoIt3Wrapper_Outfile=Sample.exe#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****#region --- Au3Recorder generated code Start --- Run('Setup.exe')_WinWaitActivate("Sample Setup","I accept the license")Send("{UP}")Send("{ENTER}")_WinWaitActivate("Sample Setup","Product instance con")Send("{ENTER}")_WinWaitActivate("Sample Setup","Installation complet")Sleep(3000)Send("{ENTER}") #region --- Internal functions Au3Recorder Start ---Func _WinWaitActivate($title,$text,$timeout=0) WinWait($title,$text,$timeout) If Not WinActive($title,$text) Then WinActivate($title,$text) ;WinWaitActive($title,$text,$timeout)EndFunc#endregion --- Internal functions Au3Recorder End ---#endregion --- Au3Recorder generated code End --- Link to comment Share on other sites More sharing options...
DrKovra Posted September 23, 2011 Share Posted September 23, 2011 @AutoItExe The full path and filename of the AutoIt executable currently running. For compiled scripts it is the path of the compiled script. [s][font="Impact"]░▒▓▓►DrKovra◄▓▓▒░[/font][/s]The only thing I [sup]know [/sup]is that I don't know [sub]nothing[/sub]--------------- __________------------------------------ __________--------------- Link to comment Share on other sites More sharing options...
sleepydvdr Posted September 24, 2011 Share Posted September 24, 2011 I have seen certain security software that generates a random name for it's temporary files to set it up (to help fool viruses that would otherwise look for a single installer name). You could try pulling the extracted setup file from the temp folder and running it directly (if it extracts other files, you may need to pull them, too). Or you could try using silent switches. #include <ByteMe.au3> 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