Jump to content
Sign in to follow this  
Starfish41

Packing into .exe

Recommended Posts

Starfish41

Hey!

As the topic says i want to include a small picture into my exe file.

Is that possible?

For now i made a zipfile that contains both the exe and the picture but i would like to get both in one.

Is there any program or whatever that can do so?

Share this post


Link to post
Share on other sites
BigDod

Hey!

As the topic says i want to include a small picture into my exe file.

Is that possible?

For now i made a zipfile that contains both the exe and the picture but i would like to get both in one.

Is there any program or whatever that can do so?

If your exe is a compiled AutoIt script you could use FileInstall. You will find syntax etc in the help file.


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites
Starfish41

Nice thank that worked.

Now you can probably tell me if i can use the picture i installed without to install it on the pc later or do i have to install it when the prog starts and delete it when it ends?

Share this post


Link to post
Share on other sites
BigDod

Nice thank that worked.

Now you can probably tell me if i can use the picture i installed without to install it on the pc later or do i have to install it when the prog starts and delete it when it ends?

You can use it again later without having to re-install it. You would just have to add something to your script to check if it exists and fileinstall it if it does not.

BTW - Welcome to the best forum on the internet. :o



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites
Starfish41

BTW - Welcome to the best forum on the internet. :o

Hehe Thanks

Just one last question...

What if i want to use the picture out of the .exe file? - possible┬┐

Share this post


Link to post
Share on other sites
BigDod

Hehe Thanks

Just one last question...

What if i want to use the picture out of the .exe file? - possible┬┐

Once you fileinstall the picture to some location you can do what you want with it.


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites
seandisanti

Hehe Thanks

Just one last question...

What if i want to use the picture out of the .exe file? - possible┬┐

FileInstall() will put the picture (or any other file) wherever you like on the harddrive when the script is run. so if neither you, nor another user delete that file, it is still there to be accessed/used by anyone or any program. you can check for its existence in other scripts using the FileExists() function...

Share this post


Link to post
Share on other sites
Starfish41

Thanks!

I think i got it for now...

Share this post


Link to post
Share on other sites
BigDod

FileInstall() will put the picture (or any other file) wherever you like on the harddrive when the script is run. so if neither you, nor another user delete that file, it is still there to be accessed/used by anyone or any program. you can check for its existence in other scripts using the FileExists() function...

You got it in one. :o


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites
seandisanti

You got it in one. :geek:

probably the most efficient thing i've written all day. :o

Share this post


Link to post
Share on other sites
BigDod

probably the most efficient thing i've written all day. :o

? :geek:


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites
seandisanti

? :o

bad joke on myself. nevermind

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  

×