I have made a MSI-Package with WiX 3.8, which contains a property for the installfolder called "INSTALLLOCATION". Normally the MSI-package is called by a Bootstrapper-Bundle, which sets the property. In the MSI the property is defined like that:
<Property Id="INSTALLLOCATION"
Value="ProgramFilesFolder"
Hidden="no"/>
As You can see, the ProgramFilesFolder is the default value. Now we want - parallel to the Bootstrapper - have the possibility, to install the MSI-package by commandline. So i send the following command:
msiexec /i Setup.msi INSTALLLOCATION=C:\MyApplication
The MSI will be installed in the right place. So far, so good.
But when i try to uninstall it by ControlPanel/Programs or by commandline, it doesn't work, because of the default value "ProgramFilesFolder". Even when i try the follwing command:
msiexec /u Setup.msi INSTALLLOCATION=C:\MyApplication
What can i do, that the uninstall works?