Jump to content
Sign in to follow this  
JamesYoung

Bundle multiple files?

Recommended Posts

JamesYoung

Hi, I'm wondering if I can bundle multiple files into one exe: (with autoit)

blabla.exe

clutter.dll

flotsam.dll

jetsam.dll

junk.sll

So that when I click the exe, it will unpack all the files, then when the program is finished running, it will clean up the mess it made.

Then it's just the same exe again.

:)

I'm really new at auto it....

Share this post


Link to post
Share on other sites
Authenticity

You can use FileInstall and compile you script. Then delete the files when the script exits.

Share this post


Link to post
Share on other sites
JamesYoung

Thanks! :)

Share this post


Link to post
Share on other sites
JamesYoung

Is this the way I do it?

FileInstall ("c:\forbundling\picture.bmp", @WorkingDir, 1)
RunWait ("pbrush.exe picture.bmp")
FileDelete ("picture.bmp")

Share this post


Link to post
Share on other sites
pecloe

FileInstall ("C:\picture.bmp", @ScriptDir & '\', 1)

Run(@ScriptDir & "\pbrush.exe")

FileDelete(@ScriptDir & "\picture.bmp")

Share this post


Link to post
Share on other sites
Jos

FileInstall ("C:\picture.bmp", @ScriptDir & '\', 1)

Run(@ScriptDir & "\pbrush.exe")

FileDelete(@ScriptDir & "\picture.bmp")

did you mean?:

FileInstall ("C:\picture.bmp", @ScriptDir & '\', 1)
ShellExecuteWait(@ScriptDir & "\picture.bmp")
FileDelete(@ScriptDir & "\picture.bmp")

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
JamesYoung
:) This is great! 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  

×