vb.net - How do I tell in code if the current process is a deployed version of my application? -
i have added 'about' form project that's been around while have taken control over. part of i've made changes, first revamp versioning, , second implement click-once deployment.
my question is: how can tell in code if application running 'deployed version'? possible?
i ask because i've got deployment set 'automatically increment revision each publish', , want reflect in form. so, had add following code:
try me.labelversion.text = string.format("version {0}", my.application.deployment.currentversion.tostring) catch ex exception me.labelversion.text = string.format("version {0}", my.application.info.version.tostring) end try
the deployment version doesn't work if it's ran through devenv or in standalone copy manually setup. need second info.version
.
i rather not use try-catch block here, seems messy. however, don't know how check in if statement.
thanks.
well seems should have looked little harder before posting question. mistake.
this can achieved using my.application.isnetworkdeployed
.
/sigh
Comments
Post a Comment