View Single Post
Old 10th March 2017, 10:51   #34
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 859
Use this to change the text (this may not work if using other dialogs with the same parent):
PHP Code:
Name "Test"
OutFile "Test1.exe"

page instfiles

!include "winmessages.nsh"

RequestExecutionLevel user

Section
  SpiderBanner
::Show
  FindWindow 
$"#32770" "" $hwndparent
  FindWindow 
$"#32770" "" $hwndparent $0
  GetDlgItem 
$$0 1000
  SendMessage 
$${WM_SETTEXT"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.

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
NSIS 3 POSIX Ninja
Wiki Profile
JasonFriday13 is offline   Reply With Quote