Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / General / September 2005

Tip: Looking for answers? Try searching our database.

Auto update of programs.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
UJ - 27 Sep 2005 21:15 GMT
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.
Nick Malik [Microsoft] - 28 Sep 2005 07:25 GMT
Will the Click Once feature in Whidbey work for your situation?
http://msdn.microsoft.com/smartclient/understanding/windowsforms/2.0/features/cl
ickonce.aspx


Signature

--- 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.
--

> 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
[quoted text clipped - 4 lines]
>
> TIA - Jeffrey.
John Bailo - 28 Sep 2005 08:11 GMT
> Will the Click Once feature in Whidbey work for your situation?
> http://msdn.microsoft.com/smartclient/understanding/windowsforms/2.0/features/cl
ickonce.aspx

Nice recommendation, Nick.

Untested Beta code that may or may not be released.
Nick Malik [Microsoft] - 28 Sep 2005 08:19 GMT
I can assure you that this code is tested and that it will be in the
release.
http://msdn.microsoft.com/vstudio/productinfo/roadmap.aspx

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

Signature

--- 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.
--

>> Will the Click Once feature in Whidbey work for your situation?
>> http://msdn.microsoft.com/smartclient/understanding/windowsforms/2.0/features/cl
ickonce.aspx

>
> Nice recommendation, Nick.
>
> Untested Beta code that may or may not be released.
John Bailo - 28 Sep 2005 08:42 GMT
> I can assure you that this code is tested and that it will be in the
> release.
> http://msdn.microsoft.com/vstudio/productinfo/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.
Nick Malik [Microsoft] - 28 Sep 2005 09:01 GMT
>> I can assure you that this code is tested and that it will be in the
>> release.
[quoted text clipped - 23 lines]
>
> 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

Signature

--- 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 - 28 Sep 2005 09:11 GMT
> 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.
Cor Ligthert [MVP] - 28 Sep 2005 09:24 GMT
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
Nick Malik [Microsoft] - 29 Sep 2005 07:25 GMT
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.

Signature

--- 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.
--

> Nick,
>
[quoted text clipped - 13 lines]
>
> Cor
UJ - 28 Sep 2005 15:55 GMT
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.

> Will the Click Once feature in Whidbey work for your situation?
> http://msdn.microsoft.com/smartclient/understanding/windowsforms/2.0/features/cl
ickonce.aspx

[quoted text clipped - 7 lines]
>>
>> TIA - Jeffrey.
Nick Malik [Microsoft] - 30 Sep 2005 16:45 GMT
Ruslan points out the Updated application block.  Have you looked at this?

http://msdn.microsoft.com/practices/compcat/default.aspx?pull=/library/en-us/dnp
ag2/html/updaterv2.asp


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

Signature

--- 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.
--

> Nick,
> Unfortunately this won't work because our product runs unattended so it
[quoted text clipped - 20 lines]
>>>
>>> TIA - Jeffrey.
Ruslan Popov - 29 Sep 2005 20:58 GMT
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.

Signature

Best regards,
Ruslan Popov

> 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
[quoted text clipped - 4 lines]
>
> TIA - Jeffrey.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.