I have an outdated application that installs directly on the c: user drive in a directory (e.g. c: \ MyApp). Unpleasant stuff. The problem is that the user can specify the second installation on the second disk (for example, e: \ MyApp), and they can have two different versions of the application installed immediately in any directory. They may also decide to install the application elsewhere in the directory tree, but these are the two most common locations.
I did not write this scheme. It makes the baby cry, as far as I know.
I need to write an installer to add a module to this scheme, and the user should be able to choose which installation they want to install. I thought I would try this on WiX.
How can I do it?
I was about to search a directory, for example
<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 place.
So how am I:
Make this search relative, not absolute? (the documentation says that this can be done, I just don’t see how).
If the user has multiple locations, tell them which installation to use?
source
share