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
Namespace: DevCase.Core.ApplicationAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
No code example is currently available or this language may not be supported.
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.
This is a code example.
No code example is currently available or this language may not be supported.
Dim valueName As String = My.Application.Info.ProductName
Dim isFirstRun As Boolean = GetFirstRunFlag(RegistryScope.CurrentUser, valueName)
If (isFirstRun) Then
SetFirstRunFlag(RegistryScope.CurrentUser, valueName, value:=False)
End If
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.