Hello,
I would like to create an installer that provides the following functionality...
First time installation - Files get installed. All files are installed under [AI_ProgramFiles]\TCS Healthcare\[ProductName]. One of the files that is installed is an ini file that will be configured as part of the installation. I have created a "Config" dialog that captures the values that get written to the ini file. This works just fine. When the installer is run for the first time, the ini file does not exist on the target machine so there are no values that can be retrieved from the ini file and thus there are no values to display in the "Config" dialog.
When the installer is run in "Maintenance/Repair" mode, I need to read the ini file (that was created during the first time installation) and display the values on the "Config" dialog. This I am unable to do! I believe the issue is that Advanced Installer, when being run in "Maintenance/Repair" mode does not see the location of where the ini file is due to the timing of when my "Search" properties are evaluated and when the predefined properties I am using to specify the PATH to the ini location are determined. I say this because:
1. If I specify the Path of the ini to be in a folder identified as [APPDIR] or [AI_ProgramFiles]\TCS Healthcare\[ProductName] the "Search" properties are not being set (i.e. the ini values do not display on the "Config" dialog). It would seem that when the "Search" is performed to get the ini values, the Advanced Installer "predefined" properties have yet to be defined/determined.
2. If I specify the path of the ini to be [WindowsVolume]\[ProductName] the "Search" properties are being found in the ini file. It would seem that when my "Search" is performed using these "predefined" properties, that they are defined.
Note, the installer does not install the ini in [WindowsVolume]\[ProductName] but rather in [AI_ProgramFiles]\TCS Healthcare\[ProductName]. For testing purposes, I manually created the ini in [WindowsVolume]\[ProductName] to test my theory that it could be found and that the ini values displayed on the "Config" dialog.
I need to be able to install the ini file (and configure it's content) when the installer is run for the first time. All subsequent attempts to run the installer in "Maintenance/Repair" mode need to be able to:
- Find the ini file that was originally installed based on the location of where the application was installed.
- Display the ini values in the "Config" dialog
- Update the ini file that was originally installed.
This would seem to be a common task that an installer would need to perform. Please explain what I am doing wrong and how I can accomplish this.
Thanks in advance,
Todd
FOLLOW US
Get the latest news in Application Packaging