Jump to content
Sign in to follow this  
Gillboss

Help with exctract

Recommended Posts

Gillboss

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.

Share this post


Link to post
Share on other sites
Varian

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

Share this post


Link to post
Share on other sites
Gillboss

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 by Gillboss

Share this post


Link to post
Share on other sites
FreeFry

As said in the other thread, use FileInstall..

Share this post


Link to post
Share on other sites
Varian

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 & '"')

Share this post


Link to post
Share on other sites
Varian

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 & '"')

Share this post


Link to post
Share on other sites
Gillboss

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..

Share this post


Link to post
Share on other sites
Gillboss

ok done, i want say thanks to FreeFry and monoceres, helped me in MSN, Thanks!

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  

×