question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NSIS installer always show "XYZ cannot be closed. Please close it ..." when there is other process name contains "XYZ"

See original GitHub issue
  • Electron-Builder Version: 23.0.3
  • Node Version: 16.3.1
  • Electron Version: 16.2.5
  • Electron Type (current, beta, nightly):current
  • Target: Windows 11

In my case, productName of my project is XYZ, it allows user to install a service named XYZ Helper on Windows, which runs when the operating system starts up. When I use electron-builder(23.0.3) to package(target: NSIS), the installer always show XYZ cannot be closed. Please close it manually and click retry to continue. even after I’m sure to quit XYZ completely. Only after I also stop the service named XYZ Helper, this step can be processed. But XYZ Helper is not part of XYZ, which is a separated process and should not be stopped. electron-builder(22.14.13) doesn’t have this problem.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:9
  • Comments:8

github_iconTop GitHub Comments

5reactions
sergeu90commented, Oct 1, 2022

Hi. Any solutiuon exist or need to downgrade?

5reactions
athenakiacommented, May 14, 2022

This problem does not exist on version 22.14.13 or previous.

Read more comments on GitHub >

github_iconTop Results From Across the Web

??? my setup don't close after install !!! - NSIS Forums
on my principal pc where i have working for this setup it does'nt closed. i have close before trying my setup all programms...
Read more >
Check whether your application is running - NSIS Wiki
Make sure your application executable has an easily identifiable name, or you risk detecting another unrelated application having the same name ...
Read more >
Checking if the application is running in NSIS before uninstalling
Just make sure that the first thing that install or un-install does is to delete all xyz.tmp files in %TEMP (or any other...
Read more >
NSIS – Page 2 - kichik's blog
There have also been reports of it packing NSIS Media, but I cannot confirm that. ... Going to the original URL again, you...
Read more >
Version News for Windows - GoodSync
* Encrypted FS: Show decryption error if small number of file/folder names fail to decrypt. * Browse: Fixed rare crashes on Browse dialog...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found