Add "Redistributable Microsoft Access Database Engine 2010" as a prerequisite for clickonce

In our solution, we have to deal with reading xls and xlsx files. It works great for us.

Can I add "Redistributable Microsoft Access Database Engine 2010" (http://www.microsoft.com/download/en/details.aspx?id=13255) as a prerequisite in configuring ClickOnce?

This means that the clickOne deployment should determine if "Microsoft Access Database Engine 2010 Redistributable" is installed or not. If so, install it otherwise.

I do not know if this can be done? if so, how?

Thanks in advance.

+6
source share
2 answers

I'm sure you can add this redistributable to the bootstrapper package created by Visual Studio. It can help you. But no, ClickOnce cannot determine if it is installed.

I think you may not understand what ClickOnce does. ClickOnce copies files from the server to the client and synchronizes them. It. Most ClickOnce applications have a few prerequisites necessary for their execution (.NET Framework, C ++ Runtime, etc.). Visual Studio will help you with this and create a loader that brings it all together. This has nothing to do with ClickOnce, these are just some of the things they threw at VS to help you. Visual Studio will also create an html page for you with links to the ClickOnce application and exe loader; again, just Visual Studio will help you, not ClickOnce.

The only prerequisite that has some โ€œmental abilityโ€ behind it is the .NET Framework. This is because the html page that is being generated can look at the UserAgent browser line and indicate which versions of the framework are installed. For all other prerequisites, you need to write code to process things or to the user to find out if they need to run the installation or not.

If your application can run without prereq, you can write code to check if it is installed, and then alert the user or download and run the installation. This is as good as you can.

+3
source

Yes it is possible. I just posted this today. You just need to do a few things. Read this article at http://itsyntax.blogspot.com/2013/11/access-database-engine-bootstrapper-for.html

0
source

Source: https://habr.com/ru/post/908959/


All Articles