Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Use package provider on full visualstudio versions |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | sourceforge |
Files: | files | file ages | folders |
SHA1: |
4060c752bc39672675ca1b204830dcc3 |
User & Date: | rmsimpson 2006-07-16 17:46:06.000 |
Context
2006-07-16
| ||
21:25 | 1.0.31.0 check-in: 6273b49d89 user: rmsimpson tags: sourceforge | |
17:46 | Use package provider on full visualstudio versions check-in: 4060c752bc user: rmsimpson tags: sourceforge | |
17:44 | 1.0.31.0 code cleanup and fixes for view schemas check-in: 6ae6600f6f user: rmsimpson tags: sourceforge | |
Changes
Changes to tools/install/InstallDesigner.cs.
︙ | ︙ | |||
515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 | } } } } private void Install(string keyname, Guid provider, Guid source) { using (RegistryKey key = Registry.LocalMachine.OpenSubKey(String.Format("Software\\Microsoft\\{0}\\{1}\\DataProviders", keyname, _regRoot), true)) { using (RegistryKey subkey = key.CreateSubKey(provider.ToString("B"), RegistryKeyPermissionCheck.ReadWriteSubTree)) { subkey.SetValue(null, ".NET Framework Data Provider for SQLite"); subkey.SetValue("InvariantName", "System.Data.SQLite"); subkey.SetValue("Technology", "{77AB9A9D-78B9-4ba7-91AC-873F5338F1D2}"); subkey.SetValue("CodeBase", Path.GetFullPath("SQLite.Designer.DLL")); | > > | > | | | < | | < > | | < | 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 | } } } } private void Install(string keyname, Guid provider, Guid source) { bool usePackage = (keyname == "VisualStudio"); using (RegistryKey key = Registry.LocalMachine.OpenSubKey(String.Format("Software\\Microsoft\\{0}\\{1}\\DataProviders", keyname, _regRoot), true)) { using (RegistryKey subkey = key.CreateSubKey(provider.ToString("B"), RegistryKeyPermissionCheck.ReadWriteSubTree)) { subkey.SetValue(null, ".NET Framework Data Provider for SQLite"); subkey.SetValue("InvariantName", "System.Data.SQLite"); subkey.SetValue("Technology", "{77AB9A9D-78B9-4ba7-91AC-873F5338F1D2}"); subkey.SetValue("CodeBase", Path.GetFullPath("SQLite.Designer.DLL")); if (usePackage) subkey.SetValue("FactoryService", "{DCBE6C8D-0E57-4099-A183-98FF74C64D9D}"); using (RegistryKey subsubkey = subkey.CreateSubKey("SupportedObjects", RegistryKeyPermissionCheck.ReadWriteSubTree)) { using (RegistryKey subsubsubkey = subsubkey.CreateSubKey("DataConnectionUIControl", RegistryKeyPermissionCheck.ReadWriteSubTree)) { if (!usePackage) subsubsubkey.SetValue(null, "SQLite.Designer.SQLiteConnectionUIControl"); } using (RegistryKey subsubsubkey = subsubkey.CreateSubKey("DataConnectionProperties", RegistryKeyPermissionCheck.ReadWriteSubTree)) { if (!usePackage) subsubsubkey.SetValue(null, "SQLite.Designer.SQLiteConnectionProperties"); } subsubkey.CreateSubKey("DataObjectSupport").Close(); subsubkey.CreateSubKey("DataViewSupport").Close(); using (RegistryKey subsubsubkey = subsubkey.CreateSubKey("DataConnectionSupport", RegistryKeyPermissionCheck.ReadWriteSubTree)) { if (!usePackage) subsubsubkey.SetValue(null, "SQLite.Designer.SQLiteDataConnectionSupport"); } } } } using (RegistryKey key = Registry.LocalMachine.OpenSubKey(String.Format("Software\\Microsoft\\{0}\\{1}\\DataSources", keyname, _regRoot), true)) { |
︙ | ︙ | |||
599 600 601 602 603 604 605 | subkey.SetValue("InvariantName", "System.Data.SQLite"); subkey.SetValue("RuntimeAssembly", "System.Data.SQLite.DLL"); } } } } | > | < | | | | | | | | | | | | | | | | | > > > > > | | | | | | < > | 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 | subkey.SetValue("InvariantName", "System.Data.SQLite"); subkey.SetValue("RuntimeAssembly", "System.Data.SQLite.DLL"); } } } } if (usePackage) { using (RegistryKey key = Registry.LocalMachine.OpenSubKey(String.Format("Software\\Microsoft\\{0}\\{1}\\Packages", keyname, _regRoot), true)) { using (RegistryKey subkey = key.CreateSubKey("{DCBE6C8D-0E57-4099-A183-98FF74C64D9C}", RegistryKeyPermissionCheck.ReadWriteSubTree)) { subkey.SetValue(null, "SQLite Designer Package"); subkey.SetValue("Class", "SQLite.Designer.SQLitePackage"); subkey.SetValue("CodeBase", Path.GetFullPath("SQLite.Designer.DLL")); subkey.SetValue("ID", 400); subkey.SetValue("InprocServer32", "mscoree.dll"); subkey.SetValue("CompanyName", "Black Castle Software, LLC"); subkey.SetValue("MinEdition", "standard"); subkey.SetValue("ProductName", "SQLite Data Provider"); subkey.SetValue("ProductVersion", "1.0"); } } using (RegistryKey key = Registry.LocalMachine.OpenSubKey(String.Format("Software\\Microsoft\\{0}\\{1}\\Menus", keyname, _regRoot), true)) { key.SetValue("{DCBE6C8D-0E57-4099-A183-98FF74C64D9C}", ", 1000, 1"); } using (RegistryKey key = Registry.LocalMachine.OpenSubKey(String.Format("Software\\Microsoft\\{0}\\{1}\\Services", keyname, _regRoot), true)) { using (RegistryKey subkey = key.CreateSubKey("{DCBE6C8D-0E57-4099-A183-98FF74C64D9D}", RegistryKeyPermissionCheck.ReadWriteSubTree)) { subkey.SetValue(null, "{DCBE6C8D-0E57-4099-A183-98FF74C64D9C}"); subkey.SetValue("Name", "SQLite Provider Object Factory"); } } } } private XmlDocument GetConfig(string keyname, out string xmlFileName) { try { using (RegistryKey key = Registry.LocalMachine.OpenSubKey(String.Format("Software\\Microsoft\\{0}\\{1}", keyname, _regRoot), true)) |
︙ | ︙ | |||
666 667 668 669 670 671 672 673 674 675 676 677 678 679 | { if (key != null) key.DeleteSubKeyTree(provider.ToString("B")); } using (RegistryKey key = Registry.LocalMachine.OpenSubKey(String.Format("Software\\Microsoft\\{0}\\{1}\\DataSources", keyname, _regRoot), true)) { if (key != null) key.DeleteSubKeyTree(source.ToString("B")); } //using (RegistryKey key = Registry.LocalMachine.OpenSubKey("SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment", true)) //{ // string libpath = (string)key.GetValue("LIB"); // string path = ";" + Path.GetDirectoryName(SQLiteLocation); // libpath = libpath.Replace(path, ""); | > > > > > > > > > > > > > > > | 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 | { if (key != null) key.DeleteSubKeyTree(provider.ToString("B")); } using (RegistryKey key = Registry.LocalMachine.OpenSubKey(String.Format("Software\\Microsoft\\{0}\\{1}\\DataSources", keyname, _regRoot), true)) { if (key != null) key.DeleteSubKeyTree(source.ToString("B")); } using (RegistryKey key = Registry.LocalMachine.OpenSubKey(String.Format("Software\\Microsoft\\{0}\\{1}\\Packages", keyname, _regRoot), true)) { if (key != null) key.DeleteSubKeyTree("{DCBE6C8D-0E57-4099-A183-98FF74C64D9C}"); } using (RegistryKey key = Registry.LocalMachine.OpenSubKey(String.Format("Software\\Microsoft\\{0}\\{1}\\Services", keyname, _regRoot), true)) { if (key != null) key.DeleteSubKeyTree("{DCBE6C8D-0E57-4099-A183-98FF74C64D9D}"); } using (RegistryKey key = Registry.LocalMachine.OpenSubKey(String.Format("Software\\Microsoft\\{0}\\{1}\\Menus", keyname, _regRoot), true)) { key.DeleteValue("{DCBE6C8D-0E57-4099-A183-98FF74C64D9C}"); } //using (RegistryKey key = Registry.LocalMachine.OpenSubKey("SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment", true)) //{ // string libpath = (string)key.GetValue("LIB"); // string path = ";" + Path.GetDirectoryName(SQLiteLocation); // libpath = libpath.Replace(path, ""); |
︙ | ︙ |
Changes to tools/install/install.csproj.
︙ | ︙ | |||
11 12 13 14 15 16 17 | <AssemblyName>install</AssemblyName> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> <DebugType>full</DebugType> <Optimize>false</Optimize> <OutputPath>..\..\bin\designer\</OutputPath> | | | | 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | <AssemblyName>install</AssemblyName> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> <DebugType>full</DebugType> <Optimize>false</Optimize> <OutputPath>..\..\bin\designer\</OutputPath> <DefineConstants>TRACE;DEBUG</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> <PlatformTarget>x86</PlatformTarget> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <DebugType>none</DebugType> <Optimize>true</Optimize> <OutputPath>..\..\bin\designer\</OutputPath> <DefineConstants>TRACE</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> <FileAlignment>512</FileAlignment> <PlatformTarget>x86</PlatformTarget> </PropertyGroup> <ItemGroup> <Reference Include="System" /> |
︙ | ︙ |