Hi,
I am using AdvancedInstaller (AI) for developing one installer which will install some files, drives service etc.
I have splitted the files to be installed into to features and components. The selection of which features/components to be installed, is based on one settings file(simple txt file) which contain some install code number. Based on the code number some components will be selected and others not. To achieve this, I implemented a VBScript based custom action to read Install code from settings text file and set some Installer Properties based on this read code value. And in Organization view, I set the Install condition based on this Install Property.
I set the sequence for the execution of custom action (to set properties based on read code) before "Searches" in "Wizard Dialog Statge". In custom action, i added a folder browse so that user can select settings file. Now The Browse dialog come before Prepare Dialog and Welcome Dialog, read settings and later in the installaton state, it install components and features correctly based on Installer properties which is set based on install code.
1. The first part of the issue: The browse dialog comes in back gound of Main Installer GUI. Is there anyway to bring Browse dialog to come in the front 0f Main GUI? I am using "Shell.Application" to pop-up browse dialog. I think, to bring a file selection dialog even before Welcome dialog
2. I tried many methods to solve above, But I could not find any solution to this. So I though of Putting a browse button in Folder Selection dialog. Here with this settings file is selected by user, read the settings and set Installer properties, using a custom action. But the components installation is not working as per the condition set based on Installer properties. As per my analysis, I understand, the components selection based on conditions is happening before Prepare dialog and changing installer properties later (after folder selection dialog) does not make any effect. Please let me know whethere my analysis is correct or not. If there any way to resolve this?
3. To resolve above above, I tried another method of adding a new dialog before PrepareDialog and WelcomeDialog(i am under the impression that Installer properties are to be set before PrePareDialog and Welcome dialog to make components selection is initialized correctly based on installer properties). In the New dialog, i put a browse button to select file. I could select file, but up on clicking "OK" in Brose Dialog, I got an error message that "Directory Manager is not Inialized". Please let me know how to resolve the issue>
Thanks,
Prasanth
FOLLOW US
Get the latest news in Application Packaging