App. Installation/Update through an url ?

  • Thread starter Thread starter Cybertof
  • Start date Start date
C

Cybertof

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