Restarting packaged app not working
See original GitHub issue- Version: 21.1.5
- Target: Windows 10
My application restarts using
app.relaunch();
app.quit();
This works fine if run from source or packaged using electron-packager. If the app runs from a single .exe file build by electron-builder, it just exits the application without restarting. Any hints on how to fix this? Thanks!
Issue Analytics
- State:
- Created 4 years ago
- Comments:7
Top Results From Across the Web
App Won't Open on Android? 10 Ways To Fix - Online Tech Tips
You can perform a soft reboot by long-pressing the power button and selecting Restart or swiping the app-shade down, selecting the power icon, ......
Read more >Troubleshooting packaging, deployment, and query of ...
Error code Value Description and possible causes
E_INVALIDARG 0x80070057
ERROR_INSTALL_INVALID_ PACKAGE 0x80073CF2 The package data isn't valid.
ERROR_INSTALL_NETWORK_ FAILURE 0x80073CF5 The package can't be downloaded.
Read more >How to restart self package after update - android
I had the same issue, i needed to update my app and restart it afterwards. I solved it like this: String command =...
Read more >RStudio Connect, app restart after package updates
Hiya, we're using RStudio Connect in our company (migrated from Shiny Server Pro) and we're running into some issues with package management (e.g....
Read more >Android Package Installer Not Working - YouTube
Let's fix your Android package installer if it's not working properly in this quick and easy guide.If you find that Android's package ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The packaged app is stored as an NSIS archive, so the demo app is running from temp.
If you replace your code with the below, it should resolve your issue:
for anyone that still encounter this problem like me:
execPath will be undefined if not in portable app resulting in the default behavior