• Earn real money by being active: Hello Guest, earn real money by simply being active on the forum — post quality content, get reactions, and help the community. Once you reach the minimum credit amount, you’ll be able to withdraw your balance directly. Learn how it works.

AutoIT FileInstall by enzo_

Status
Not open for further replies.

sQuo

~ KillmeMories ~
Shadow
User
Joined
Oct 16, 2011
Messages
5,851
Reputation
0
Reaction score
22,904
Points
688
Credits
0
‎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"
 
Status
Not open for further replies.
Back
Top