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

App. Installation/Update through an url ?

Hello,

I have build a simple C# application.

Is it possible to :

1- Make it available through an url (http://.....)

2- When the user clicks the link, the application would be
downloaded/installed/launched.If the application is already installed on
the pc, it checks the version with the one available within the url, if
the url one is newest, then it is downloaded/updated/launched.

Regards,
Cybertof.
Nov 15 '05 #1
7 1664
Cybertof <cy****************@gmx.net> wrote in
news:MP************************@msnews.microsoft.c om:
Hello,

I have build a simple C# application.

Is it possible to :

1- Make it available through an url (http://.....)
Yes.
2- When the user clicks the link, the application would be
downloaded/installed/launched.If the application is already installed on
the pc, it checks the version with the one available within the url, if
the url one is newest, then it is downloaded/updated/launched.


Not without a client programm that performs the version checking etc. By
default the framework starts assembly directly from the URI without saving
it first to the disk. In this case you also can't get full trust. For
running an assembly with full trust it needs to be run from a local device.

--
best regards

Peter Koen
-----------------------------------
MCAD, CAI/R, CAI/S, CASE/RS, CAT/RS
http://www.kema.at
Nov 15 '05 #2
How do you make it ?
Is it just a link to a .exe file ?
In article <eA**************@TK2MSFTNGP09.phx.gbl>, Peter Koen <koen-
newsreply&snusnu.at> says...
Cybertof <cy****************@gmx.net> wrote in
news:MP************************@msnews.microsoft.c om:
Is it possible to :

1- Make it available through an url (http://.....)


Yes.

Nov 15 '05 #3
Cybertof <cy****************@gmx.net> wrote in
news:MP************************@msnews.microsoft.c om:
How do you make it ?
Is it just a link to a .exe file ?


Yes.
Or respectively a dll if you are just referencing libraries online.
--
best regards

Peter Koen
-----------------------------------
MCAD, CAI/R, CAI/S, CASE/RS, CAT/RS
http://www.kema.at
Nov 15 '05 #4
How can a program self-update itself through the web ?

As it is in memory, it cannot unload itself and replace itself with the
new version of its executable...

Any hints or article ?
Thanks,
Cybertof.
Nov 15 '05 #5
Never tried this but, couldn't you start an upload program and close the
original program. The upload program sends the current version number to
the web site and downloads whatever the web site decides you should
upgrade with. Then runs the upgrade and starts the original (now
upgraded) program, while closing itself.
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Nov 15 '05 #6
Morten Wennevik <Mo************@hotmail.com> wrote in
news:oprxjocdgshntkfz@localhost:
Never tried this but, couldn't you start an upload program and close
the original program. The upload program sends the current version
number to the web site and downloads whatever the web site decides you
should upgrade with. Then runs the upgrade and starts the original
(now upgraded) program, while closing itself.


yeah, that would be possible, but if you don'T want to run a seperate
programm you could do this:

Start a new AppDomain.
Use Reflection to Create an Instance of the updated version in the new
AppDomain.
Start the updated Version.
the New version than takes care of shutting down the old AppDomain and
overwriting the file on the harddisk.

--
best regards

Peter Koen
-----------------------------------
MCAD, CAI/R, CAI/S, CASE/RS, CAT/RS
http://www.kema.at
Nov 15 '05 #7
"Cybertof" <cy****************@gmx.net> wrote in message
news:MP************************@msnews.microsoft.c om...
How can a program self-update itself through the web ?

As it is in memory, it cannot unload itself and replace itself with the
new version of its executable...

Any hints or article ?
Thanks,
Cybertof.


Have a look at the Updater Application Block from MS.
http://msdn.microsoft.com/library/de...dater.asp?_r=1

Good luck.
--
Ryan LaNeve [MCSD.NET]
http://weblogs.asp.net/rlaneve
Nov 15 '05 #8

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

Similar topics

2
by: Ryan McCormack | last post by:
I have a setup project to deploy our software -- but I have a problem. I want the installation to be system wide, but I also want all users to have rwx permissions to the installation directory...
1
by: Roeland Kok | last post by:
Hello, I'm making a setup project for a Windows Installer, to update my application. The application has a configuration file (app.config) that is renamed after the build. I would like to not...
0
by: InstallAware | last post by:
For Press Inquiries: Sinan Karaca InstallAware Software Corporation 336 Guerrero Street, San Francisco CA 94103 415 358 4094 (voice/fax) sinank@installaware.com http://www.installaware.com/ ...
6
by: cat | last post by:
Hi Folks, We are going to start a grand new project, which is DB2v7 FP10a sitting on AIX4.3.3 on M80 server. Here is my question, 1) According to Fixpack installation guide, I have to install...
2
by: mb12036 | last post by:
All- Having a problem installing a DB2 client on a machine running AIX version 5.0. Client appeared to install one time succesfully, then was uninstalled and a reinstall was attempted. For...
4
by: coosa | last post by:
Hi, I was installing SQL Server on my machine and during installation my PC freezed. It happens frequently on my machine. So i tried after restarting to install it again and since then i always...
0
by: Nicolas Noakes | last post by:
Hello, I posted this 2005-01-16 in microsoft.public.sqlserver.setup, but have had no replies yet... We are running SBS 2003 Standard Edition with SP1, and WSUS (Windows Server Update...
20
by: piggy | last post by:
I have developed an application using C# under .NET 2.0 framework. It is almost done and it is time for me to think about deploymnet to all users. I don't have any background about this and would...
0
by: SimoneB | last post by:
I'm trying to install eClient v 8.3 but during configuration Web application server i get the error: "the configuration of eclient failed while creating the web aplication server....
0
by: Veazer | last post by:
I'm trying to install the Windows Media 11 codecs (WMFDIST11-WINDOWSXP-X86-ENU) on a Win2K3 server box used that will be used for encoding video. Unfortunately MS does not officially support the...
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
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,...
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
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,...
0
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...
0
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...

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.