Reputation: 154
CurrentVersion
and UpdatedVersion
shows same version. As I know UpdatedVersion
will be changed after downloading new update.
I want to check available version of application via ClickOnce before calling ApplicationDeployment.Update()
.
Upvotes: 0
Views: 207
Reputation: 422
ApplicationDeployment ad = ApplicationDeployment.CurrentDeployment;
info = ad.CheckForDetailedUpdate();
if (info.UpdateAvailable)
...
here you can see the version
info.AvailableVersion
and update size
info.UpdateSizeBytes
Upvotes: 2