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
- :
- Need help regarding the Console code for Custom Dialog.
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
Jan 08, 2009
03:40 AM
Need help regarding the Console code for Custom Dialog.
Hi all,
I have to created the custom dialog with:
1) Lable
2) Textfield
2) Radio buttons
However When I run the installer in console mode, the custom dialogs fields are not visible.
So I am writing the "console code” for these Custom Dialogs.
If anyone having any idea regarding the console code please let me know.
Thanks in advance
I have to created the custom dialog with:
1) Lable
2) Textfield
2) Radio buttons
However When I run the installer in console mode, the custom dialogs fields are not visible.
So I am writing the "console code” for these Custom Dialogs.
If anyone having any idea regarding the console code please let me know.
Thanks in advance
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jan 29, 2009
03:21 PM
Can you be more specific on what you are trying to do? Are you wondering how to write console mode code?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 26, 2009
09:44 AM
You need to select the Console Events tab on the bottom window of the Custom dialog and add the custom code for for it. You also need to do the same for Silent if you need to do any type of checking.
I have a Product Key Dialog and this is how I set it up: click the Console Event - select consoleInteraction from the 'Event:' drop down - it will add the consoleInteraction method - enter the code.
I have one text box on my dialog with the property PRODUCTKEY:
I have a Product Key Dialog and this is how I set it up: click the Console Event - select consoleInteraction from the 'Event:' drop down - it will add the consoleInteraction method - enter the code.
I have one text box on my dialog with the property PRODUCTKEY:
public void consoleInteractionProductKey(com.installshield.event.ui.ISDialogContext context)
{
TTYDisplay tty = ((ConsoleWizardUI)context.getWizardUI()).getTTY();
try {
String PRODUCTKEY = context.resolveString("$V(PRODUCTKEY)");
PRODUCTKEY = tty.prompt("Please Enter 18 Character Product Key: ", PRODUCTKEY);
context.getServices().getISDatabase().setVariableValue("PRODUCTKEY", PRODUCTKEY);
tty.printHRule();
tty.printLine("Product Key = " + PRODUCTKEY);
tty.printHRule();
}catch (ISDatabaseException dbe) {
context.getServices().logEvent(this, Log.ERROR, dbe);
}catch (ServiceException e) {
context.getServices().logEvent(this, Log.ERROR, e);
}
}