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

NSIS installer "CHECK_APP_RUNNING" breaks if installer has same executable file name as app #894

Closed
lishid opened this issue Nov 9, 2016 · 1 comment · May be fixed by qcif/data-curator#563

Comments

@lishid
Copy link

lishid commented Nov 9, 2016

  • Version: 7.24.1
  • Target: Windows NSIS

Observed behavior:

  • User downloads installer
  • User renames installer from "Appname Setup 1.0.0.exe" to "Appname.exe"
  • User runs installer
  • Installer prompts "Appname is running. Click OK to close it..."
  • User clicks OK
  • Installer disappears (process is killed), user confused.

Code reference: https://github.com/electron-userland/electron-builder/blob/master/templates/nsis/allowOnlyOneInstallerInstance.nsh#L26

According to this CHECK_APP_RUNNING check, we're only looking for the process name. Is there any way we can exclude the current executable (the installer) from the check?

I understand that most users won't bother renaming the installer, but out of the few who does, that're totally confused why the app won't install. As a result, we get complaints from time to time from users who think we might have dropped support for their version of Windows, or if we don't support 32-bit or 64-bit version.

@develar
Copy link
Member

develar commented Nov 12, 2016

For now if installer process name equals to APP_EXECUTABLE_FILENAME, we do not check if app is already running. Probably pid should be used, but for now it is implemented so.

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

Successfully merging a pull request may close this issue.

2 participants