I have a custom dialog upon which, I wish to disable/enable text input boxes.
The 'Enabled' property can be accessed via DevStudio's Dialog editor but I have so far failed to set this programmatically using installscript.
Has anyone discovered how? The alternative of having duplicate dialogs with different statically set properties is just to 'Yuck' to contemplate!!!.
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

Custom Dialog
Started by
jeeves
, Jul 06 2004 15:38
4 replies to this topic
Posted 06 July 2004 - 16:04
Not sure if this is your problem, but Windows Installer dialogs are very basic and don't provide you with all the events you need to refresh all types of controls on the dialog based on user interaction, here is some detail: http://community.ins...threadid=114751
Regards
-Stein Åsmul
-Stein Åsmul
Posted 07 July 2004 - 09:09
@Glytzhkof: this is pure InstallScript, no MSI
@jeeves: Add this to your dialog script:
@jeeves: Add this to your dialog script:
CODE |
hwndItem = GetDlgItem( hwndDlg, nControlID ); if (!IsWindow( hwndItem)) then return FALSE; endif; EnableWindow( hwndItem, TRUE); // or FALSE to disable |
Look at the SdLicense2Dlg.rul for a complete sample.
Stefan Krüger
InstallSite.org twitter facebook
Posted 07 July 2004 - 09:25
Sorry
. I have started to use the "Today's active topics" feature, and I failed to look at the forum the post was in.

Regards
-Stein Åsmul
-Stein Åsmul
Posted 07 July 2004 - 13:25
Thanks for the advice Guys. Much appreciated.
Technical Build Manager, Worksuite Ltd, Swindon (UK)