Skip to content
⌘ NSIS Forum Archive

EnableWindow and FileRequest browse button

3 posts

Angus Leeming#

EnableWindow and FileRequest browse button

I can change the activation state of a FileRequest widget with


; ${_state} is 0 or 1
FindWindow ${_dialog_id} "#32770" "" $HWNDPARENT
GetDlgItem ${_widget_id} ${_dialog_id} 1208 ; Field 9
EnableWindow ${_widget_id} ${_state}
but of course the state of the associated Browse button remains unaltered.

How to I go about getting its ID?

Angus
Angus Leeming#
You'd think I'd try the simple things first, wouldn't ya? Digging away in InstallOptions.cpp...

Thanks you,
Angus