Hi,
Currently using Advanced Installer 7.6.1 with licence type enterprise.
I have a problem with an MSI with regards to installation folder. I just don't really understand this area of the MSI and installation. I have done some searching in the forum but it still isn't clear.
I am in the process of combining 2 MSIs. Basically adding in the second MSI as a feature on the first.
The problem I have is that I am trying to install the feature into a specific directory which is detected with a custom action.
I have a property named "SOFT_DIR" and is set to a starting value of "0". I have created a Folder that is based off that property.
There is a custom action that runs under InstallExectureSequence -> Begin which goes and reads the registry and locates the required path and sets the SOFT_DIR property.
There is an error message action after that which is the SOFT_DIR value is still 0 then it will error.
So the problem of course is that I get an error when running the MSI of "Could not access network location 0". I understand that at this point it is running the CostFinalize, but I thought that if I was in before that it would be ok.
The previous MSI which I am incorporating used this same method and worked - but I think that was because it was set to Limit to basic user interface.
so anyway.. .my basic requirement is that if the Feature is selected I want to install particular files to a folder which is obtained from a custom action. The custom action checks to see if a registry value is there which is basically confirming that the software is install and also tells me the folder in which it is installed to. If that value in the registry isn't there then I need to stop the installation as the software is not available (out of interest I am checking if Lotus Notes is installed, and getting the folder in which it is installed to).
any hints?
Thanks
Jeff
FOLLOW US
Get the latest news in Application Packaging