UtilApplicationSetFirstRunFlag Method

Writes a registry value with name IsFirstRun under the HKCU\SOFTWARE\{Application Name}\ registry key to evaluate whether this is the first run of the current application in any next application runs.

The flag is

Definition

Namespace: DevCase.Core.Application
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static void SetFirstRunFlag(
	RegistryScope scope,
	string aplicationName,
	bool value
)

Parameters

scope  RegistryScope
The registry scope.
aplicationName  String
The name of the aplication.

( or other identifier to assign the name of the registry value. )

value  Boolean
Set this value to if this is the first app-run.

Set this value to for testing purposes to reset the flag, so the next application run will be threathed as the first application run.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also