Using Advanced Installer 6.1:
I have a setup project containing two distinct features. One feature is a web application, and the other is a standalone application not requiring IIS. I would like to conditionally create a virtual directory for the web application based on whether or not the web application feature is being installed. I have added the following condition for the web application feature (MYWEBAPP) in the Install Condition field for the virtual directory:
(&MYWEBAPP = 3) OR (&MYWEBAPP = 2)
This appears to work when installing the product for the first time, or when removing the product entirely. If I select the MYWEBAPP feature during install the virtual directory is created properly, and if I have not selected it, the virtual directory is not created, as expected. Either way, it is removed properly on uninstall.
However, if I do not install MYWEBAPP during the first install, there does not seem to be a way to get the virtual directory created if I later *modify* the installation and add the MYWEBAPP feature (conversely, if I remove the MYWEBAPP feature only, the virtual directory remains).
Looking at the MSI file in Orca, it appears that the condition I added for virtual directory creation is never even evaluated during a modification, as it is superseded by a higher level IIS condition that only evaluates to true if we are doing a first time install or a complete removal.
Is there any other way to create/remove a virtual directory when a feature is being installed, regardless of whether or not it is a first time install?
Thanks.
John
FOLLOW US
Get the latest news in Application Packaging