From 59f537715e7adc9fe0c13c2a53524905ab1c7589 Mon Sep 17 00:00:00 2001 From: Toby Hu Date: Tue, 3 May 2016 15:03:11 -0700 Subject: [PATCH] use shellfolder instead of installfolder --- src/Uninstall_Wrapper/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Uninstall_Wrapper/Program.cs b/src/Uninstall_Wrapper/Program.cs index 698d350..48969a1 100644 --- a/src/Uninstall_Wrapper/Program.cs +++ b/src/Uninstall_Wrapper/Program.cs @@ -191,7 +191,7 @@ private static IEnumerable GetVisualStudioInstallationDirs() { var installDir = (string)Registry.GetValue( string.Format("HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\VisualStudio\\{0}\\", vsVer), - "InstallDir", + "ShellFolder", null); if (!string.IsNullOrEmpty(installDir)) { @@ -202,7 +202,7 @@ private static IEnumerable GetVisualStudioInstallationDirs() { var installDir = (string)Registry.GetValue( string.Format("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\{0}\\", vsVer), - "InstallDir", + "ShellFolder", null); if (!string.IsNullOrEmpty(installDir)) {