
Untitled
By: a guest on
May 4th, 2012 | syntax:
None | size: 0.59 KB | hits: 21 | expires: Never
Is there a way to reset the IsFirstRun in ClickOnce apps?
ApplicationDeployment.CurrentDeployment.IsFirstRun
if (ApplicationDeployment.IsNetworkDeployed &&
ApplicationDeployment.CurrentDeployment.IsFirstRun)
{
...doing stuff
}
if (ApplicationDeployment.IsNetworkDeployed &&
ApplicationDeployment.CurrentDeployment.IsFirstRun)
{
Settings.Default.IsFirstRun = false;
Settings.Default.Save();
}
....
if (Settings.Default.IsFirstRun)
{
// simply test here to see if its first run
// you can just flip flag flag in the settings
// to acheive the same result.
}