Jump to content

unzipping files


Raffle
 Share

Recommended Posts

I want to be able to easially and cleaning unzip a file without the user needing a .dll file on their computer, OR is it possible to pack a .dll file into a compiled au3 .exe? ^^

The Project im working on can only be a single .exe, not a folder. ;)

And i dont want anything that moves the mouse or some crude hack like that.

Link to comment
Share on other sites

there was a UDF that used the windows zip function.

i decided to go with 7-zip and get the exe, build it into my program and have it extract it when needed to a temp dir, and delete it when finished. If you set it as hidden too then the user probably won't even know it's there.

Link to comment
Share on other sites

there was a UDF that used the windows zip function.

i decided to go with 7-zip and get the exe, build it into my program and have it extract it when needed to a temp dir, and delete it when finished. If you set it as hidden too then the user probably won't even know it's there.

Wouldnt that make my program fat? its < 500kb atm?

But how do you build in .exe's or .dll's into a au3 compiled .exe?

Link to comment
Share on other sites

Wouldnt that make my program fat? its < 500kb atm?

But how do you build in .exe's or .dll's into a au3 compiled .exe?

it will increase the size yes, so if size is an issue disregard this.

to build it in, use:

FileInstall( "c:\7za.exe", "") ;that is for the 7-zip executable, change to whichever prog you want

FileSetAttrib(@ScriptDir & "\7za.exe", "+H") ; this will make the file hidden

FileDelete( @ScriptDir & "\7za.exe") ; will delete the file if you put this at the end of your prog

the @scriptdir will extract it to the same folder your compiled exe is in, there are others, like @tempdir, etc so if you have a look there may be one that is better for you

hope this helps

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...