How to get the installation directory?
deployment, installation, windows, windows-installer
Solution
Use a registry key to keep track of your install directory, that way you can reference it when upgrading and removing the product.
Using WIX I would create a Component that creates the key, right after the Directy tag of the install directory, declaration
Problem
The MSI stores the installation directory for the future uninstall tasks. Using the `INSTALLPROPERTY_INSTALLLOCATION` property (that is `"InstallLocation"`) works only the installer has set the `ARPINSTALLLOCATION` property during the installation. But this property is optional and almost nobody uses it. How could I retrieve the installation directory?