473,320 Members | 2,027 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,320 software developers and data experts.

Software Update Webservice?

joo
Hi!
I need to implement something similar to "Automatic Update" feature which we
see in windows 2000. We need this support for our software, basically to
provide the software update. How can I exploit .Net technology to implement
this?
Any idea on this?
Thanks.
Jul 21 '05 #1
2 3022
some .net wise guy waana answer him?
"joo" <xm********@yahoo.com> wrote in message
news:#4**************@TK2MSFTNGP12.phx.gbl...
Hi!
I need to implement something similar to "Automatic Update" feature which we see in windows 2000. We need this support for our software, basically to
provide the software update. How can I exploit .Net technology to implement this?
Any idea on this?
Thanks.

Jul 21 '05 #2
There are a quite a few ways to do this, for software
application designs, I prefer calling the web service
from within a subcomponent of the application.

There are quite a few parts involved to do this.

Basically you are going to need two services, and your
application is going to need to interface with one of
them (to query whether or not there are updates
available).

One service will run under the NETWORKSERVICE account (if
available) to check to see if there are updates from the
website. (Service A)

The second service runs under the LOCALSYSTEM account to
actually fire up the msiexec process to install the
updates. (Service B)

(Service A) is the check and transfer mechanism whereas
(Service B) job is to actually fire up the installation.
(Service B) has no network access - but full local system
privledges.

Due to my NDA - I can't tell you codewise how to do it -
since I've already implemented it - but I can give you
the general steps...

When your application starts up - Ask (Service A) to see
if any updates are available.

(Service A) will tell (Service B) to check for updates.
(Service B) will make a call to the web service.

If there are no updates, service b returns status flag
that says so to Service A then service A returns to the
application that there are no updates available.

If updates are available, return a structure that
contains information (perhaps in XML format) for (Service
B) to retrieve those updates (basically instructions on
how to get the files - and info on what those files
should be - the command line parameters to pass to those
files, when they are run).

When (Service B) fetches the files to the local machine,
(Service A) will then get the XML data from (Service B)
that was returned from the web service so it knows
exactly what to call to install the updates.

Here is an example XML structure:

<Updates>
<Version 1.0>
<Files>
<File>
<Name>"update.exe"</Name>
<Version>"1.0.5.0"</Version>
<Description>Update the .dll file to show
UI</Description>
<Size>423838</Size>
<CRC>"0x48c"</CRC>
<CLP>"/q /c:'setup.exe /R:N /Q:a'"</CLP>
</File>
<File>
<Name>"setup.exe"</Name>
<Version>"2.0.0.0"</Version>
<Size>423838</Size>
<CRC>"0x48c"</CRC>
<CLP>"/q /c:'setup.exe /R:N /Q:a'"</CLP>
</File>
</Files>
</Version 1.0>
<Version 2.0>
.....
.....
</Version 2.0>
</Updates>

If you standardize on a XML format for your file updates,
then you can support multiple versions of the same
application - and apply the updates that pertain to that
specific version.

(Service A) will look at the XML file, do some basic
checking to see if the updates have already been applied
by looking at the version of your software and files that
have already been applied to determine which update to
put in the system - you could maintain a registry key
that basically has a string value for each update
applied - then you can track it easily - no different
than what MS does for IE I suppose. :)

Good luck! :)

I hope this gave you some guidance.

=-Chris

Christopher F. Conner
Senior Database Administrator
GIS Information Systems
http://www.gisinfosystems.com/
Ch**********@gisinfosystemsNOSPAM.com

To send email inquiries, remove NOSPAM from my email
address.

-----Original Message-----
Hi!
I need to implement something similar to "Automatic Update" feature which wesee in windows 2000. We need this support for our software, basically toprovide the software update. How can I exploit .Net technology to implementthis?
Any idea on this?
Thanks.
.

Jul 21 '05 #3

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

Similar topics

16
by: Will Stuyvesant | last post by:
Suppose I want to sell a (small, 1000 lines) Python program. It is a commandline program for database applications and I have a customer. The customer wants to "try it out" before buying. The...
5
by: Sadun Sevingen | last post by:
hi i get dataset from'an webservice so i don't have an adaptor... dataset's structure is same as mine database table.... how can i update database table according to dataset...
9
by: Lucas | last post by:
Hi, I have an ASP.Net application and I'd like to know about how to protect it from Software Piracy. Are there some alternatives to do that? Thanks a lot LucasC
7
by: John Spiegel | last post by:
Hi all, How does one update a web service? Should be insanely simple but when I copy an updated version (with new webmethods) to the server, the test page ("The following operations are...
2
by: joo | last post by:
Hi! I need to implement something similar to "Automatic Update" feature which we see in windows 2000. We need this support for our software, basically to provide the software update. How can I...
1
by: satyaashok | last post by:
first iam create a webservice and it is consume in client web application now change parametars in the webservice ,now in client application with out update the webservice, it is update dynamically...
3
by: IsRaEl | last post by:
Helo everyone, I'm doing a software that is installed on my clients, to transfer files via WebService... I need to do something that should update this software....when a update the code,...
4
by: Peter K | last post by:
Hi I have a webservice project in Visual Studio, and another project which uses the webservice. My other project has a web reference to the webservice project, created via Visual Studio by...
1
by: John Sheppard | last post by:
Hello, I have a VB.Net solution with 3 projects in it One is a webservice One is a Business Logic Layer One is a User Interface layer When ever I change the webservice I have to click on...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.