Archive: Using an External License Text - Possible?


Using an External License Text - Possible?
Hi!

I was wondering whether it is possible to easily make NSIS load and show the license/readme blah (the stuff the user has to accept before installing) from an external file during runtime.

Thank you
/Matthias

(To those who read this posting for the 2nd time: sorry for the re-post. At least it's got the right subject now...)


You can send a WM_SETTEXT message.


Hi Joost,

and thank you for your quick response. Sounds plausible, yet I am quite unexperienced with win32 API stuff of any kind. Intuitively (instinct supported by your hint), I'd first try to find the HWND handle of the license text box (how?), then send a WM_SETTEXT message to it, containing the pointer to my null-terminated string. Right?

Regards
/Matthias


See the users manual for information about SendMessage. To send a string param, put STR: before the parameter, for example: "STR:Some string".

You can use GetDlgItem to get the window handle of the textbox, the control ID is 1000 (note it's on the inner window).