469,272 Members | 1,459 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,272 developers. It's quick & easy.

Automatic Updates

Are you using an intranet or the internet to push the
updates? If the internet, you probably can't get there
without a web server. If you are using an intranet, you
can do it from a shared folder. Paul Kimmel has a new
book
http://www.amazon.com/exec/obidos/AS...24075/internco
m-20/002-4611773-6304806 that discusses this in depth...
I can send you some code to do it. Effectively you need
two assemblies, one that calls the second, and it looks
to somehwere 'else' to check if the somewhere 'else' on
is newer than the one it wants to use. I've done it on
the intranet at work, and on a scale of 1 to 10, it's
about a 4 the first time through, and much easier
afterward, setting the permissions is the main gotcha.

Let me know which scenario you are using and I can be of
more help.

Good Luck,

Bill

W.G. Ryan
do********@comcast.nospam.net
www.knowdotnet.com
-----Original Message-----
I am building an application that would check for newest releases on startand if new releases exist, it would update itself. All reference I havefound are using a web server which I don't want to use.

I am doing this in VB.net, and the updates should be stored on SQL Server2000.

Any ideas how can I do this. I have heard something about AutoUpdate class.Would it work with an SQL Server as well?

Any help will be appreciated,
--
Dino Buljubasic
Software Developer
http://rivusglobal.com
.

Jul 19 '05 #1
7 2806
Thanks William,

the update will be done over INTERNET. Since I am quite inexperienced with
this, can you explain to me how to do it please.

My idea is to have somewhere on my server (SQL Server or Web Server) a file
with information about the release (eg. a file with date stamp, version
number, and whatever else is needed).

Then, when my application starts, it will read the file and check if a newer
version has been stored on SQL Server (It has to be SQL Server 2000). If
yes, it will connect to the SQL Server 2000 (if it has access rights),
download vb.net executable file of the newer application which will replace
the old application on clients machine.

The thing is that the executable file of the release has to be protected
from public access, that is why I want to have it on SQL Server 2000 and
only users that have access rights can download it. The access right should
be set using user name and password.

Thank you for your help. I appreciate it very much.

--
Dino Buljubasic
Software Developer
http://rivusglobal.com

"William Ryan" <do********@comcast.nospam.net> wrote in message
news:04****************************@phx.gbl...
Are you using an intranet or the internet to push the
updates? If the internet, you probably can't get there
without a web server. If you are using an intranet, you
can do it from a shared folder. Paul Kimmel has a new
book
http://www.amazon.com/exec/obidos/AS...24075/internco
m-20/002-4611773-6304806 that discusses this in depth...
I can send you some code to do it. Effectively you need
two assemblies, one that calls the second, and it looks
to somehwere 'else' to check if the somewhere 'else' on
is newer than the one it wants to use. I've done it on
the intranet at work, and on a scale of 1 to 10, it's
about a 4 the first time through, and much easier
afterward, setting the permissions is the main gotcha.

Let me know which scenario you are using and I can be of
more help.

Good Luck,

Bill

W.G. Ryan
do********@comcast.nospam.net
www.knowdotnet.com
-----Original Message-----
I am building an application that would check for newest

releases on start
and if new releases exist, it would update itself. All

reference I have
found are using a web server which I don't want to use.

I am doing this in VB.net, and the updates should be

stored on SQL Server
2000.

Any ideas how can I do this. I have heard something

about AutoUpdate class.
Would it work with an SQL Server as well?

Any help will be appreciated,
--
Dino Buljubasic
Software Developer
http://rivusglobal.com
.

Jul 19 '05 #2
Dino M. Buljubasic <di*************@rivusglobal.com> wrote:
the update will be done over INTERNET. Since I am quite inexperienced with
this, can you explain to me how to do it please.

My idea is to have somewhere on my server (SQL Server or Web Server) a file
with information about the release (eg. a file with date stamp, version
number, and whatever else is needed).

Then, when my application starts, it will read the file and check if a newer
version has been stored on SQL Server (It has to be SQL Server 2000). If
yes, it will connect to the SQL Server 2000 (if it has access rights),
download vb.net executable file of the newer application which will replace
the old application on clients machine.

The thing is that the executable file of the release has to be protected
from public access, that is why I want to have it on SQL Server 2000 and
only users that have access rights can download it. The access right should
be set using user name and password.

Thank you for your help. I appreciate it very much.


