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

Installer crash at the end of the installation on Windows 7 SP1 x64 (not on Windows 11) #6427

Closed
Madriix opened this issue Nov 17, 2021 · 3 comments

Comments

@Madriix
Copy link

Madriix commented Nov 17, 2021

  • Electron-Builder Version:
    22.13.1

  • Node Version:
    14.17.1

  • Electron Version:
    Tested on both Latest version and 10.4.0 for the same issue

  • Electron Type (current, beta, nightly):
    current

  • Target:
    Windows 7 SP 1 x64

On Windows 7 SP1 x64 after doing "yarn dist", it creates "dist/name Setup 1.0.2.exe" and as soon as I install it on the same Windows 7 the application is installed and started successfully at the end but at the same time the installer creates a crash which is due to the installer, this crash is:

https://www.zupimages.net/up/21/46/9tkt.jpg
alt text

It doesn't do it again when I run the app directly via dist\win-unpacked.
This crash it only does on Windows 7. I tested the installer on Windows 11 and no problem.

Where could the problem come from?

Here is the biggest part of my package.json:

{
  "name": "test",
  "version": "1.0.2",
  "description": "test",
  "main": "main.js",
  "build": {
    "productName": "test",
    "appId": "com.test.test",
    "directories": {
      "output": "dist"
    },
    "linux": {
      "target": "deb",
      "icon": "logo.png",
      "executableName": "offs",
      "desktop": {
        "Name": "test",
        "Icon": "logo.png",
        "Comment": "Owner Free File System",
        "Categories": "Network"
      }
    },
    "mac": {
      "target": "zip",
      "icon": "logo.icns"
    },
    "win": {
      "target": "nsis",
      "icon": "icon.ico"
    }
  },
  "scripts": {
    "start": "electron .",
    "pack": "electron-builder --dir",
    "dist": "electron-builder build --win --x64"
  },
  "repository": "https://github.com",
  "author": "test",
  "license": "CC0-1.0",
  "private": true,
  "devDependencies": {
    "electron": "^10.4.0",
    "electron-builder": "^22.13.1",
    "electron-installer-windows": "^3.0.0"
  },
  "dependencies": {
    "custom-electron-titlebar": "^3.2.7"
  }
}

Cdt

@Madriix
Copy link
Author

Madriix commented Nov 17, 2021

they probably have the same problem here: https://issueexplorer.com/issue/vladimiry/ElectronMail/433

@Madriix
Copy link
Author

Madriix commented Nov 17, 2021

"nsis": {
       "runAfterFinish": false
     }

I just put this and indeed the problem goes away. On the other hand, it's a shame because the application does not start automatically and that should, question of UX.

Do you have any idea how to solve this problem?
There must certainly be a problem behind the scenes, like for example a bad dir "C:/ ......" address and maybe this create an error

@stale
Copy link

stale bot commented Apr 16, 2022

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

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

No branches or pull requests

1 participant