Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I check ClickOnce prerequisites after first install?

Tags:

.net

clickonce

If I understand correctly, ClickOnce only checks for prerequisites with the first install of an application through the setup.exe file that contains the prerequisite information. If the user opens the app in the future it will check for new versions, but it does not launch the setup.exe again, thus not checking for any NEW prerequisites that might have been added.

Is there any way to force ClickOnce to check the prerequisites again or does anyone have a good solution without asking the user to run the setup.exe again?

like image 429
Timo Avatar asked Sep 17 '08 09:09

Timo


People also ask

Where are ClickOnce settings stored?

config file is stored in the user's Documents and Settings folder. In a ClickOnce application, <app>.exe. config lives in the application directory inside of the ClickOnce application cache, and user. config lives in the ClickOnce data directory for that application.

What prerequisites install?

Installing Prerequisites. Software products often depend on other components to be installed in order to run properly. From other applications to databases, frameworks and run-time environments, it is the installer's job to make sure that the right versions are present before the main application is ready to run.


1 Answers

Unfortunately, your users will have to re-run the setup.exe to check and install all the new prerequisites that you have added.

Applications deployed using ClickOnce only check for application updates (if enabled), not prerequisites as it's the bootstrapper's job to make sure all dependencies are installed before the application is installed.

I found this at Microsoft's site:

The Setup.exe (bootstrapper) is responsible for installing all dependencies before your application runs. This bootstrapper runs as a separate process that is independent of the ClickOnce run-time engine.

like image 64
HAdes Avatar answered Oct 01 '22 01:10

HAdes