473,624 Members | 2,275 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Newer Version Check

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
Nov 15 '05 #1
5 1787
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]
- mv*@spam.guard. caspershouse.co m

"Martin Hazell" <ma***********@ toomuchspam.iom creameres.com> wrote in
message news:0a******** *************** *****@phx.gbl.. .
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

Nov 15 '05 #2
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 configurethe security correctly? It would prevent the need for doing a versioncheck.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Martin Hazell" <ma***********@ toomuchspam.iom creameres.com> wrote inmessage news:0a******** *************** *****@phx.gbl.. .
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

.

Nov 15 '05 #3
"Martin Hazell" <ma***********@ toomuchspam.iom creameres.com> wrote in
message news:0a******** *************** *****@phx.gbl.. .
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/de...ml/updater.asp

Good luck,
Ryan LaNeve
MCSD.NET
Nov 15 '05 #4

Hi Martin,

Does "Applicatio n 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.

Nov 15 '05 #5
It seems at though it does exactly what I need - and a
little bit more.

Thanks

-----Original Message-----

Hi Martin,

Does "Applicatio n 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.
.

Nov 15 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2541
by: vibhesh | last post by:
Hello, I have C++ code that I used to compile on VC++ 6.0 compiler. Now after some modifications I have successfully compiled the code in VC++ 7.0 (.NET). The code is fully unmanaged. The exe runs successfully on WIN-XP machine, but when I try to run it on Win-98 I get the foll error :
0
1278
by: George Simpson | last post by:
Hi all, Please bear with me, as I am very new to XML, and appreciate all help offered. Ok... We have an application that *used* JavaScript to populate our select boxes in the past, we are now in the process of removing this and replacing it with the use of a data-island. My question is when our client signs onto the application and reaches the point where the request for the data-island takes place, this will
1
2376
by: Erik Cruz | last post by:
Hi. I know that different .net framework versions can live together, but can I install the newer .net framework 1.1 and after that install the older .net framework 1.0 version? Or do I need to install the old one first and after that the newer one? TIA, Erik Cruz
6
1743
by: DraguVaso | last post by:
Hi, I have a, maybe strange looking, question: Is there any way to obstruct developpers to Develop and or Deploy a newer version of a VB.NET-application? Things should happen like this: - Developpers develop the application - The application is tested, and audited for the final release - The final release is isntalled at the clients - After that: there can not be any other new version of the software
2
1689
by: Tony Mugan | last post by:
I've just started at a place that is running DB2 version 5.0. The client software is also quite old (from 1998). My question is, is there any newer and compatible ODBC drivers or client software that I can get my hands on that you would recommend ? I will be doing VB.NET development against this old beast so would appreciate
7
1688
by: John | last post by:
Hi I have an old access 97 application which I need to upgrade to one of the newer versions. Which of the access versions xp or 2003 should I choose? Which one is more stable? Thanks Regards
2
1626
by: m_laci | last post by:
Hello there, We have encountered a strange error with our ASP.NET applications in combination with SmartNavigation and the setting from Internet Explorer: ‘Check for newer version of pages: Every visit to the pages”. With this option is set in Internet Explorer, after postback displaying information on screen behaves differently than expected. Behaviour is dependent on different IE versions / installations. Controls are not anymore...
2
4841
by: Ed Staffin | last post by:
In Internet Explorer under the tools/internet options menu on the general tab, there is a settings button under Temporary internet files. In there the user can specify when to "Check for newer versions of stored pages." I want to make sure that my pages are refreshed every time they visit regardless of this setting. Is there a way to do this? Thanks ... Ed
3
1504
by: aditi123 | last post by:
I have set RemovePreviousVersions to true and increased the version number. It is working as expected. But what I want is Show a message before the installation starts, asking the user if the user wants to install the new version(if there is already an older version installed on his machine. If yes is clicked, it should proceed, If no, it should exit the installation at this point). Right now, it is installing the newer version without...
0
8242
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8629
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8488
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7170
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5570
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4183
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2611
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1793
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1488
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.