How do I detect the first time a ClickOnce-deployed application has been run?
问题 I have a ClickOnce-deployed application and I'm currently using this to detect the first time a new deployment is being run: if (ApplicationDeployment.IsNetworkDeployed && ApplicationDeployment.CurrentDeployment.IsFirstRun) { // Display release notes so user knows what's new } It seems to works as expected after ClickOnce performs an automatic update. But it doesn't work at all when the user goes to publish.htm on the install site and installs a newer version manually. Is there a way to