Hello,
C# 2008/3.5 SP1
Hello,
I want to check to see if the application is running for the first time. I have developed an application and once this is installed on the clients computer. I want to make a check if it is first time running.
I have installed using the windows installer project.
if (System.Deployment.Application.ApplicationDeployment.CurrentDeployment.IsFirstRun)
{
// Do something here
}
The above code works for a clickonce development. But how can I do something similar with a windows installer.
I was thinking of added a registery when the application installs. Then check this registery item, when the program runs for the first time (true). Once it has run for the first time edit the registry to (false).
However, rather then use the registry, is there a better method that I can use?
Many thanks,