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: How to access element of a dialog in 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
‎Feb 15, 2008
08:45 AM
How to access element of a dialog in installscript
Hi all,
I am using Installshield professional 2008 on on windows XP service pack2. I have a query.
I have a installscript project and i have default dialogs of installshield i need to know how to get values of elements in the dialog.
I have a standard setup type dialog which has radio buttons like complete radio button and custom radio button.
How do i access these elements and ascertain its values.
Pls help as it is urgent............
I am using Installshield professional 2008 on on windows XP service pack2. I have a query.
I have a installscript project and i have default dialogs of installshield i need to know how to get values of elements in the dialog.
I have a standard setup type dialog which has radio buttons like complete radio button and custom radio button.
How do i access these elements and ascertain its values.
Pls help as it is urgent............
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 18, 2008
04:25 AM
Hi,
the way i did it, was to assign unique value identifiers to each of the buttons.
When a button is pressed, a function uses a case statement to determine which button was pressed.
So this was you can determine which button was pressed and proceed with the function as you want to.
the way i did it, was to assign unique value identifiers to each of the buttons.
When a button is pressed, a function uses a case statement to determine which button was pressed.
So this was you can determine which button was pressed and proceed with the function as you want to.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 27, 2008
12:24 PM
heko,
Vijay_K's answer is for custom dialogs. Are you using custom dialogs or standard SD dialogs? From your post it looks like you are using standard dialogs and if that is the case you can get the answer when the dialog returns. The standard code looks like;
You can set the default value of the radio buttons by setting nSetupType to either CUSTOM or COMPLETE. When the dialog returns it will have set nResult to what the user chose and you can evaluate it then.
Cheers,
ME
Vijay_K's answer is for custom dialogs. Are you using custom dialogs or standard SD dialogs? From your post it looks like you are using standard dialogs and if that is the case you can get the answer when the dialog returns. The standard code looks like;
Dlg_SetupType2:
nSetupType = CUSTOM;
szMsg = "";
szTitle = "";
//{{IS_SCRIPT_TAG(Dlg_SetupType2)
nResult = SetupType2( szTitle, szMsg, "", nSetupType, 0 );
//}}IS_SCRIPT_TAG(Dlg_SetupType2)
if( nResult = BACK ) then
goto Dlg_SdRegisterUser;
else
nSetupType = nResult;
if( nSetupType != CUSTOM ) then
nSize = 0;
szTargetPath = TARGETDIR;
FeatureCompareSizeRequired( MEDIA, szTargetPath, nSize );
if( nSize != 0 ) then
MessageBox( szSdStr_NotEnoughSpace, WARNING );
goto Dlg_SetupType2;
endif;
endif;
endif;
You can set the default value of the radio buttons by setting nSetupType to either CUSTOM or COMPLETE. When the dialog returns it will have set nResult to what the user chose and you can evaluate it then.
Cheers,
ME