Returns the HKCU or HKLM path for this software application based on the process that is running: Software\{CompanyName}\{ProductName}
Syntax
Visual Basic (Declaration) | |
---|
Public Shared ReadOnly RegistrySoftwarePath As String |
C# | |
---|
public static readonly string RegistrySoftwarePath |
Example
Library/Library.Test/TestSerializers.cs
C# | Copy Code |
---|
try {
Registry.CurrentUser.DeleteSubKeyTree(Path.GetDirectoryName(Constants.RegistrySoftwarePath));
} catch (ArgumentException) { } |
VB.NET | Copy Code |
---|
Try
Registry.CurrentUser.DeleteSubKeyTree(Path.GetDirectoryName(Constants.RegistrySoftwarePath))
Catch generatedExceptionName As ArgumentException
End Try |
Requirements
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
See Also