@JasonFriday13 Thanks a lot! Works as expected.
SpiderBanner plugin
36 posts
@develar
I've been reading your other thread, and just so you know, MUI_HEADERIMAGE_BITMAP is handled behind the scenes to extract the file at runtime so that it can be displayed. This doesn't happen for plugin calls so you have to use File /oname=$PLUGINSDIR\headerico.ico "${HEADER_ICO}" to include the icon and extract it to the plugins directory, then use SpiderBanner::Show /MODERN /ICON "$PLUGINSDIR\headerico.ico" to show it.
I've been reading your other thread, and just so you know, MUI_HEADERIMAGE_BITMAP is handled behind the scenes to extract the file at runtime so that it can be displayed. This doesn't happen for plugin calls so you have to use File /oname=$PLUGINSDIR\headerico.ico "${HEADER_ICO}" to include the icon and extract it to the plugins directory, then use SpiderBanner::Show /MODERN /ICON "$PLUGINSDIR\headerico.ico" to show it.
@JasonFriday13 Hi. Could you please add an option to translate text "Installing, please wait..."?
Use this to change the text (this may not work if using other dialogs with the same parent):
Name "Test"
OutFile "Test1.exe"
page instfiles
!include "winmessages.nsh"
RequestExecutionLevel user
Section
SpiderBanner::Show
FindWindow $0 "#32770" "" $hwndparent
FindWindow $0 "#32770" "" $hwndparent $0
GetDlgItem $0 $0 1000
SendMessage $0 ${WM_SETTEXT} 0 "STR:Text changed!"
Sleep 3000
SpiderBanner::Destroy
SectionEnd Doing it this way means the plugin code remains unchanged. I knew it was possible to change it from the nsis script, I just never tried it until now.@JasonFriday13 Thanks a lot. One note — it is very important to not forget to prepent text "STR:" otherwise text will be empty 🙂
Yep, that's why it's in the example I gave 🙂.