beserk1 Posted March 22, 2008 Share Posted March 22, 2008 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? Link to comment Share on other sites More sharing options...
Swift Posted March 22, 2008 Share Posted March 22, 2008 FileInstall("icon location", @TempDir & "\icon1.ico") Then use: GUICtrlCreateIcon(@TempDir & "\icon1.ico") If that helps Link to comment Share on other sites More sharing options...
Tomb Posted March 22, 2008 Share Posted March 22, 2008 FileInstall("icon location", @TempDir & "\icon1.ico")Then use: GUICtrlCreateIcon(@TempDir & "\icon1.ico")If that helpspeople 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. Link to comment Share on other sites More sharing options...
Swift Posted March 22, 2008 Share Posted March 22, 2008 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. Link to comment Share on other sites More sharing options...
Tomb Posted March 22, 2008 Share Posted March 22, 2008 (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 .exeit is still a little buggy however.see attachedEdit:nothing special i just have included some resources and loaded them into the gui.icon.exe Edited March 22, 2008 by Tomb616 Link to comment Share on other sites More sharing options...
GEOSoft Posted March 22, 2008 Share Posted March 22, 2008 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!" Link to comment Share on other sites More sharing options...
beserk1 Posted March 25, 2008 Author Share Posted March 25, 2008 wasn't what I was hoping for, but nevertheless it work like how I wanted very simple too thanks! Link to comment Share on other sites More sharing options...
Zedna Posted March 25, 2008 Share Posted March 25, 2008 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 Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now