MS - InstallSHield - how to disable Text Edit field?

longjumps used Ask the Experts™
In InstallShield MSI in somce dialog I have test edit field

How to disable and enable it?

 config URI
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Kent DyerIT Security Analyst Senior

I think you have to go into the InstallShield Studio (can't remember the exact name)..  But, you have to get in to the tool that edits the 64-bit installer to change the dialog..

This may also prove helpful too - Command-Line Options




InstallShield  Studio is called "InstallShield" ...

I need to disable Text Edit field one I press on radio button "site URI" and enable it when pressing "Your URI".

This is needed to be done in InstallShield script and not from command line.
You can follow the below steps to enable or disable controls in a dialog based on your radio button selection

Get status of the radio button to see whether selected or not
      CtrlGetState ( szDialogName, nOptionCtrl1 );
Get the handle of the dialog window
      hwndDlg = CmdGetHwndDlg(szDialogName);
Use following method to enable or disable the controls in the dialog using 3rd parameter to TRUE/FALSE
      _WinSubEnableControl(hwndDlg, nEditCtrl1, TRUE);

Hope this works.


Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial