473,395 Members | 1,473 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Auto update of programs.

UJ
Has anybody had any experience writing an auto update program that will
check the internet to see if there is a newer version of the code out there
and download it?

It doesn't seem that complicated but I just wanted to hear from people who
have done it if there are any gotchas I should watch out for.

TIA - Jeffrey.
Sep 27 '05 #1
11 1938
Will the Click Once feature in Whidbey work for your situation?
http://msdn.microsoft.com/smartclien...clickonce.aspx

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"UJ" <fr**@nowhere.com> wrote in message
news:eK**************@TK2MSFTNGP14.phx.gbl...
Has anybody had any experience writing an auto update program that will
check the internet to see if there is a newer version of the code out
there and download it?

It doesn't seem that complicated but I just wanted to hear from people who
have done it if there are any gotchas I should watch out for.

TIA - Jeffrey.

Sep 28 '05 #2
Nick Malik [Microsoft] wrote:
Will the Click Once feature in Whidbey work for your situation?
http://msdn.microsoft.com/smartclien...clickonce.aspx


Nice recommendation, Nick.

Untested Beta code that may or may not be released.
Sep 28 '05 #3
I can assure you that this code is tested and that it will be in the
release.
http://msdn.microsoft.com/vstudio/pr...o/roadmap.aspx

Apps in production within MS already use this technology. I speak from
experience, it works just fine.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"John Bailo" <ja*****@texeme.com> wrote in message
news:43**********@texeme.com...
Nick Malik [Microsoft] wrote:
Will the Click Once feature in Whidbey work for your situation?
http://msdn.microsoft.com/smartclien...clickonce.aspx


Nice recommendation, Nick.

Untested Beta code that may or may not be released.

Sep 28 '05 #4
Nick Malik [Microsoft] wrote:
I can assure you that this code is tested and that it will be in the
release.
http://msdn.microsoft.com/vstudio/pr...o/roadmap.aspx

Apps in production within MS already use this technology. I speak from
experience, it works just fine.


It's no longer a safe be to /trust/ Microsoft on this stuff.

I say, stick with the tried and true.

For example, I've looked at many of the "Application Blocks" and found
installation and requirements to be restrictive and cumbersome (
requiring XP Pro in some instances ).

Even if it 'works' and is 'almost ready' I'd stay away from it because
Microsoft constantly twists and changes things before release. At that
point he would be stuck with a lot of code dependent on something that
doesn't exist.

You can write an auto updater quite easily with a little bit of code
that can call a web service and get version number. I'm writing just
such code right now. There are built in methods to get version numbers
from assemblies and calling assemblies -- just match those to an update
version on the server to see if they need to be downloaded.

Simple.
Sep 28 '05 #5
"John Bailo" <ja*****@texeme.com> wrote in message
news:43**************@texeme.com...
Nick Malik [Microsoft] wrote:
I can assure you that this code is tested and that it will be in the
release.
http://msdn.microsoft.com/vstudio/pr...o/roadmap.aspx

Apps in production within MS already use this technology. I speak from
experience, it works just fine.


It's no longer a safe be to /trust/ Microsoft on this stuff.

I say, stick with the tried and true.

For example, I've looked at many of the "Application Blocks" and found
installation and requirements to be restrictive and cumbersome ( requiring
XP Pro in some instances ).

Even if it 'works' and is 'almost ready' I'd stay away from it because
Microsoft constantly twists and changes things before release. At that
point he would be stuck with a lot of code dependent on something that
doesn't exist.

You can write an auto updater quite easily with a little bit of code that
can call a web service and get version number. I'm writing just such
code right now. There are built in methods to get version numbers from
assemblies and calling assemblies -- just match those to an update version
on the server to see if they need to be downloaded.

Simple.


If you weren't such a notorious member of this forum, John, I'd engage in an
actual lucid conversation about the pros and cons of "buy" vs. "build".
Unfortunately, your reputation for attempting to start fruitless arguments
rather than discussing actual points of concern precedes you by leaps and
bounds.

If you are worried about being tied to a particular interface in .Net 2.0,
then encapsulate it with a facade pattern. That way, if it changes, only
your facade changes. (Personally, I wouldn't be worrying, but worrying is
such a personal thing... feel free to spend your time on this and any of a
dozen other concerns, like how you are going to get your simple app to make
sure that the file you are updating isn't being used by another user when
you are updating it).

--- N

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
Sep 28 '05 #6
Nick Malik [Microsoft] wrote:

If you weren't such a notorious member of this forum, John, I'd engage in an
actual lucid conversation about the pros and cons of "buy" vs. "build".
Unfortunately, your reputation for attempting to start fruitless arguments
rather than discussing actual points of concern precedes you by leaps and
bounds.


Nice FUD Nick.

As soon as my arguments best yours, you resort to name calling.

I offered very valid technical reaons -- you hid behind some vague
'technology' that is in beta, buggy and might not meet the persons needs.

Scrape the MVP off your badge, dude...it's back to MSCE training for you.
Sep 28 '05 #7
Nick,

I don't see what is wrong that John, gives his opinion. He tells it directly
how he thinks it is. You can read it as; it is just rude arguing without
sense. You can read it as a warning to others and Microsoft that *he* wants
more consistency.

I keep it that he means the last.

(While I don't agree with him, VS 2005 is a product still in its developing
phase. That means for me every time evaluations of what you did and because
you do that be open to renew it until the last moment of release)

Just my thought,

