https://learn.microsoft.com/en-us/dotnet/api/system.deployment.application.applicationdeployment.isfirstrun?view=netframework-4.8.1&redirectedfrom=MSDN
ApplicationDeployment.IsFirstRun Property (System.Deployment.Application) | Microsoft Learn
Gets a value indicating whether this is the first time this application has run on the client computer.
property systemdeploymentapplicationmicrosoftlearn