AI reads registry/.INI values at start-up: problem for us

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

AI reads registry/.INI values at start-up: problem for us

Post by rcarballo »

We created a command that runs using the "Before Installation" option. The command runs our utility that scans for certain settings and creates a special .INI entry for AI to read and set the CustomCheckBox accordingly.
We noticed that AI reads the .INI variable BEFORE our command executes. This is causing a problem in the installation,

-The CustomCheckBox is always set because the .INI variable does not exist in prior versions of our product. Our utility runs and sets the .INI variable accordingly but it is too late because AI has already set the default value.

We tested our theory by running the installation and checking the variable's value in the .INI file when AI is waiting at the Folder page: CustomCheckBox is checked but the .INI variable indicates it should be unchecked.
We know that AI reads the variable correctly: If we run the installation a second time, the CustomCheckBox is unchecked (variable was set in the first run---utility actually sets it again in the second run.)

Is there a workaround to this problem?

Sincerely,
-AC
Leo
Site Admin
Posts: 455
Joined: Fri Jan 22, 2010 12:40 pm

Re: AI reads registry/.INI values at start-up: problem for u

Post by Leo »

Add the following command after your command that launches your utility:

Code: Select all

File: GETVARIABLES
Parameters:
Timing: Before Installation
it will read custom variables again.
Leo,
Actual Installer Team
https://www.actualinstaller.com
Post Reply