Cor
Sep 28 '05 #8
UJ
Nick,
Unfortunately this won't work because our product runs unattended so it
needs to check the server every once in a while (much like Norton Antivirus
goes out and gets new definitions.) So I need to make this happen
automatically.

I will probably go with either a Window's Web Service to check against the
server or do something so stupid as download a 'version' file that tells me
the current version of the software and if they are different I'll download
the file.

Thanks anyway.

"Nick Malik [Microsoft]" <ni*******@hotmail.nospam.com> wrote in message
news:yb********************@comcast.com...
Will the Click Once feature in Whidbey work for your situation?
http://msdn.microsoft.com/smartclien...clickonce.aspx

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"UJ" <fr**@nowhere.com> wrote in message
news:eK**************@TK2MSFTNGP14.phx.gbl...
Has anybody had any experience writing an auto update program that will
check the internet to see if there is a newer version of the code out
there and download it?

It doesn't seem that complicated but I just wanted to hear from people
who have done it if there are any gotchas I should watch out for.

TIA - Jeffrey.


Sep 28 '05 #9
Hi Cor,

I would gladly engage with a conversation with you on this or any other
issue. It is true that beta software has risks, and that using it comes
with some concern. I suggested that the OP take a look at the beta software
to see if it would fit. I didn't suggest that it was the only possible
answer, or even that it applied to their problem... simply to take a look.

Mr. Bailo has made some good contributions with some technical merit. For
that, I credit him. In this thread, he's been OK. On other threads,
including some recent ones, he has intentionally posted 'troll threads'
where he will make an intentionally opinionated non-technical statement that
he cross-posts to the linux advocacy group. As a result, I have no desire
to engage Mr. Bailo in any kind of direct conversation, regardless of the
merit of his statements. A person that I do not know gets a basic level of
respect, that is theirs to lose. He has lost that respect.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:uO**************@TK2MSFTNGP10.phx.gbl...
Nick,

I don't see what is wrong that John, gives his opinion. He tells it
directly how he thinks it is. You can read it as; it is just rude arguing
without sense. You can read it as a warning to others and Microsoft that
*he* wants more consistency.

I keep it that he means the last.

(While I don't agree with him, VS 2005 is a product still in its
developing phase. That means for me every time evaluations of what you did
and because you do that be open to renew it until the last moment of
release)

Just my thought,

Cor

Sep 29 '05 #10
I have. It is based on MS Application Updater Block, and works with the
current version of the framework. It recommended itself as a very useful
application and is used by hundreds of users in different parts of the world.

--
Best regards,
Ruslan Popov
"UJ" wrote:
Has anybody had any experience writing an auto update program that will
check the internet to see if there is a newer version of the code out there
and download it?

It doesn't seem that complicated but I just wanted to hear from people who
have done it if there are any gotchas I should watch out for.

TIA - Jeffrey.

Sep 29 '05 #11
Ruslan points out the Updated application block. Have you looked at this?

http://msdn.microsoft.com/practices/.../updaterv2.asp

It is hard to beat code that is already written :-)

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"UJ" <fr**@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Nick,
Unfortunately this won't work because our product runs unattended so it
needs to check the server every once in a while (much like Norton
Antivirus goes out and gets new definitions.) So I need to make this
happen automatically.

I will probably go with either a Window's Web Service to check against the
server or do something so stupid as download a 'version' file that tells
me the current version of the software and if they are different I'll
download the file.

Thanks anyway.

"Nick Malik [Microsoft]" <ni*******@hotmail.nospam.com> wrote in message
news:yb********************@comcast.com...
Will the Click Once feature in Whidbey work for your situation?
http://msdn.microsoft.com/smartclien...clickonce.aspx

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"UJ" <fr**@nowhere.com> wrote in message
news:eK**************@TK2MSFTNGP14.phx.gbl...
Has anybody had any experience writing an auto update program that will
check the internet to see if there is a newer version of the code out
there and download it?

It doesn't seem that complicated but I just wanted to hear from people
who have done it if there are any gotchas I should watch out for.

TIA - Jeffrey.



Sep 30 '05 #12

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

Similar topics

1
by: Eric Keij | last post by:
Hello, I have written a windows service in .NET which i want update. Is there an easy way to let a windows service update itself? I've written some test programs with the AppUpdater component...
11
by: csomberg | last post by:
SQL 2000 I thought I would throw this out there for some feedback from others. I'd like to know if you feel using MS auto-increment field is a good solution these days or should one grow their...
3
by: Poul Møller Hansen | last post by:
Hi, I need an auto incrementing field that will contain values like N000001, N000002, N000003 etc. I think the way is to use the value from an identity field in a stored procedure that is...
5
by: marfi95 | last post by:
I want to implement into my application a mechanism to retrieve the "latest updates" to my app. I'm looking for various ways to accomplish this and how to get around the fact that you are running...
11
by: UJ | last post by:
Has anybody had any experience writing an auto update program that will check the internet to see if there is a newer version of the code out there and download it? It doesn't seem that...
3
by: Eric Renken | last post by:
Does anyone know of a good auto update service. Using .NET 2.0 C#. I do not want to use InstallShields, even though that is who we use to create setups. There sales policies are starting to...
1
by: ComputerGuyCJ | last post by:
I have an application that I've used click-once deployment to publish out to a shared network path. From there I installed the app on a few client machines, including my own. Since then I published...
0
by: Mogrin | last post by:
So I have this windows .net form app, and I have the following goals: -Needs to be 1 single file, the executable, in any directory the user decides to download it to. No installation folder, no...
21
by: JOYCE | last post by:
Look the subject,that's my problem! I hope someone can help me, thanks
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.