Jump to content

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


Recommended Posts

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.

:)

Link to comment
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.


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

Link to comment
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.

Link to comment
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)


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

Link to comment
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

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...