self-updating

Self deletable application in C# in one executable

自闭症网瘾萝莉.ら 提交于 2019-12-17 08:21:35
问题 Is it possible to make an application in C# that will be able to delete itself in some condition. I need to write an updater for my application but I don't want the executable to be left after the update process. There is an official .Net OneClick but due to some incompatibilities with my HTTP server and some problems of OneClick itself I'm forced to make one myself. George. [EDIT] In more details: I have: Application Executable which downloads the updater ("patch", but not exactly) this

Executing and then Deleting a DLL in c#

别等时光非礼了梦想. 提交于 2019-12-06 05:22:06
I'm creating a self updating app where I have the majority of the code in a seperate DLL. It's command line and will eventually be run on Mono. I'm just trying to get this code to work in C# on windows at the command line. How can I create a c# application that I can delete a supporting dll while its running? AppDomain domain = AppDomain.CreateDomain("MyDomain"); ObjectHandle instance = domain.CreateInstance( "VersionUpdater.Core", "VersionUpdater.Core.VersionInfo"); object unwrap = instance.Unwrap(); Console.WriteLine(((ICommand)unwrap).Run()); AppDomain.Unload(domain); Console.ReadLine(); at

Is it possible to implement a self-updating ASP.NET web application?

蹲街弑〆低调 提交于 2019-12-03 13:51:07
问题 Wordpress has the capability to update itself (on admin user's request). Is it possible to implement something similar using ASP.NET? I can see web.config and bin folder causing problems. 回答1: ASP.NET uses shadowcopy of dlls in your bin folder to allow you to xcopy a new set of dlls and content up to the server without those files being locked. So, dlls and web.config are not a problem. The issue will be around having the process that runs your ASP.NET site have write access to the file

Can an app written with .net Compact Framework restart itself?

时光怂恿深爱的人放手 提交于 2019-12-03 08:35:55
Can an app written with .net Compact Framework restart itself? What are some of the common patterns to achieve this? I would like to have a self-updating application that restarts itself if update was done. Of course, I could have 2 .exe: one that updates and the actual app, but I would rather just have one. Absolutely. It's actually way easier to do than on the desktop. If you're using the SDF, use this: var thisName = Assembly.GetExecutingAssembly().GetName().CodeBase; var time = DateTime.Now.AddSeconds(11); Notify.RunAppAtTime(thisName, time); If you want to do it manually, you'd p/invoke

Is it possible to implement a self-updating ASP.NET web application?

﹥>﹥吖頭↗ 提交于 2019-12-03 03:51:54
Wordpress has the capability to update itself (on admin user's request). Is it possible to implement something similar using ASP.NET? I can see web.config and bin folder causing problems. ASP.NET uses shadowcopy of dlls in your bin folder to allow you to xcopy a new set of dlls and content up to the server without those files being locked. So, dlls and web.config are not a problem. The issue will be around having the process that runs your ASP.NET site have write access to the file system. This is generally a bad idea. You should consider putting this "auto update" functionality into the hands

How to self-update PHP+MySQL CMS?

烂漫一生 提交于 2019-12-03 03:14:04
问题 I'm writing a CMS on PHP+MySQL. I want it to be self-updatable (throw one click in admin panel). What are the best practices? How to compare current version of cms and a version of the update (application itself and database). Should it just download zip archive, upzip it and overwrite files? (but what to do with files that are no longer used). How to check if an update is downloaded correctly? Also it supports modules and I want this modules to be downloadable from the admin panel of cms.

Self updating app

人盡茶涼 提交于 2019-12-02 14:19:02
TL:DR; version ;) my app should run without user interaction (autostart etc works) it should update itself (via apk) without any user interaction rooted devices are possible . problem: querying a newer apk from a server works when starting the apk with a (view?) intent, the "install app" prompt pops and needs a user confirmation How do I solve this without any user interaction? http://code.google.com/p/auto-update-apk-client/ This seems to be a solution, but there must be better approach. I already found this: Install Application programmatically on Android but that doesn't solve my problem.

Don't lock files of application while running

一曲冷凌霜 提交于 2019-12-01 23:27:54
问题 I am creating a software application that is able to update itself. After the start, the application checks if there are updates avaiable, download those files (assemblies), and then proceeds loading them. However, the problem is when the application is run by multiple users at the same time. This happens when running on a terminal server. The application can't replace those old files, since windows keeps them locked. Is there a simple way to solve this problem? It's a legacy application, and

Don't lock files of application while running

霸气de小男生 提交于 2019-12-01 20:33:58
I am creating a software application that is able to update itself. After the start, the application checks if there are updates avaiable, download those files (assemblies), and then proceeds loading them. However, the problem is when the application is run by multiple users at the same time. This happens when running on a terminal server. The application can't replace those old files, since windows keeps them locked. Is there a simple way to solve this problem? It's a legacy application, and I don't have the time to alter big parts of the application or the update mechanic. A simple solution

How to automatically update an application installed with Inno Setup

穿精又带淫゛_ 提交于 2019-11-29 11:41:07
I have an executable application setup.exe for Windows that I realized with Launch4j/Inno Setup based on Java. I often frequently release new versions and bug fixes. I would like to know if there is a mechanism to install updates automatically? Inno Setup does not have any built-in mechanism for implementing automatic updates. You need to implement that yourself: Make your application check for new versions (against your application webpage?). E.g. on startup (on a background thread?) If the application detects a new version, make it download an installer to a temporary location. Make the