Sign in to follow this  
Followers 0
echdareez

Automating installation Total Commander

4 posts in this topic

Hi there,

I was planning on writing an automating script for a blank Windows 10. All my tools, all my configs, done right out of AutoIT. But the first hurdle was the first tool I always install : Total Commander.

Have a look at the code below :

 1. for some reason, using Run($Location_Base & $Location_TC) didn't work - had to use cmd /c... Same problem if I use : Run("c:\temp\tools\01-TC64\tcmd852x64.exe") . The setup of TC doesn't start. 
 The setup of my NVIDIA ( Run("c:\temp\tools\02-NVIDIA\setup.exe") ) runs though.
Both are .exe's so I don't see where the problem is?

 2. as I want to automate the installation process, I've tried looking for the TITLE and ending up testing with the CLASS... The Send keys are not being sent through... Tried WinWaitActive / WinActivate / and so on... If I use a WinExists("[CLASS:#32770]") though, that works out ok and the window is detected.

 

thanks!

/dimi

 

$Location_Base = "C:\temp\tools\01-TC64\"
$Location_TC = "tcmd852x64.exe" ; Change this one

Install_TC()

Func Install_TC ()
    Run("cmd /c " & $Location_Base & $Location_TC)
    Sleep(2500)
    Send("{TAB}{TAB}{TAB}")
    WinWaitActive("[CLASS:#32770]")
    Send("{TAB}{TAB}{TAB}")
    WinActivate("[CLASS:#32770]")
    Send("{TAB}{TAB}{TAB}")
    WinActive("[CLASS:#32770]")
    Send("{TAB}{TAB}{TAB}")
EndFunc

 

 

Share this post


Link to post
Share on other sites



Thanks so much :)    I will have a look at it this evening...

/dimi

Share this post


Link to post
Share on other sites

For total commander you can automate by changing the install.inf and set the things you want it to do 

silent install / language etc

 http://superuser.com/questions/639720/batch-file-to-install-totalcommander-without-user-intervention

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  
Followers 0