Hi, I'm using visual basic 2005 to create a service. I'm at the point where its all working nicely but I want to add the version number thats displayed in My Project\Publish page to both my Service Name but also to the name of msi when it's created.
Within the Installer class I have tried using these two lines of code with the same result:
ServiceInstalle r1.ServiceName &= " v" & My.Application. Info.Version.To String
and
ServiceInstalle r1.ServiceName &= " v" & ProjectName.My. Application.Inf o.Version.ToStr ing
The version shown in the publishing properties is 1.0.0.0 whereas the service is installed with a version of 2.0.0.0 added to the name. What adds insult to injury is that when I try to access the version number in the Service class itself(when the service is running) it shows me the version number i want to see (from the My Project page).
I have two questions:
1/ Where is the installer class getting the version number from?
2/ Can i get the version number to point to that of My Project (ie the 1.0.0.0)?
I think I'll leave the question about the msi as thats not as important.
Thanks in advance,
Paul.
Within the Installer class I have tried using these two lines of code with the same result:
ServiceInstalle r1.ServiceName &= " v" & My.Application. Info.Version.To String
and
ServiceInstalle r1.ServiceName &= " v" & ProjectName.My. Application.Inf o.Version.ToStr ing
The version shown in the publishing properties is 1.0.0.0 whereas the service is installed with a version of 2.0.0.0 added to the name. What adds insult to injury is that when I try to access the version number in the Service class itself(when the service is running) it shows me the version number i want to see (from the My Project page).
I have two questions:
1/ Where is the installer class getting the version number from?
2/ Can i get the version number to point to that of My Project (ie the 1.0.0.0)?
I think I'll leave the question about the msi as thats not as important.
Thanks in advance,
Paul.