Skip to content
This repository has been archived by the owner on Feb 21, 2019. It is now read-only.

Commit

Permalink
use shellfolder instead of installfolder
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyhu87 committed May 3, 2016
1 parent 47f4d1f commit 59f5377
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Uninstall_Wrapper/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ private static IEnumerable<string> GetVisualStudioInstallationDirs()
{
var installDir = (string)Registry.GetValue(
string.Format("HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\VisualStudio\\{0}\\", vsVer),
"InstallDir",
"ShellFolder",
null);
if (!string.IsNullOrEmpty(installDir))
{
Expand All @@ -202,7 +202,7 @@ private static IEnumerable<string> GetVisualStudioInstallationDirs()
{
var installDir = (string)Registry.GetValue(
string.Format("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\{0}\\", vsVer),
"InstallDir",
"ShellFolder",
null);
if (!string.IsNullOrEmpty(installDir))
{
Expand Down

0 comments on commit 59f5377

Please sign in to comment.