How can a program know if it is ClickOnce or not?

I want to release a program for two versions: general and clickonce.

In general, it includes updating the code to update the program, but clickonce one is not.

But they are in the same solution / project code.

That is, I want to know how to find out if a program or application can determine whether it is a clicker or not by the code itself.

+3
source share
1 answer

You can find out if your application is installed through ClickOnce using a property ApplicationDeployment.IsNetworkDeployed.

From the MSDN Documentation :

, , ClickOnce (, ), IsNetworkDeployed CurrentDeployment.

IsNetworkDeployed true , , , -, -.

+3

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