Skip to content
⌘ NSIS Forum Archive

Add welcome finish bitmap to all pages

5 posts

dexeux#

Add welcome finish bitmap to all pages

Is it possible to add the welcome finish bitmap to more than just the welcome and finish page.

I want to add it to the install files page.
Anders#
Anything is possible I guess.

Edit modern.exe with Resource Hacker so you can add a bitmap(static) control, then !define MUI_UI to this new UI. You still have to load the image yourself in the page show callback function.

See also:
* http://nsis.sourceforge.net/Image_in...dow_background
* http://nsis.sourceforge.net/ModernUI...stalling_files
dexeux#
On resource hacker i added this bitmap section

CONTROL "", 2011, STATIC, SS_BITMAP | WS_CHILD | WS_VISIBLE, 0, 0, 55, 200 
And within my gui init I tried to load the bmp, with the includes of the second link using:


InitPluginsDir
File "/oname=$PLUGINSDIR\modern-wizard.bmp" "C:\Users\david\pictures\welcome_img.bmp"
FindWindow $0 "#32770" "" $HWNDPARENT
GetDlgItem $0 $0 2011
System::Call '${sysLoadImage} (0, s, ${IMAGE_BITMAP}, 0, 0, ${LR_CREATEDIBSECTION}|${LR_LOADFROMFILE}) .r6' "C:\Users\user1\Documents\NSIS\welcome_img.bmp"
SendMessage $0 ${STM_SETIMAGE} ${IMAGE_BITMAP} $6
And my image does not appear
dexeux#
Nvm i got it to work.