I use WiX to install a plugin for software that I do not control. To install the plugin, I have to put the target folder in the registry key:
<Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="LocalAppDataFolder"> <Directory Id="APPROOTFOLDER" Name="Foobar Plugin" /> </Directory> </Directory> ... <DirectoryRef Id="APPROOTFOLDER"> <Component Id="register" Guid="240C21CC-D53B-45A7-94BD-6833CF1568BE"> <RegistryKey Root="HKCU" Key="Software\ACME\Plugins\FooBar"> <RegistryValue Name="InstallDir" Value="[APPROOTFOLDER]" Type="string"/> </RegistryKey> </RegistryKey> </DirectoryRef>
After installation, the registry HKCU\Software\ACME\Plugins\FooBar\InstallDir will contain the target installation path, but with a final " \ ". Unfortunately, for some strange reason, because of this, because of this, the main application (providing the plugin architecture) fails. If there is no slash, everything works fine!
Is there a way in WiX to get rid of the end slash?
One of the solutions I was thinking about is to simply add a β . β At the end of the path, however it doesn't seem to work in my scenario :( ..
installer path wix
beef2k
source share