Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates not installed when starting Electron app via custom protocol link #32

Open
dsteegen opened this issue Jun 30, 2017 · 0 comments

Comments

@dsteegen
Copy link

Hi,

How can I force the application to start looking for updates/install updates when it is being started with a custom protocol link? At this moment it only works when directly opening the application via the .exe.

The code for installing the updates is behind the typical if check that is suggested in the readme:

if (!require('electron-squirrel-startup')) {

}

But it seems that the squirrel events for triggering the install will not be set in the first argument of process.argv

Is there a work around available for this problem? The reason why custom protocol links are being used is because we have different shorts cuts for the Electron app that points to different environments (e.g dev/test/acc/prod). When not using the exe directly, it will redirect the user to the prod environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant