-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
After upgrading to 24.13.2, Windows NSIS installer Failed to uninstall old application files when there is an app running #8131
Comments
What's your |
thank you so much @mmaietta I have the repo https://github.com/zaichaopan-alianza/electron-builder-24.13.2-nsis-installer you can try. It is from electron-quick-start. My config is very simple. It just {
"name": "electron-quick-start",
"version": "1.0.0",
"description": "A minimal Electron application",
"main": "main.js",
"build": {
"appId": "com.example.electron-quick-start"
},
"scripts": {
"start": "electron .",
"pack": "electron-builder --dir",
"dist": "electron-builder"
},
"repository": "https://github.com/electron/electron-quick-start",
"keywords": [
"Electron",
"quick",
"start",
"tutorial",
"demo"
],
"author": "GitHub",
"license": "CC0-1.0",
"devDependencies": {
"electron": "^29.1.1",
"electron-builder": "24.13.2"
}
} |
Thanks for the repo! Really appreciate it. Will take a look this week when I find some solid time outside of work |
SYSTEMROOT = "c:\windows", The path c:\windows contains special characters, so it needs to be enclosed in double quotes to work properly.
|
@beyondkmp I tried the fix #8133. The issue is no longer reproduced. Thanks a lot! |
Releasing in |
Would this fix be backported to 24.13.3 ? |
Unfortunately, AFAIK it's not possible to backport fixes to previous versions due to the @changesets CI/CD approach. It's only able to roll forward AFAICT. Happy to be disproved otherwise though! |
Was the fix for this released already? |
@indutny-signal The fix that was implemented was released in |
I was hoping for a stable release, but currently fighting my way through upgrading to 25.0.0 😂 Universal builds appear to be a bit hosed. |
@indutny-signal yeah, I plan on converting it to stable soon, I was just hoping for more adoption than the ~7% it currently is 😅 Can you open a new GH issue for the universal build issue you mention? That particularly confuses me. |
Hi @mmaietta , We're currently running [email protected], and getting the same error. I've tried a number of different fixes across GH Issues, SO, and asking LLM's but nothing seems to be remedying. Any ideas? |
大神,最后怎么处理的这个问题,可以贴下回复吗,万分感谢! |
@finnlaymfarmor @1007912932 Can you provide a minimal reproducible demo code? |
electron-builder哪个版本解决了吗,我看8133关闭了 |
能加个微信沟通下吗? |
降回22.14.13就可以了,升级electron-builder@25也不行 |
This issue needs to be reopened as it seems we have not come into a common conclusion that this is fixed @mmaietta |
After upgrading to 24.13.2, when installing nsis installer when app is running, it shows below error "xxxx cannot be closed. Please close it manually and click Retry to continue"
Click Retry will keep showing the dialog again. When click Cancel, it shows "old application files cannot be uninstalled"

Versions before 24.13.2 do not have this issue
When try previous version 24.13.1, It shows dialog xxx is running, click OK to close. After click OK, running app will close and install will continue.
Step to reproduce
Seems like the fix in #8059 introduce this issue. Have anyone run into the same issue?
Thx a million !
The text was updated successfully, but these errors were encountered: