Page 1 of 1

GETVARIABLES: not working

Posted: Mon Aug 09, 2021 9:38 pm
by rcarballo
We are running v8.3 Pro.

Our script uses the custom check box variable (CustomCheckBox) in order to put a check mark on a field to indicate that our Demo files will be installed. We run our helper app to set some variables in the .INI file before the installation runs and we placed a GETVARIABLES command after this command. The .INI variable ("demofiles") is set to YES or NO by the helper app; this sets the value for <SetCustomCheckBox> variable.

If the .INI file is missing, the check mark is correctly placed. We configured the <SetCustomCheckBox> variable to default to YES if "demofiles" variable is not found in the .INI file.

We confirmed that the GETVARIABLES is not updating AI's variables by simply doing the following.

1) Run the installation for the first time. The CustomCheckBox is set to YES because the .INI file doesn't exist. Our Demo files are installed.

2) Edit the .INI file and set "demofiles" to YES. We know that our helper app will change it to NO when it runs BEFORE the GETVARIABLES command runs.

3) Run the installation again. Our helper app runs and sets "demofiles" to NO. We confirmed this by viewing the .INI file. GETVARIABLES command runs but AI does not update the "demofiles" variable and subsequently <SetCustomCheckBox>. AI has put the check mark in the field and our Demo files will be re-installed.

Re: GETVARIABLES: not working

Posted: Tue Aug 10, 2021 5:26 am
by Leo
Please make sure that your helper app is launched with a flag 'Wait'.

Re: GETVARIABLES: not working

Posted: Tue Aug 10, 2021 3:42 pm
by rcarballo
I have confirmed that the "Wait" flag is checked.

Re: GETVARIABLES: not working

Posted: Thu Aug 12, 2021 5:18 am
by Leo
Please send your project file or screenshots (pages: Interface / Custom, System / INI) at our email (click Help / Support).

Re: GETVARIABLES: not working

Posted: Mon Sep 20, 2021 1:38 pm
by Leo
In new version 8.4, we added a feature to set states for custom components when calling GETVARIABLES.