QtIFw: Deleteing a windows registry key with whitespace in name
Unsolved
Installation and Deployment
-
Hi,
i do not know how to delete a key in a windows registry, which has a whitspace in its name.
The following snippet does not work, because of the whitspace.
installer.execute(cmd, ["/c", "reg", ""DELETE", autostartPath, "/v", "Test test", "/f", "/reg:64"]);
The windows shell want to have the "" around the key, so i did it, but no success.
installer.execute(cmd, ["/c", "reg", ""DELETE", autostartPath, "/v", "\"Test test\"", "/f", "/reg:64"]);
If i call the last line in a windows shell, it works:
Admin-Windows shell:
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v "Test test" /f /reg:64
-
@Schenk said in QtIFw: Deleteing a windwos registry key with whitespace in name:
The following snippet does not work, because of the whitspace.
installer.execute(cmd, ["/c", "reg", ""DELETE", autostartPath, "/v", "Test test", "/f", "/reg:64"]);
The windwos shell want to have the "" around the key, so i did it, but no success.
installer.execute(cmd, ["/c", "reg", ""DELETE", autostartPath, "/v", "\"Test test\"", "/f", "/reg:64"]);
Is this only a typing error in the post or a copy of your actual trials?
Check the duplicated double quotes before DELETE