Skip to content

Commit

Permalink
fixing issue launching BIDS Helper VS2015 older versions
Browse files Browse the repository at this point in the history
  • Loading branch information
furmangg_cp authored and furmangg_cp committed Jul 3, 2017
1 parent 4893146 commit 5355bd1
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions BidsHelperPackage.cs
Expand Up @@ -276,8 +276,11 @@ private bool SwitchVsixManifest()

//it looks like some earlier versions of VS2015 use the registry while newer versions of VS2015 (like Update 3) just use the vsixmanifest and pkgdef files?
Microsoft.Win32.RegistryKey regKey = Microsoft.Win32.Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\VisualStudio\14.0_Config\Packages\{" + PackageGuidString +"}", true);
regKey.SetValue("CodeBase", sDll2016Path, Microsoft.Win32.RegistryValueKind.String);
regKey.Close();
if (regKey != null)
{
regKey.SetValue("CodeBase", sDll2016Path, Microsoft.Win32.RegistryValueKind.String);
regKey.Close();
}

System.Windows.Forms.MessageBox.Show("You have SSDT for SQL Server " + VersionInfo.SqlServerFriendlyVersion + " installed. Please restart Visual Studio so BIDS Helper can reconfigure itself to work properly with that version of SSDT.", "BIDS Helper");
return true;
Expand Down Expand Up @@ -323,8 +326,11 @@ private bool SwitchVsixManifest()

//it looks like some earlier versions of VS2015 use the registry while newer versions of VS2015 (like Update 3) just use the vsixmanifest and pkgdef files?
Microsoft.Win32.RegistryKey regKey = Microsoft.Win32.Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\VisualStudio\14.0_Config\Packages\{" + PackageGuidString +"}", true);
regKey.SetValue("CodeBase", sDll2017Path, Microsoft.Win32.RegistryValueKind.String);
regKey.Close();
if (regKey != null)
{
regKey.SetValue("CodeBase", sDll2017Path, Microsoft.Win32.RegistryValueKind.String);
regKey.Close();
}

System.Windows.Forms.MessageBox.Show("You have SSDT for SQL Server " + VersionInfo.SqlServerFriendlyVersion + " installed. Please restart Visual Studio so BIDS Helper can reconfigure itself to work properly with that version of SSDT.", "BIDS Helper");
return true;
Expand Down

0 comments on commit 5355bd1

Please sign in to comment.