desktop-application


Electron autoUpdater: User initiated download on 'update-available'


I want the user to be able to control what happens upon 'update-available'.
No matter what I do here, autoUpdater seems to proceed with downloading the update.
How can I make autoUpdater NOT proceed with the download?
autoUpdater
.on('error', function(error){
// [Log and show dialog] ...
})
.on('update-available', function(e) {
// [Confirmation dialog] ...
if (downloadConfirmation === 0) {
return;
}
})
.on('update-downloaded', function (event) {
// [Restart now? Dialog] ...
if (index === 1) return;
force_quit = true;
autoUpdater.quitAndInstall();
});
autoUpdater.checkForUpdates();
It is not possible. Or you can implement your own updater, please see https://github.com/electron/electron/blob/master/lib/browser/api/auto-updater/squirrel-update-win.js
Electron-builder NSIS auto-updater allows you to control it, but it is not yet ready (https://github.com/electron-userland/electron-builder/issues/529).

Related Links

HTML/CSS/JS desktop application runtime for RHEL6
How can I make offline maps for Windows Desktop Application using Mapbox
Connect Production server sql database from my desktop application
softphone pbx software creation [closed]
How do I correctly ship licenses with my desktop app?
TideSDK: Download mp3 files
How to login to OWIN Web Api 2 WS-Federation server from desktop app
How to inspect elements in a desktop application?
IBM Worklight - Can we create a desktop based application?
How to capture traffic of Desktop Application Using Fiddler
How to write a program that starts or pops every time I unlock my computer?
Steps to Create a Signed Desktop App for Windows 8?
Developing an Offline Native Application from a Web Dev background [closed]
Is libGDX suited for desktop-only application development?
UltraWinToolbars Control is not working in new version 12.2
SoundCloud Desktop Sharing Kit Broken?

Categories

HOME
pact
postgresql
skype-for-business
stata
ubuntu-14.04
google-docs-api
restheart
subprocess
runtime
activejdbc
apache-httpclient-4.x
kairosdb
http-status-codes
popup
openstack-horizon
gnu-screen
pushbullet
onclicklistener
procedural-generation
oracle-golden-gate
policy
scripting-language
sqldependency
request-uri
sphinx4
jboss-arquillian
foxpro
directions
oracle-nosql
mapquest
area
aspose.pdf
icu
android-graphview
jquery-ui-slider
java-5
colorbox
encoder
serverless-architecture
standard-error
dotnet-cli
playframework-1.x
jtextarea
wicketstuff
lightspeed
group
access-violation
require-handlebars
sbt-proguard
python-rq
jmh
android-progressbar
ideavim
code-translation
fadein
askbot
ruby-1.8.7
serial-communication
windows-phone-8-emulator
jsoncpp
android-filterable
photogrammetry
vectordrawable
system.diagnostics
sicstus-prolog
autopep8
teamstudio-unplugged
pysvn
report-builder2.0
powershell-v1.0
pnunit
amzi-prolog
isl
code-smell
nodeunit
dayofweek
nvcc
usersettings
http-compression
spawn
reference-manual
expresso-store
custom-cursor
android-memory
commonsware
gmagick
s60
nstoolbar
hp-trim
dynamic-scope
dojox.gfx
hotfix
urlscan

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App