PDA

View Full Version : Problem With Scripting



DiegoCP
02-02-2015, 07:30 AM
Helo! I'm at InstallShield and scripting as well and im having some issues!!! :X

I created a customDialog through installscript using your guides but now i have no ideia how to add a combobox and fill it with all the languages included in the installer.

Here is the script i have.. Need help having trouble getting it to do what i need!


// control identifiers
#define BUTTON_NEXT 1
#define BUTTON_BACK 12
#define BUTTON_CANCEL 9

prototype NUMBER CustomDialog( );
function NUMBER CustomDialog( )
number nReturn;
BOOL nControl,bDone;
begin
EzDefineDialog(
"CustomDialog", // nickname for dialog
ISUSER, // DLL containing the dialog’s resources
"CustomDialog", // name of dialog in Dialogs view
0); // numeric resource ID for dialog; not used here


case DLG_INIT:
// Initialize the back, next, and cancel button enable/disable states for this dialog
// and replace %P, %VS, %VI with IFX_PRODUCT_DISPLAY_NAME, IFX_PRODUCT_DISPLAY_VERSION,
// and IFX_INSTALLED_DISPLAY_VERSION, respectively, on control IDs 700-724 and 202.
hwndDlg = CmdGetHwndDlg("CustomDialog");
SdGeneralInit("CustomDialog", hwndDlg, 0, "");



while (!bDone)
nControl = WaitOnDialog("CustomDialog");
switch (nControl)
case BUTTON_BACK:
// user clicked Back
nReturn = BUTTON_BACK;
bDone = TRUE;

EndDialog("CustomDialog");
ReleaseDialog("CustomDialog");
case BUTTON_NEXT:
// user clicked Next
nReturn = BUTTON_NEXT;
bDone = TRUE;

EndDialog("CustomDialog");
ReleaseDialog("CustomDialog");
case BUTTON_CANCEL:
// user clicked Cancel; ask user to verify cancellation
Do(EXIT);
endswitch;
endwhile;


end;


Thank You for Your Help!