Raffle 0 Posted September 29, 2010 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. Share this post Link to post Share on other sites
darkleton 0 Posted September 29, 2010 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. Share this post Link to post Share on other sites
Raffle 0 Posted September 29, 2010 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? Share this post Link to post Share on other sites
darkleton 0 Posted September 29, 2010 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 Share this post Link to post Share on other sites