mirror of
https://github.com/claunia/apprepodbmgr.git
synced 2025-12-16 19:24:42 +00:00
Correctly open registry key as writeable.
This commit is contained in:
@@ -216,13 +216,14 @@ namespace osrepodbmgr.Core
|
||||
case DiscImageChef.Interop.PlatformID.WinCE:
|
||||
case DiscImageChef.Interop.PlatformID.WindowsPhone:
|
||||
{
|
||||
RegistryKey parentKey = Registry.CurrentUser.OpenSubKey("SOFTWARE").CreateSubKey("Canary Islands Computer Museum");
|
||||
RegistryKey parentKey = Registry.CurrentUser.OpenSubKey("SOFTWARE", true).CreateSubKey("Canary Islands Computer Museum");
|
||||
RegistryKey key = parentKey.CreateSubKey("OSRepoDBMgr");
|
||||
|
||||
key.SetValue("TemporaryFolder", Current.TemporaryFolder);
|
||||
key.SetValue("DatabasePath", Current.DatabasePath);
|
||||
key.SetValue("RepositoryPath", Current.RepositoryPath);
|
||||
key.SetValue("UnArchiverPath", Current.UnArchiverPath);
|
||||
if (Current.UnArchiverPath != null)
|
||||
key.SetValue("UnArchiverPath", Current.UnArchiverPath);
|
||||
key.SetValue("CompressionAlgorithm", Current.CompressionAlgorithm);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user