Changeset 573


Ignore:
Timestamp:
11/15/2008 12:29:50 AM (6 years ago)
Author:
lowjoel
Message:

Store all settings in the same registry key for all future v6 releases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/Eraser/Program.cs

    r562 r573  
    162162        { 
    163163            //Open the registry key containing the settings 
    164             RegistryKey pluginsKey = Application.UserAppDataRegistry.OpenSubKey( 
    165                 guid.ToString(), true); 
     164            const string eraserKeyPath = @"SOFTWARE\Eraser\Eraser 6"; 
     165            RegistryKey eraserKey = Registry.CurrentUser.OpenSubKey(eraserKeyPath, true); 
     166            if (eraserKey == null) 
     167                eraserKey = Registry.CurrentUser.CreateSubKey(eraserKeyPath); 
     168 
     169            RegistryKey pluginsKey = eraserKey.OpenSubKey(guid.ToString(), true); 
    166170            if (pluginsKey == null) 
    167                 pluginsKey = Application.UserAppDataRegistry.CreateSubKey( 
    168                     guid.ToString()); 
     171                pluginsKey = eraserKey.CreateSubKey(guid.ToString()); 
    169172 
    170173            //Return the Settings object. 
Note: See TracChangeset for help on using the changeset viewer.