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!

mklefass
Posts: 4
Joined: Wed Jan 16, 2019 12:26 am

Adding new libraries (references) to installer

I made some pretty big changes to my vb.net VSTO project, and then rebuilt my installer. Unfortunately the add-in then refused to start.

I decided to start from scratch and create a new installer, and when I did I noticed that the new installer build was much larger than the old one.

It was then that it dawned on me that I'd used a whole bunch of new libraries in the changed version, and had just assumed that advanced installer would know and add these to the msi file. Seems it didn't!

Is there a hidden button somewhere for "rescan visual studio project"?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Adding new libraries (references) to installer

Hello and welcome to our forums,

If you are using our Advanced Installer for Visual Studio extension, then the new reference files should be automatically detected at build time or when you restart your VS solution.

Otherwise if you manually create and maintain your setup project directly within our Advanced Installer desktop application, then I am afraid the only solution for you will be to manually add the new reference files into your setup project.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mklefass
Posts: 4
Joined: Wed Jan 16, 2019 12:26 am

Re: Adding new libraries (references) to installer

Thanks, I'll install the addin
mklefass
Posts: 4
Joined: Wed Jan 16, 2019 12:26 am

Re: Adding new libraries (references) to installer

That's simply not that simple! Firstly I'd need to know what they all were (and having used Nuget it will have installed support references for each package). Then Secondly I'd need to know where to find all the references, Thirdly I'd then need to know where to put them all in the installer project. Then Finally I'd need an appetite for doing all of this manually... Which would probably put me off paying $300 for an automated tool...

Frankly, I could have written it all in machine code, and forgone the need for a compiler and an installer... But I went with the lazy option.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Adding new libraries (references) to installer

Hello,

Thank you for your additional feedback.

Unfortunately I do not fully understand all of your project requirements in regards to the Nuget references. Could you please give us more details (maybe a small use case) or share with us a sample we can use to observe the work you need to run manually and try to analyze and search for ways to automate this task?

Currently our VS Extension adds all references selected (through [Add Project Output] button) in the same installation folder as the main application file. Do you have any suggestion about how can we detect the required install location (e.g. relatively to the main app location) of an app reference? We will highly appreciate any feedback you can share with us so we can improve the automatic reference configuration in the setup project.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mklefass
Posts: 4
Joined: Wed Jan 16, 2019 12:26 am

Re: Adding new libraries (references) to installer

Daniel,
sorry I was replying to a post that has since been deleted that suggested I do it manually. It's working fine through the addin
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Adding new libraries (references) to installer

Thank you for your follow up on this. I am glad to hear that is working fine through our VS extension.

The post I deleted was probably a spam and this is why we removed it from this topic. Thank you for your clarification. :)

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”