I have set the variable SILENT to False and created a new variable SILENTMODE which contains the actual value of the setup-mode.
So, is you use /s the SILENTMODE = True.
Using this method I'm able to prompt users for a reboot and even show a dialog at wish.
Which brings me up to my problem.
Because the setup is run in Silend mode, I do not want the users to see any buttons on the dialog.
I thought the simple way was to reset the dialogs height from 388 to 325.
In the Dialog designer tool, I've placed a invisible label (lblMode) with caption $SILENDMODE$.
I've also created an object rule :
Code: Select all
IF(lblMode.Caption = True) THEN frmWelcome.ClientHeight :=325;
IF(lblMode.Caption = True) THEN frmWelcome.Height :=325;
Unfortunally, the form will still have the heigts set to the default (388).
I thought the size of the form could not be reset, because one (or more) commandbuttons were enabled, in this case the cancel button.
But when I created a object rule to disable and hide all of the command buttons, the form still had it's original heights.
Is it even possible to set the Height of a dialog at runtime ?