13 Years of Service
24%
Autor: enzo_
Code:
>cs # ------------------------------------------------ ----------------------------
, Author: enzo_ ("[email protected]")
; Language: AutoIt
; Function: FileInstall
; http://www.autoitscript.com/autoit3/docs/functions/FileInstall.htm
# ce ------------------------------------------------ ----------------------------
, Script Start - Add your code below here
DirCreate ("res"); Creates a folder in the same directory as the executable called "res"
FileSetAttrib ("res", "+ RASH"), will leave the protected folder res "invisible"
FileInstall ("File1.exe" "res \ File1.exe"); File1.exe The file will be installed in the res
FileInstall ("File2.exe" "res \ File2.exe"); File2.exe The Archive will be installed in the res
Run ("res \ File1.exe"); execute the file File1.exe
Run ("res \ File2.exe"); execute the file File2.exe
Sleep (5000); Delay We give a "pause in the execution time 1000 = 5000 = 1sec 5sec
FileDelete ("res \ File1.exe"), we delete the file so that when it runs again he can normally be installed
FileDelete ("res \ File2.exe"), we delete the file so that when it runs again he can normally be installed
DirRemove ("res", 1); Delete the folder "res"