Sharing a Virtual Directory with two features

Uma's picture

Hi

I have two features in my installation (written with Wise Installation Studio) - Feature 1, Feature2.

Feature1 has a VirtualDirectory. How do I make Feature2 have the same virtual directory?



If I try and create the same virtual directory via installation expert, I get the error that the virtual directory already exists.



Thanks!

Uma-

EdT's picture

The reason for that is that Microsoft standards specify that there should only ever be one instance of any resource within an MSI file. The DuplicateFiles table, for example, is provided to allow one file to be installed to multiple locations.



Thus in your particular requirement, would I be right in assuming that either Feature1 or Feature2 are installed, but not both? If that is the case, then the solution is to move your virtual directory into Feature3 and make that feature install every time, regardless of whether the user selects Feature1 or Feature2

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

AngelD's picture

Features can also share the same component so that may also be a solution.

Uma's picture

So if I create one Virtual Directory in Installation Expert linked to Feature 1 (It creates a WiseWebsite compenent in the Component page), I can share that component to Feature2 using the FeatureComponent table? (I did that in a little prototype wsi and it SEEMS to work)



User will have the option to install Feature 1 or Feature 2 - since both these features will install DIFFERENT files. There MIGHT be some common files between these features that will be installed with msms.



Thank you very much for your help!

Uma-