Jump to content
Sign in to follow this  

Automate installation

Recommended Posts

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 ****


#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

#region --- Au3Recorder generated code Start ---


_WinWaitActivate("Sample Setup","I accept the license")



_WinWaitActivate("Sample Setup","Product instance con")


_WinWaitActivate("Sample Setup","Installation complet")



#region --- Internal functions Au3Recorder Start ---

Func _WinWaitActivate($title,$text,$timeout=0)


If Not WinActive($title,$text) Then WinActivate($title,$text)



#endregion --- Internal functions Au3Recorder End ---

#endregion --- Au3Recorder generated code End ---

Share this post

Link to post
Share on other sites

@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]--------------- __________------------------------------ __________---------------

Share this post

Link to post
Share on other sites

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>

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...