In our solution, we have to deal with reading xls and xlsx files. It works perfectly for us.
Is it possible to add "Microsoft Access Database Engine 2010 Redistributable" (http://www.microsoft.com/download/en/details.aspx?id=13255) as a prerequisite in ClickOnce setup?
That means clickOne deployment should detect whether "Microsoft Access Database Engine 2010 Redistributable" has been installed or not. If yes, then install it, otherwise.
I dont know whether it is possible for doing so? if yes, how?
Thanks in advance.
I'm pretty sure you could add this redistributable to the bootstrapper package Visual Studio generates. This may help you out. But no, ClickOnce cannot detect if it's been installed.
I think you may be misunderstanding what ClickOnce does. ClickOnce copies files from a server to a client and keeps them in sync. That's it. Most ClickOnce apps have a few prerequisites they need to run (.NET Framework, C++ Runtime, etc). Visual Studio will help you with these and create a bootstrapper that bundles all these together. That has nothing to do with ClickOnce, it's just some stuff they threw in VS to help you out. Visual Studio will also create an html page for you with links to the ClickOnce app and the bootstrapper exe; again, just Visual Studio helping you, not ClickOnce.
The only prerequisite that has some "smarts" behind it is the .NET Framework. That's because the html page that gets generated can look at the browser's UserAgent string and tell what versions of the framework are installed. For all other prerequisites, it's up to you to write code to handle things or up to the user to know whether they need to run the install or not.
If your app can start up without the prereq, you could write code to check if it's installed and then warn the user or download and launch the install. That's about as good as you can do.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With