Sign in to follow this  
Followers 0
beserk1

Include .ico files in exe

8 posts in this topic

Is it possible to include the .ico files used in the script into the exe file when comile?

Right now I have 2 .ico files that I use in a script, and I want to combine all 3 files after I compile it, so I just have to use the script and it will have the icon included.

Anyone know if thats possible?

Share this post


Link to post
Share on other sites



FileInstall("icon location", @TempDir & "\icon1.ico")

Then use: GUICtrlCreateIcon(@TempDir & "\icon1.ico")

If that helps

Share this post


Link to post
Share on other sites

FileInstall("icon location", @TempDir & "\icon1.ico")

Then use: GUICtrlCreateIcon(@TempDir & "\icon1.ico")

If that helps

people always say use fileinstall.

but we all know thats not what the person is asking about.

they want a standalone .exe with the images inside.

this question has been asked so many times.

i think maybe you can do this with zednas resource thing-ama-jig-aling.

Share this post


Link to post
Share on other sites

FileInstall does work, its the easiest thing, to just run the .exe silently, and have it install the files, then use the files from that location, its easier than actually creating a .exe that only holds icons.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

FileInstall does work, its the easiest thing, to just run the .exe silently, and have it install the files, then use the files from that location, its easier than actually creating a .exe that only holds icons.

yeah fileinstall is probably the easiest way.

and when you run it, you check if the icon still exists, and if not fileinstall it again.

i have been working on a method of my own to add resources to an .exe

it is still a little buggy however.

see attached

Edit:

nothing special i just have included some resources and loaded them into the gui.

icon.exe

Edited by Tomb616

Share this post


Link to post
Share on other sites

Is it possible to include the .ico files used in the script into the exe file when comile?

Right now I have 2 .ico files that I use in a script, and I want to combine all 3 files after I compile it, so I just have to use the script and it will have the icon included.

Anyone know if thats possible?

Scite4AutoIt3 allows you to modify and add resources to the compiled script. Yes, that includes icons.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

wasn't what I was hoping for, but nevertheless it work like how I wanted

very simple too

thanks!

Share this post


Link to post
Share on other sites

Is it possible to include the .ico files used in the script into the exe file when comile?

Right now I have 2 .ico files that I use in a script, and I want to combine all 3 files after I compile it, so I just have to use the script and it will have the icon included.

Anyone know if thats possible?

Look here

solution: #AutoIt3Wrapper_Res_Icon_Add= and GUICtrlSetImage() using @ScriptFullPath

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  
Followers 0