This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: How to install SQL 2017 Management Objects (NuGet)
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 14, 2018
11:08 AM
How to install SQL 2017 Management Objects (NuGet)
Hi,
The previous versions of the SQL Management Objects were an MSI file and were installed thru a prerequisite. The SQL 2017 version is now a NuGet package. Can this still be installed as a prerequisite or how can I get this installed during the installation?
I haven't worked with NuGet packages before!
Thanks!!
The previous versions of the SQL Management Objects were an MSI file and were installed thru a prerequisite. The SQL 2017 version is now a NuGet package. Can this still be installed as a prerequisite or how can I get this installed during the installation?
I haven't worked with NuGet packages before!
Thanks!!
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 16, 2018
02:13 PM
Use a powershell script to run it as a prerequisite. Nuget.org gives this as a one-liner to install it:
Install-Package Microsoft.SqlServer.SqlManagementObjects -Version 140.17218.0
Install-Package Microsoft.SqlServer.SqlManagementObjects -Version 140.17218.0
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 16, 2018
03:27 PM
Where does it get the Management Objects get installed? The previous MSI would install them into the C:\Program Files (x86)\Microsoft SQL Server\130\SDK\Assemblies folder.
Do you have any samples that would help me?
Thanks!!!
Do you have any samples that would help me?
Thanks!!!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 06, 2018
05:31 PM
NuGet packages need to be installed manually by including the DLLs in you own MSI. You would place them in the same folder as your binary or EXE.
https://docs.microsoft.com/en-us/sql/relational-databases/server-management-objects-smo/installing-smo
https://docs.microsoft.com/en-us/sql/relational-databases/server-management-objects-smo/installing-smo
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)