瀏覽代碼

Oops. Wrote to the wrong hive...

Eric Reed 12 年之前
父節點
當前提交
241bddcf78
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      MediaBrowser.Installer/MainWindow.xaml.cs
  2. 1 1
      MediaBrowser.Uninstaller.Execute/MainWindow.xaml.cs

+ 1 - 1
MediaBrowser.Installer/MainWindow.xaml.cs

@@ -392,7 +392,7 @@ namespace MediaBrowser.Installer
         /// <param name="targetExe"></param>
         private void CreateUninstaller(string uninstallPath, string targetExe)
         {
-            using (var parent = Registry.LocalMachine.OpenSubKey(
+            using (var parent = Registry.CurrentUser.OpenSubKey(
                          @"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall", true))
             {
                 if (parent == null)

+ 1 - 1
MediaBrowser.Uninstaller.Execute/MainWindow.xaml.cs

@@ -207,7 +207,7 @@ namespace MediaBrowser.Uninstaller.Execute
         private void RemoveUninstall()
         {
 
-            using (var parent = Registry.LocalMachine.OpenSubKey(
+            using (var parent = Registry.CurrentUser.OpenSubKey(
                 @"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall", true))
             {
                 if (parent == null)