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 install fails on terminal servers with multiple users already running the program

See original GitHub issue

22.11.7

Which version of node are you using? 14.17.1

Which version of electron are you using? 8.5.5

Which version of electron-updater are you using (if applicable)? 4.3.9

For which target are you building for?

"win": {
            "icon": "resources/icons/win/icon.ico",
            "target": {
                "target": "nsis-web",
                "arch": [
                    "ia32",
                    "x64"
                ]
            },
            "artifactName": "${name}_setup_${version}.${ext}"
        },
        "nsisWeb": {
            "createDesktopShortcut": false,
            "createStartMenuShortcut": true,
            "menuCategory": true,
            "guid": "com.update-test",
            "perMachine": false,
            "allowElevation": true,
            "differentialPackage": true,
            "uninstallDisplayName": "${productName}",
            "runAfterFinish": true,
            "oneClick": true,
            "allowToChangeInstallationDirectory": false
        },

The issue I am having is the NSIS installer incorrectly determines the application is still running on terminal servers if any user has it open, even when using per user. This blocks the install most of the time, or worse yet, auto kills all instances on the terminal server for all users when one user wants to update their individual install. Both of these are serious bugs. The installer should not check processes for other users when it is installed to one user folder. And it absolutely should not be able to kill the process for other users.

To reproduce. Build an NSIS-web installer. Connect to a terminal server with 2 different users. Install and run the application one one user. Then try to install on the other, it will fail. image On the right is the application running on a terminal server user. On the left is the installer trying to run on the same server but a different user

Is there a way to disable to is running check with a custom nsis script or anything? We encountered this bug during a large deployment which we have now paused.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:23 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
I-Otsukicommented, Dec 4, 2021

elevated instance of current user is detected, but not closed while non-elevated installer continues.

Found that said behaviour has been there from before I made changes.

Anyway, this could be a cause of what @TDola reported, I mean, random closing of processes. I fixed this and opened a PR #6472

Read more comments on GitHub >

github_iconTop Results From Across the Web

8 Ways to Permanently Fix the NSIS Error in Windows 11
1. Rename the installer setup · 2. Move installer setup to another folder · 3. Use a third-party repair software · 4. Run...
Read more >
Take Control: Error: NSIS ERROR "Error Launching Installer"
Solution · The installer is corrupted, and we should download a new installer and retry the installation · The Windows User Account has...
Read more >
NSIS Error on multiple programs - Microsoft Community
Hello, I have had NSIS Errors while installing programs like F. lux, MSI Afterburner or TI-Connect while programs like steam, spotify, logitech ...
Read more >
NSIS: Nullsoft Scriptable Install System / Bugs / #1113 UserInfo
I tried to use GetAccountType and GetOriginalAccountType, but they always return the same result, either 'User' (if I start NSIS from a non ......
Read more >
Why do I get NSIS Error?
If the software was obtained from a CD, DVD, or other physical media: ... If you are receiving this problem from an installer...
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