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

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?
Where is my MPI job running?
Replace new version of infragistic controls with old version of infragistic controls
What happens when an application (desktop/game) hangs or it is forced to be closed, or when electricity fails?
Get Claims from STS in DesktopApp (active)

Categories

HOME
asp.net
airflow
twitter-bootstrap
optimization
virtual-machine
ssh
windows-server-2008
ibm
skypedeveloper
hex
cryengine
squeak
ubuntu-14.04
opc-ua
overrides
jquery-select2
wavefront
google-api-oauth
solidity
loss
windows-phone
git-branch
hololens
aws-iot
pydub
proof-general
meteor-accounts
javapns
hierarchy
mobile-development
jboss-arquillian
tikz
jql
urhosharp
ng2-bootstrap
flickr
rtsp
dotnetnuke-module
jibx
area
fisheye
google-cloud-powershell
result
synchronized
jks
pyopenssl
spring-cloud-bus
history
flask-socketio
ng-class
monaca
audio-fingerprinting
was
cardview
catalyst
breadcrumbs
alarmmanager
gevent
easy68k
strtol
hdr
angularfire
django-celery
mrunit
gulp-cdnizer
adempiere
eaaccessory
stderr
system.diagnostics
genero
bungeecord
google-experiments
backtrace
indices
crtdbg.h
grunt-contrib-connect
redmine-plugins
pnunit
pytz
drawable
xpand
windows-phone-store
facebook-java-api
nomachine
mysql-error-1146
mobile-robots
ie-developer-tools
ironworker
zend-db-table
infinity.js
qt5.1
freeimage
socketasynceventargs
idtabs
copyfile
pex-and-moles
file-processing
azure-appfabric
browser-state
dgml
mdd
ihtmldocument2
zend-acl
bootstrap-protocol
office-2003
weak-typing

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