adding nuget package as prerequisite - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

bielen
Posts: 7
Joined: Fri Nov 06, 2009 6:21 pm

adding nuget package as prerequisite

Our custom action are developed in .net. I install the .net framework as prerequisite. A custom action checks if the connection to the database works. In our case Postgres. For this we use the nuget package Npgsql. How can I specify that the nuget package is also installed as prerequisite. The package will also be used later by the application.

Thanks for the support.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: adding nuget package as prerequisite

Hi,

I'm afraid that installing Nuget packages is not possible through the prerequisites support. However, you may be able to create a PowerShell script for this, as discussed in the "install NuGet via PowerShell script" thread, then add it as a custom action in your project.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”