0

I want to write another app's version number to my label.

With this code I can get the version of my app:

Label1.Text = My.Application.Info.Version.ToString

But what should I do to get it from another application? Is it even possible?

The path of the app I want to retrieve the version number:

Application.StartupPath & "\..\hello.exe"
River
  • 8,585
  • 14
  • 54
  • 67
mvydvyspy
  • 25
  • 6
  • Try replacing `Return Version.Parse(...)` with `Return System.Version.Parse(...)` in the answer's code. The error occurs because you have a `Label` called `Version`, but the function tries to use the [**`System.Version` class**](https://msdn.microsoft.com/en-us/library/system.version(v=vs.110).aspx). – Visual Vincent Nov 05 '17 at 21:27
  • Thanks! Errors are gone. How can I redirect version to a label? I can not see any changes. (I'm newby, maybe I might have missed something) – mvydvyspy Nov 05 '17 at 21:43
  • Okay, I got it! Thanks @VisualVincent – mvydvyspy Nov 05 '17 at 21:54
  • @Plutonix how can I mark this question as resolved? – mvydvyspy Nov 05 '17 at 22:05
  • No need to being a dupe does that for us. When you get enough reputation, the right thing to do is to upvote the answer on the dupe if/when it works. – Ňɏssa Pøngjǣrdenlarp Nov 05 '17 at 22:20

0 Answers0