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

Common questions about using Actual Installer.

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

Postby rcarballo » Thu Jul 30, 2020 1:52 pm

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
rcarballo
 
Posts: 11
Joined: Tue Feb 25, 2020 10:44 pm

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

Postby Leo » Tue Aug 04, 2020 6:45 am

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
http://www.actualinstaller.com
Leo
Site Admin
 
Posts: 355
Joined: Fri Jan 22, 2010 12:40 pm


Return to General Discussions

Who is online

Users browsing this forum: No registered users and 5 guests

cron