GETVARIABLES: not working

Common questions about using Actual Installer.
Post Reply
rcarballo
Posts: 17
Joined: Tue Feb 25, 2020 10:44 pm

GETVARIABLES: not working

Post 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.
Leo
Site Admin
Posts: 393
Joined: Fri Jan 22, 2010 12:40 pm
Contact:

Re: GETVARIABLES: not working

Post by Leo »

Please make sure that your helper app is launched with a flag 'Wait'.
Leo,
Actual Installer Team
http://www.actualinstaller.com
rcarballo
Posts: 17
Joined: Tue Feb 25, 2020 10:44 pm

Re: GETVARIABLES: not working

Post by rcarballo »

I have confirmed that the "Wait" flag is checked.
Leo
Site Admin
Posts: 393
Joined: Fri Jan 22, 2010 12:40 pm
Contact:

Re: GETVARIABLES: not working

Post by Leo »

Please send your project file or screenshots (pages: Interface / Custom, System / INI) at our email (click Help / Support).
Leo,
Actual Installer Team
http://www.actualinstaller.com
Leo
Site Admin
Posts: 393
Joined: Fri Jan 22, 2010 12:40 pm
Contact:

Re: GETVARIABLES: not working

Post by Leo »

In new version 8.4, we added a feature to set states for custom components when calling GETVARIABLES.
Leo,
Actual Installer Team
http://www.actualinstaller.com
Post Reply