Dear Advanced Installer Support Team,
Could you please help us installing one of our features based on a property? We found many threads in your forum which is talking about the same topic, but none of them helped us in fixing our problem.
Our goal:
We have a Region dialog where the customer can select his region. If he selects the "Japan" region, we´d like to install our Japan language pack (this is the feature in question) on his PC by default.
Our .aip contains:
1. Property called THE_REGION_ID at "Install Parameters" tab
2. Under Dialogs we have "RegionSelectDlg" with 7 radio buttons. The selected value will be saved to THE_REGION_ID. This is working just fine, the value of "Japan" region is 14, our property is really getting the value of 14 after this dialog. You will see it when you will check out the EXE I´m sending attached.
3. Under "Organization" the Japanese feature (Languages -> Asian/Arabic -> Japanese) is set to "Not installed" by default. Since we´d like to install this feature in case of Japan region, we have the following condition in "Installed if:" textfield:
THE_REGION_ID = "14"
WORKING scenario:
Our EXE does exactly what it should do if we´re just clicking through our installer. It means if we choose Japan region for the first, then Japanese language will be enabled at features selection dialog.
NOT-WORKING scenario:
Start the installer. Go the the Region dialog and DO NOT select Japan. Select something else and navigate to the Feature selection dialog. At this point Japanes language is disabled as you´d expect it. Now click on the BACK buttons few times and go back to the Region dialog. Select Japan region and again go to features selection dialog. Suprisingly Japanese language feature is still off, although it should be enabled now.
The same happens the other way around: You select Japan region -> go to Features selection dialog -> Japan language is enabled. Then go back to Regions -> select a different region -> again to Feature selection -> Japan is still enabled although it shouldn´t be.
From the other AI threads I got the idea of executing your "UpdateFeaturesInstallStates"
https://www.advancedinstaller.com/user- ... all-states
but somehow it´s not working for me at all. I tried to call it after the Region selection dialog, also in the Init Events of the Feature selection dialog, but it seems the condition of the Japanese language feature is never "re-calculated".
Could you please try to reproduce it with the sample EXE I´m sending to you? Moreover I´m sending over our .aip file too.
Thanks in advance!
Best regards,
Zsolt