<RegistryKey Id="MyServerRegInstallDir" Root="HKLM" Key="Software\MyApp\Server" Action="create">
<RegistryValue Name="InstallDir" Type="string" Value="[INSTALLDIR]" />
<RegistryValue Name="DataDirectory" Type="string" Value="[MYAPPDATADIR]" />
</RegistryKey>
The subkeys InstallDir and DataDirectory is deleted on uninstall. How do I prevent it?
Ideally Action="create" must do it.