Re: File Version

Tech-Archive recommends: Fix windows errors by optimizing your registry



Steve:

Thanks, but I knew that! What I had asked is how to retrieve the file
version of an exe from my server (the bundled install program) or how to
read some text from a page on my web site that contains version information
for the latest build.

Of course, I suppose I could embed the file version in a simple ascii text
file on my server and read that, but then that is one more thing that must
be remembered every time an upload is done.

Thanks,

Dennis


"Steve Goodyear" <SteveGoodyear@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:02D2A5AC-F745-408C-A910-2EDA79585549@xxxxxxxxxxxxxxxx
> Hi Dennis,
> You can retrieve the Version object which contains the Major, Minor,
> Build,
> and Revision properties of the assembly version.
>
> Cheers,
> Steve Goodyear
>
> System.Version version =
> System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
> MessageBox.Show(version.ToString());


.



Relevant Pages

  • Re: What are the best general things to do after a dirty shutdown (Server SBS)
    ... Microsoft Windows Small Business Server 2003 Best Practices Analyzer ... After that, please post any event log errors, just the EventID# and Source names, not the whole error message. ... error 15100 Win32 Error 15100. ... One is indicating it can't retrieve info about the System log. ...
    (microsoft.public.windows.server.sbs)
  • Re: Serivce Pack 2 for Windows 2003 enterprise server fails
    ... MVP - Windows Server - Clustering ... 496.391: GetCatVersion: Failed to retrieve version information ...
    (microsoft.public.windows.server.clustering)
  • Re: POP3 Connector hiding mail
    ... I have tried to do the setup and to trigger the settings for the server ... the Microsoft help in troubleshooting the POP3 connector. ... to be able to retrieve emails on demand. ... messages to a mapped user mailbox. ...
    (microsoft.public.windows.server.sbs)
  • Re: Problem installing SharePoint 2007 Enterprise
    ... SharePoint Products and Technologies Configuration Wizard ... lock to retrieve the state ... registry key from under Software\Microsoft\Shared Tools\Web Server ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: Serivce Pack 2 for Windows 2003 enterprise server fails
    ... Are you kidding about the test server, we are a small college we have barely ... 496.391: GetCatVersion: Failed to retrieve version information from ... 1624.516: Message displayed to the user: Failed to install catalog files. ...
    (microsoft.public.windows.server.clustering)