self-updating

How to create a self-updating Node.js application?

喜你入骨 提交于 2020-08-22 09:39:06
问题 I'd like to create an application with Node.js that periodically checks for updates and installs them if there are any. The basic components are clear to me: A web server (or an FTP server, a file system, ...) which contains the update packages A version system (such as SemVer) so that you can tell which package is newer A public-key algorithm for signing update packages Then, there may be different strategies on when to check for updates and install updates: On application start On

How to automatically update an application installed with Inno Setup

早过忘川 提交于 2020-07-07 12:33:48
问题 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? 回答1: 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

How to automatically update an application installed with Inno Setup

社会主义新天地 提交于 2020-07-07 12:33:10
问题 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? 回答1: 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

Self updating bash script from github

梦想的初衷 提交于 2020-01-23 17:11:33
问题 I am trying to make my script to check if there is an update from my repo in github and then get the updates and replace old code with new one and run the new code “not the old one”. I came up with this but it updates after it finishes self_update() { cd $(dirname $0) git fetch > a.txt 1> /dev/null 2> /dev/null git reset --hard >> a.txt 1> /dev/null 2> /dev/null git pull >> a.txt 1> /dev/null 2> /dev/null rm a.txt chmod +x "$(basename $0)" cd - } self_update echo “some code” Edit: I found the

Self updating bash script from github

烈酒焚心 提交于 2020-01-23 17:11:12
问题 I am trying to make my script to check if there is an update from my repo in github and then get the updates and replace old code with new one and run the new code “not the old one”. I came up with this but it updates after it finishes self_update() { cd $(dirname $0) git fetch > a.txt 1> /dev/null 2> /dev/null git reset --hard >> a.txt 1> /dev/null 2> /dev/null git pull >> a.txt 1> /dev/null 2> /dev/null rm a.txt chmod +x "$(basename $0)" cd - } self_update echo “some code” Edit: I found the

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

我的梦境 提交于 2020-01-01 03:31:07
问题 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. 回答1: 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 =

How to automatically update an application installed with Inno Setup

喜夏-厌秋 提交于 2019-12-29 07:57:08
问题 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? 回答1: 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

How to automatically update an application installed with Inno Setup

不羁的心 提交于 2019-12-29 07:57:08
问题 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? 回答1: 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

Executing and then Deleting a DLL in c#

﹥>﹥吖頭↗ 提交于 2019-12-22 14:54:36
问题 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

Self updating app

吃可爱长大的小学妹 提交于 2019-12-20 08:29:33
问题 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