Click or drag to resize

ClickOnceInfo class

This is a partial replacement for ApplicationDeployment which is not available in .NET 6 We use a custom Launcher.exe which will set various "CLICKONCE_*" local environment variables Thanks to Simon Hewitt (simmotech) for this helpful workaround. https://github.com/simmotech/Net6ClickOnce Important: This only works if the app is installed via the modified "launcher.exe". is started from the project ...Net6ClickOnce-master\ClickOnceLauncher. Otherwise, the additional environment variables are not set and Defauts are returned.
Inheritance hierarchy
SystemObject
  NetEti.ApplicationEnvironmentClickOnceInfo

Namespace: NetEti.ApplicationEnvironment
Assembly: NetEti.EnvAccess (in NetEti.EnvAccess.dll) Version: 1.0.0+c5c038966671ba49f3a11888a845ad02585d8821
Syntax
public class ClickOnceInfo

The ClickOnceInfo Type exposes the following members.

Constructors
 NameDescription of the
Public MethodClickOnceInfo Standard constructor - fills properties from the environment (modified by Launcher.exe).
Back to the top
Properties
 NameDescription of the
Public PropertyActivationData Replaces the command line arguments.
Public PropertyActivationUri Url for activation.
Public PropertyApplicationName Application.ProductName
Public PropertyBaseDirectory The directory in which the application was started as an absolute path.
Public PropertyCurrentVersion The current program version = Application.ProductVersion
Public PropertyDataDirectory directory in which the installation data is stored during a ClickOnce installation (EnvAccess:ISNETWORKDEPLOYED = true).
Public PropertyIsNetworkDeployed True if the application was installed via ClickOnce.
Public PropertyTargetFrameworkName RuntimeInformation.FrameworkDescription.
Public PropertyTimeOfLastUpdateCheck Time of the last update check.
Public PropertyUpdatedApplicationFullName Qualified name of the updated application.
Public PropertyUpdatedVersion The new program version.
Public PropertyUpdateLocation The update url for the program.
Back to the top
Methods
 NameDescription of the
Public MethodGetLatestVersionInfo Retrieves the latest version information from the remote server.
Back to the top
Remarks
23.02.2023 Erik Nagel: taken over.
See also