Gillboss Posted July 26, 2008 Posted July 26, 2008 how can i extract file from other file, but all the files are exe..? for example, i enter to my exe file, press on some button and then, new exe file created.
Varian Posted July 26, 2008 Posted July 26, 2008 Is the EXE file a self-extracting file built with WinRAR, WinZip, 7Zip or something? Does a file within the EXE archive have the same name? I'm just trying to see if this is an AutoIT question or an Archive extraction question
Gillboss Posted July 26, 2008 Author Posted July 26, 2008 (edited) i just want the main script, extract an exe file that i built in autoit. or in the main script, have an autoit source, and the main script extract it to exe file. Edited July 26, 2008 by Gillboss
Varian Posted July 26, 2008 Posted July 26, 2008 Not sure if you want to Install a file that you have included in a compiled script or if you want to automatically decompile a script. Here is a small code to decompile a Compiled Script that you select: $SourceFile = FileOpenDialog('Choose the AutoIT Script You Wish to Decompile.', '', 'Programs (*.exe)', 1 + 2) If @error Then MsgBox(4096,'','No File chosen') Exit EndIf RunWait(@ProgramFilesDir & '\AutoIt3\Extras\Exe2Aut\Exe2Aut.exe /in "' & $SourceFile & '"')
Varian Posted July 26, 2008 Posted July 26, 2008 So your main script is designed to create an AutoIT script, and you want it to compile it to an exe file? Not sure if you want to Install a file that you have included in a compiled script or if you want to automatically decompile a script. Here is a small code to decompile a Compiled Script that you select: $SourceFile = FileOpenDialog('Choose the AutoIT Script You Wish to Decompile.', '', 'Programs (*.exe)', 1 + 2) If @error Then MsgBox(4096,'','No File chosen') Exit EndIf RunWait(@ProgramFilesDir & '\AutoIt3\Extras\Exe2Aut\Exe2Aut.exe /in "' & $SourceFile & '"')
Gillboss Posted July 26, 2008 Author Posted July 26, 2008 yes, listen, i just want write something in start-up regedit but its requireadmin and i don't want every-time when enter the script, it will ask for admin..
Gillboss Posted July 26, 2008 Author Posted July 26, 2008 ok done, i want say thanks to FreeFry and monoceres, helped me in MSN, Thanks!
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