Old 27th April 2011, 09:46   #1
Junior Member
Join Date: Apr 2011
Posts: 6
fill textbox on button click in MUI Directory Page

i have added custom button using Resource Hacker on the MUI Directory Page of the installer, now i want that when the button is clicked then the Default Textbox where the user enters the InstallDir (the path where the application is installed), is filled with some specified text. please help me with the code?
nsichildnew is offline   Reply With Quote
Old 28th April 2011, 08:17   #2
Major Dude
T.Slappy's Avatar
Join Date: Jan 2006
Location: Slovakia
Posts: 566
Send a message via ICQ to T.Slappy
This is very simple, as I mentioned in this thread: http://forums.winamp.com/showthread.php?t=330068

Just use WM_SETTEXT to set text in Edit box:
PHP Code:
!define DEFAULT_TEXT "C:\Program Files\Application"

$"#32770" "" $HWNDPARENT
$$0 1019

Cool looking installers with custom design: www.graphical-installer.com
Create Setup Pages easily: www.install-designer.com
Build installers in Visual Studio 2005-2022: www.visual-installer.com
or RAD Studio 2009 - 11 Alexandria: www.rad-installer.com
T.Slappy is offline   Reply With Quote
Old 28th April 2011, 13:39   #3
Senior Member
jiake's Avatar
Join Date: Oct 2007
Location: Shanghai, China
Posts: 207
Using ButtonEvent plugin, and you must make sure the button ID is the only one.

Contact me: 137729898@qq.com
jiake is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

button, custom, event, mui

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump