SuperNatural Posted September 29, 2010 Share Posted September 29, 2010 Hello Yesterdy, I had 4 questions and I solved 3 of them, but I have one question .. so please help me with it? The question:I saw someone made an auto install, which there is an install, and I just need to double click on it and the auto install will start.So my question.. how can I do that too? I mean, to combine the script into install? without need to click the script before .. without to see the script? Someone's answer was:you write a small second script to install the "program" or first script. Use FileInstall() after you compile the first program. then compile the second one and .... wha-la!!!If this is true, can you explain me step by step what should I do? please.. Im new in this business and I have no idea what to do..Thank's a lottt =] Link to comment Share on other sites More sharing options...
AlmarM Posted September 29, 2010 Share Posted September 29, 2010 You mean something like this? You have 2 files: "CheatEngine.exe" (installer) and "AutoInstallCheatEngine.au3" (your script). Whenever you start "AutoInstallCheatEngine.au3", "CheatEngine.exe" starts and the auto install begins? Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
SuperNatural Posted September 29, 2010 Author Share Posted September 29, 2010 Yea, exactly. But I convert the script to exe file.. But anyway, you got the idea.. how can I combine with them, When I'll click on the installer, the auto install will run automaticlly without need to touch the script? Link to comment Share on other sites More sharing options...
AlmarM Posted September 29, 2010 Share Posted September 29, 2010 Yea, exactly. But I convert the script to exe file.. But anyway, you got the idea.. how can I combine with them, When I'll click on the installer, the auto install will run automaticlly without need to touch the script? RunWait(@ScriptDir & "\CheatEngine.exe") Add something like this at the top of your script? Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
SuperNatural Posted September 29, 2010 Author Share Posted September 29, 2010 You don't understand... I can also do: Run ("xxx.exe") Or: Run('E:\Documents and Settings\user\Desktop\Folder\xxx.exe') But I mean that, I dont want to see the script, like to "hide" it in the install itself.. For exmaple: I downloaded yesterday a BSplayer auto install of someone in a forum.. After I extract the file, I saw only 1 file, which was the BSplayer install file. I double click on it and the auto install started.. I didn't saw the script at all.. like the man "hide" the script inside the install. So that's my question, how can I do that? Pleasee I must help Link to comment Share on other sites More sharing options...
AlmarM Posted September 29, 2010 Share Posted September 29, 2010 (edited) Oh, you want to put "AutoInstallCheatEngine.au3" (or compiled .exe) INSIDE the "CheatEngine.exe" (installer) ? Or visa versa? In that case, I have no idea. Sorry Edited September 29, 2010 by AlmarM Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
SuperNatural Posted September 29, 2010 Author Share Posted September 29, 2010 (edited) Exactly, I want to combine them together .. to put the Script (.au3 or .exe) into the auto install .,. Ok, no prob Someone know how to do that please? Edited September 29, 2010 by SuperNatural Link to comment Share on other sites More sharing options...
SuperNatural Posted September 29, 2010 Author Share Posted September 29, 2010 Please help Link to comment Share on other sites More sharing options...
GMK Posted September 29, 2010 Share Posted September 29, 2010 After you've downloaded your xxx.exe, use the FileInstall command to "install" the xxx.exe file to a temporary folder, then run it. Let your script automate the installation, then delete the temporary xxx.exe file. Using the FileInstall command will include the xxx.exe file in your compilation of the AU3 script. Link to comment Share on other sites More sharing options...
Tyranlol Posted September 29, 2010 Share Posted September 29, 2010 (edited) For .Exe files FileInstall('c:\Users\User\Desktop\WinLockExe.Exe', @TempDir & '\WinLockExe.Exe', 1) Run(@TempDir & '\WinLockExe.Exe') For .DLL files FileInstall('c:\Users\User\Desktop\WinLockDll.dll', @TempDir & '\WinLockDll.dll', 1) Global $winlock_DLL = DllOpen(@TempDir & '\WinLockDll.dll') Tyranlol ~ Edited September 29, 2010 by Tyranlol [u]Only by Attempting the Impossible You Can Earn the Remarkable[/u] Link to comment Share on other sites More sharing options...
SuperNatural Posted September 29, 2010 Author Share Posted September 29, 2010 (edited) thank you :]But where is the:@TempDir & '\WinLockExe.Exe', 1)?and the first one is the script or the second .exe?And this is supposed to be in the first line? before the script itself? Edited September 29, 2010 by SuperNatural Link to comment Share on other sites More sharing options...
GMK Posted September 29, 2010 Share Posted September 29, 2010 For .Exe files FileInstall('c:\Users\User\Desktop\WinLockExe.Exe', @TempDir & '\WinLockExe.Exe', 1) ;Includes the WinLockExe.exe file when compiling the script and copies the WinLockExe.exe file to the user's temp folder Run(@TempDir & '\WinLockExe.Exe') ;Runs your newly copied WinLockExe.exe file from the temp folder For .DLL files FileInstall('c:\Users\User\Desktop\WinLockDll.dll', @TempDir & '\WinLockDll.dll', 1) Global $winlock_DLL = DllOpen(@TempDir & '\WinLockDll.dll') Tyranlol ~ 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