cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
marketware
Level 6

sdFinish why won't checkbox display?

I have customized the sdFinish Dialog to remove the Readme file checkbox, and have left the "Yes, I want to launch" checkbox. It's visible property is true, but it doesn't display?

Here is the code:

Disable(STATUSEX);
szTitle = "";
szMsg1 = "";
szMsg2 = "";

szOpt1 = "";
szOpt2 = "";

bvOpt1 = FALSE;
bvOpt2 = FALSE;

if ( BATCH_INSTALL ) then
SdFinishReboot ( szTitle , szMsg1 , SYS_BOOTMACHINE , szMsg2 , 0 );
else

nResult = SdFinish (szTitle, szMsg1, szMsg2, szOpt1, szOpt2, bvOpt1, bvOpt2);

if (nResult = IDCANCEL) then
// The user clicked the window's close button.
Do (EXIT);
endif;

if (nResult = CANCEL) then
Do (EXIT);
endif;

if (bvOpt2) then
PROGRAMFILETOLAUNCHATEND = INSTALLDIR +"MW10.EXE";
LaunchApp (PROGRAMFILETOLAUNCHATEND,"");
endif;

endif;

Can anyone tell me what I am missing?

Thanks.

bob
Labels (1)
0 Kudos
(2) Replies
J_anitha
Level 8

Set "szOpt2" to the text which you want to display for the checkbox.
Checkbox is not getting displayed because you have set szOpt2 = "".
0 Kudos
marketware
Level 6

Thank you. I thought if you left it blank it would display the default value entered in the dialog editor.

It works!

bob
0 Kudos