This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Creating a custom dialog with InstallScript
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 03, 2009
10:37 AM
Creating a custom dialog with InstallScript
I am confused on what would be the best option to create a custom dialog. I'm not sure whether to create a brand new custom dialog or modify one of the SD dialogs.
Second, if I modify an existing dialog where do I put that code? (i.e. CtrlGetText("CustomDialog", 1000, svEdit))
Do I create a new .rul file?
Is there a complete example of a custom .rul file you can direct me to?
I need a dialog similiar to one of the existing dialogs, plus maybe an extra text box. Then I need another dialog that implements a list box from user interaction.
Second, if I modify an existing dialog where do I put that code? (i.e. CtrlGetText("CustomDialog", 1000, svEdit))
Do I create a new .rul file?
Is there a complete example of a custom .rul file you can direct me to?
I need a dialog similiar to one of the existing dialogs, plus maybe an extra text box. Then I need another dialog that implements a list box from user interaction.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 03, 2009
11:41 AM
The help library topic "Using InstallScript to Implement Custom Dialogs" describes the basic script code that needs to be implemented for a new dialog.
For existing dialogs, you can use the event dropdown in the InstallScript view (Dialog Source) to add the code for an existing InstallScript dialog. The code can then be modified as needed to support new controls or change the behavior of the dialog.
For existing dialogs, you can use the event dropdown in the InstallScript view (Dialog Source) to add the code for an existing InstallScript dialog. The code can then be modified as needed to support new controls or change the behavior of the dialog.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 03, 2009
11:54 AM
Thank-you, I'm making progress by following the Help Topic.
I have a CustomDialog.rul file with the following
prototype NUMBER CustomDialog( );
#define TEXT1_INPUT 1302
#define GROUPBOX 1301
function NUMBER CustomDialog()
begin
EzDefineDialog("CustomDialog", ISUSER, "CustomDialog",1302);
end;
Plus,
I have added the following to my Setup.Rul after the Dlg_Welcome
Dlg_CustomDialog:
nResult = CustomDialog();
Yet, my dialog does not display. Any thoughts ?
I have a CustomDialog.rul file with the following
prototype NUMBER CustomDialog( );
#define TEXT1_INPUT 1302
#define GROUPBOX 1301
function NUMBER CustomDialog()
begin
EzDefineDialog("CustomDialog", ISUSER, "CustomDialog",1302);
end;
Plus,
I have added the following to my Setup.Rul after the Dlg_Welcome
Dlg_CustomDialog:
nResult = CustomDialog();
Yet, my dialog does not display. Any thoughts ?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 03, 2009
12:05 PM
Never mind, it looks like I solved my own stupidity 🙂 just getting used to the scripting language, and all the examples. I need to implement the WaitOnDialog loop for it to display.
Thanks for your help
Thanks for your help