Newer Version Check

  • Thread starter Thread starter Martin Hazell
  • Start date Start date
M

Martin Hazell

I am just writing an app that will be used internally.

What I would like it to do is to check the version of an
exe on a server is different to the current one. I have
managed to get the assembly version for the app
executing, but I don't know how to read the version info
for a file on a network share.

Any help would be greatly appreciated.

Thanks

Martin
 
Martin,

Generally, you would have to load the assembly. However, I am curious,
why not just run the executable from the network share and just configure
the security correctly? It would prevent the need for doing a version
check.

Hope this helps.
 
If the network is down, I would still like the app to
run. The server that will be hosting this can be down
more often than not at the moment!!!

I would place the version check within a try block and if
it couldn't find the server, the app would continue.

Thanks

Martin
-----Original Message-----
Martin,

Generally, you would have to load the assembly. However, I am curious,
why not just run the executable from the network share and just configure
the security correctly? It would prevent the need for doing a version
check.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

"Martin Hazell"
 
Martin Hazell said:
I am just writing an app that will be used internally.

What I would like it to do is to check the version of an
exe on a server is different to the current one. I have
managed to get the assembly version for the app
executing, but I don't know how to read the version info
for a file on a network share.

Any help would be greatly appreciated.

Thanks

Martin

Take a look at the Application Updater Block from MS. It will allow your
application to auto-update itself from a network share, and it accounts for
the possibility of the network share being unavailable.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/updater.asp

Good luck,
Ryan LaNeve
MCSD.NET
 
Hi Martin,

Does "Application Updater Block" just meet your need?
Is your problem resolved?

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
It seems at though it does exactly what I need - and a
little bit more.

Thanks
 
Back
Top