I've a problem to install an extra feature during maintenance install to the same location where I installed another feature during first time install.
This is my situation:
Default, the INSTALLDIR has the value 'C:\Program Files\<Company Name>\'.(Defined within product properties).
When I run a first time install, I select only featureA and set the installationlocation to 'D:\Program Files\<Company Name>\'.
When I rerun my installer afterwards, I enter maintenance mode. When I select the 'Modify' option, I come into the custom selection dialogbox.
The difference here is that I cannot browse to another path(this is what I expected) but I see that the targetlocation is again the default one and not the one where I installed the first feature.
Via an installscript custom action(MSIGetProductInfo) I'm able to retrieve the installlocation of the first install but how do I set the Installlocation during the maintenance run to this location??
I already tried to use MSISetProperty within the same installscript custom action, to give INSTALLDIR the value of the retrieved installlocation, but this won't work. For some reason, INSTALLDIR still gets the default value. Is this because I call the installscript custom action to early within the sequence? I placed this Custom Action After CostFinalize within the UI Sequence.
So, the two things I want to achieve:
- See the INSTALLLOCATION of the first install run within the customsetuptype dialog of the maintenance run.
- Make extra features selected during maintenance install, install within the same folder that was selected during the first installrun.
Thanks for any kind of information.
Christoph