Sign in to follow this  
Followers 0
Giuseppe

How can I include more than one icon in a .exe file?

7 posts in this topic

When I compile a script in a .exe file only the icon selected for the application is included in the exe file, if I use other icons for controls, is it possible to include that in the exe file? Normally I notice that this icons files are read out of .exe, like standalone files.

Thank you. Bye by Jo.

:)

Share this post


Link to post
Share on other sites



When I compile a script in a .exe file only the icon selected for the application is included in the exe file, if I use other icons for controls, is it possible to include that in the exe file? Normally I notice that this icons files are read out of .exe, like standalone files.

Thank you. Bye by Jo.

:)

If I understand correctly you need to lookup FileInstall 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

If I understand correctly you need to lookup FileInstall in the help file.

Yes, I read now the function:

FileInstall( "source", "dest" [, flag] )

It seem to be ok for me, but I try this, for example:

FileInstall("Z:\[sO+]\[WinXP]\Prove\info.gif", "Z:\[sO+]\[WinXP]\info.gif")

and then in the code I use directly the .gif file:

GUICtrlCreatePic("info.gif", 338, 1, 16, 16)

The .au3 script and the compiled .exe are togheter with the .gif in "Z:\[sO+]\[WinXP]\Prove"

Run script is ok.

Run .exe from the directory with the .gif is ok.

If I move the .exe into another directory, and run it, I don't see the gif image.

In the help of FileInstall() :

"These included files can then be "extracted" during execution of the compiled script"

Is "Extracted" refer to a particolar function?

I look into the .exe file with Resource Hacker and it don't have the info.gif.

Do you have some example of files included in script and then in the compiled .exe?

Thank you.

Share this post


Link to post
Share on other sites

Change this line

GUICtrlCreatePic("info.gif", 338, 1, 16, 16)

to

GUICtrlCreatePic("Z:\[sO+]\[WinXP]\info.gif", 338, 1, 16, 16)



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

Thank you very much.

Now is ok and I understand the function.

The gif file is included in .exe and extracted during the execution of the exe file in the destination path specified in the FileInstall(), so is better to use for the destination path a temporary files directory or delete the extracted files at the end of the exe program.

Bye by Jo.

:)

If you like this:

Func_fInvalidFileName__.au3

Share this post


Link to post
Share on other sites

butbutbut...

IS there a way to put more than one icon into an exe? It's something I'd like to do myself.

NOT FileInstall, but remain inside the exe, like regular programs store their document icons inside themselves.

I usually just create a dll with all my icons in it, but I'd really like to have them inside the exe (and stay in there, and be referenced in there) if possible.

anyone?

-mu

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