Archive: Icon Update Inside Section


Icon Update Inside Section
I have a slight delima I have been trying to work through for a couple days now.

1. Need to grab and Icon from an .exe file and use that icon for the installer Icon. I know there is LoadImage and ExtractIcon, although I am having trouble getting it to work.

2. If I do extract the Icon to a file how would I get {Icon} to call this file, since I can not System::Call outside a Function or a Section, and I can not use {Icon} inside a Section or Function.

I may just be missing something simple, but I am at my wits end.


Thanks,
Neil


You can put the code in the .onGuiInit function (or a Modern UI custom GUIINIT function).


I think I may have not made myself totally clear on what I needed. I need to change the actual icon you see for the .exe file and not a icon when you are running the installer.

Basically what I am trying to do is encapsulate another installer inside the winamp one and I need to use that Icon and not a default one. and I may pass it any type of installer and I will not know what Icon is being used.

I may be trying to do more than I can and I may need to write an external program to extract the icon, but I was hoping I could get it all done within the installer program.


If you want to use the icon of another application, you can extract it using a resource editor and then une Icon and UnIcon (or MUI_ICON and MUI_UNICON if using the Modern UI).


There are many free (or limited free time) icon extractor programs on the internet.
Just search on google or yahoo.

-Stu


Thanks,
I actually found a free one and modified it to my needs to run form a command line, now to integrate it into the installer :)

-Neil