|
|
#1 |
|
Senior Member
|
I have created a custom page (for InstallOptionsEx) that contains among other things two fields for images/icons. I have also added two different icons in my file using a small script that injects the second icon to the header then compresses it with upx (using the --compress-icons=0 flag)
In other words in my NSIS file I have code: and header.cmd is code: Once I initiallize the page both images show FirstIcon.ico. If I change my .ini file that generates the page, so that it points to the exe containing the icons then I get two different icons on the page, but SecondIcon.ico is displayed as if it was 32x32 extraploated to 128x128. Is there a way to change any of the images on the page before displaying it? I am not sure how to use, say, {STM_SETICON} or something similar.Something like this: code: I played around with the ?? using the icon index in my file etc but couldn't get it to work ... I found a thread that suggested (for a different issue though) to use a system call to LoadIcon, but then I am not sure how to pass the information to the SendMessage command ... Any ideas? CF |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Not tested, but should work.
code: -Stu |
|
|
|
|
|
#3 |
|
Senior Member
|
Thanks for the info Afrow UK
![]() I had seen in this thread a similar example but I was trying to get the ico from within my installer, without extracting it. Since it already is allocated as a resource, isn't there a way to tell the window to use that specific resource instead of another one? CF |
|
|
|
|
|
#4 | |
|
Senior Member
|
I think what I am looking for is something like this:
which does not work since according to this MSDN pagecode: Quote:
![]() CF |
|
|
|
|
|
|
#5 |
|
Senior Member
|
Got it
![]() Note that 104 is the resource ID that I am using for the second icon inside my installercode: CF |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|