473,725 Members | 2,276 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3068
some .net wise guy waana answer him?
"joo" <xm********@yah oo.com> wrote in message
news:#4******** ******@TK2MSFTN GP12.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.e xe"</Name>
<Version>"1.0.5 .0"</Version>
<Description>Up date 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.ex e"</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**********@gi sinfosystemsNOS PAM.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
9236
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 try-out version should be a full, complete, version. As much as I like the opensource movement, I have a problem now. If I just give them the Python source code then they can show it to their programmers and they have no reason anymore to pay...
5
1947
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
1928
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
1598
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 supported...") still shows links to the old versions' methods. It's as though it cached a copy of the old one and refuses to let it go. What file am I not updating or not putting in the right place?
2
246
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 exploit .Net technology to implement this? Any idea on this? Thanks.
1
1350
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 in runtime in the client application using A.S.P.net with c#
3
1623
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, some bug fixes i wish to update all my clients... Anyone have some articles about it?? some tips for doing it??
4
15065
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 browsing to "web services in this solution". Sometimes, I cannot connect connect to my webservice, so I try an "update web reference" - but this results in an error:
1
1353
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 'Update web references' in my Business Logic Layer to get all my webmethod functions.
0
8889
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, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8752
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9401
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9116
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
8099
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 project—planning, coding, testing, and deployment—without 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...
1
6702
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6011
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
4519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2157
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.