Hi all,
I've got a legacy application that's installed directly to the user's c: drive, in a directory (like c:\MyApp). Nasty stuff. Problem is, the user can specify to have a second installation on a second drive (like e:\MyApp), and they can have two different versions of the application installed at once in either directory. They can also decide to install the app elsewhere in the directory tree, but those are the two most common locations.
I did not write this scheme. It makes baby Jesus cry, as far as I'm concerned.
I have to write an installer to add a module to this scheme, and the user needs to be able to select which installation they want to install the module on. I thought I'd try this in WiX.
How do I do this?
I was going to do a directory search like
<Property Id="MyAppInstallationSearch">
<DirectorySearch Id="MyAppDirectory" Path="C:\MyApp">
</DirectorySearch>
</Property>
and then:
<Directory Id="TARGETDIR" Name="MyAppInstallationSearch">
<Directory Id="INSTALLLOCATION" Name="AdditionalTools">
</Directory>
</Directory>
to have an installation location.
So how do I:
Make that search be relative, not absolute? (the documentation specifies that this can be done, I just don't see how).
If the user has multiple locations, give them a choice of which installation to use?