Is there any reason for not getting the webserver to make the
connection and serve up the file, using the username and password given
by the user? That way you wouldn't have to open up your SQL server to
the outside world. (At least, not for this particular bit of
functionality.)

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
Jul 19 '05 #3
Dino M. Buljubasic <di*************@rivusglobal.com> wrote:
I am concerned about the security when using web server. That is the main
reason I'd like to use SQL Server 2000 or maybe FTP server (but .NET does
not offer any support for FTP)


Why do you think that putting a SQL server 2000 box or FTP server on
the net is more secure than putting a webserver there?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
Jul 19 '05 #4
I don't know much about security issues but I heard about crawlers and
simmilar software that can get anything from an HTTP Server.

Basically, I am looking for the best solution and since I don't have much of
experience, can you please tell me more about advantages and disadvantages
of web server, sql server and ftp server?

What do you thing is the best way to go for and why giving the requirement I
listed before.

Thank you, any suggestions are welcome.

--
Dino Buljubasic
Software Developer
http://rivusglobal.com

"Jon Skeet" <sk***@pobox.com> wrote in message
news:MP************************@news.microsoft.com ...
Dino M. Buljubasic <di*************@rivusglobal.com> wrote:
I am concerned about the security when using web server. That is the main reason I'd like to use SQL Server 2000 or maybe FTP server (but .NET does not offer any support for FTP)


Why do you think that putting a SQL server 2000 box or FTP server on
the net is more secure than putting a webserver there?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too

Jul 19 '05 #5
Dino M. Buljubasic <di*************@rivusglobal.com> wrote:
I don't know much about security issues but I heard about crawlers and
simmilar software that can get anything from an HTTP Server.
That's rubbish. If something is password protected, it's password
protected, unless there's a bug in the server - and there can be bugs
in ftp servers and SQL servers just as easily as in web servers.
Basically, I am looking for the best solution and since I don't have much of
experience, can you please tell me more about advantages and disadvantages
of web server, sql server and ftp server?
Well, web servers are generally more commonly on the net than either of
the others, so are likely to have had more things thrown at them over
time. FTP servers would come second in that regard.
What do you thing is the best way to go for and why giving the requirement I
listed before.


I would just go with a web server solution. Putting a database server
up on the net doesn't gain you anything, and opens you up *slightly*
more for denial of service attacks, I suspect.

Given that as you said before, everything is geared towards using a web
server, I'd be looking for some really pretty convincing arguments
against using a web server before considering it - and crawlers being
able to "get anything" *isn't* a convincing argument.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
Jul 19 '05 #6
Are you talking about IIS server when you say 'web server'?

I heard that IIS has lots of holes and compatibility issues with .NET.

Also, setting permissions for users can be troublesome. Is that right?
"Jon Skeet" <sk***@pobox.com> wrote in message
news:MP************************@news.microsoft.com ...
Dino M. Buljubasic <di*************@rivusglobal.com> wrote:
I don't know much about security issues but I heard about crawlers and
simmilar software that can get anything from an HTTP Server.


That's rubbish. If something is password protected, it's password
protected, unless there's a bug in the server - and there can be bugs
in ftp servers and SQL servers just as easily as in web servers.
Basically, I am looking for the best solution and since I don't have much of experience, can you please tell me more about advantages and disadvantages of web server, sql server and ftp server?


Well, web servers are generally more commonly on the net than either of
the others, so are likely to have had more things thrown at them over
time. FTP servers would come second in that regard.
What do you thing is the best way to go for and why giving the requirement I listed before.


I would just go with a web server solution. Putting a database server
up on the net doesn't gain you anything, and opens you up *slightly*
more for denial of service attacks, I suspect.

Given that as you said before, everything is geared towards using a web
server, I'd be looking for some really pretty convincing arguments
against using a web server before considering it - and crawlers being
able to "get anything" *isn't* a convincing argument.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too

Jul 19 '05 #7
Dino M. Buljubasic <di*************@rivusglobal.com> wrote:
Are you talking about IIS server when you say 'web server'?
Or Apache.
I heard that IIS has lots of holes and compatibility issues with .NET.
Did you hear about the SQL Slammer worm that went round recently too?
Also, setting permissions for users can be troublesome. Is that right?


Don't know, myself - I haven't administered any IIS boxes personally.
I'm sure it's doable though.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
Jul 19 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by The List Man | last post: by
6 posts views Thread by Gert van der Kooij | last post: by
1 post views Thread by Michel Esber | last post: by
reply views Thread by =?Utf-8?B?VG9kZA==?= | last post: by
4 posts views Thread by =?Utf-8?B?Zmx5ZXJk?= | last post: by
1 post views Thread by =?Utf-8?B?LUdFUC4=?= | last post: by
1 post views Thread by =?Utf-8?B?RUVL?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.