CPackWiX: replace slash with backslash in registry key path
Forward slash is not understood as a key path separator.
This commit is contained in:
parent
a0ce1e36b6
commit
7eea71ea57
|
@ -765,7 +765,7 @@ bool cmCPackWIXGenerator::CreateStartMenuShortcuts(
|
||||||
fileDefinitions.EndElement("RemoveFolder");
|
fileDefinitions.EndElement("RemoveFolder");
|
||||||
|
|
||||||
std::string registryKey =
|
std::string registryKey =
|
||||||
std::string("Software/") + cpackVendor + "/" + cpackPackageName;
|
std::string("Software\\") + cpackVendor + "\\" + cpackPackageName;
|
||||||
|
|
||||||
fileDefinitions.BeginElement("RegistryValue");
|
fileDefinitions.BeginElement("RegistryValue");
|
||||||
fileDefinitions.AddAttribute("Root", "HKCU");
|
fileDefinitions.AddAttribute("Root", "HKCU");
|
||||||
|
|
Loading…
Reference in New Issue