Electron Tutorial: Building Modern Desktop Apps with Vue.js

I want to build windows app.
I use vue init simulatedgreg/electron-vue, this template and update electron and configuration items have been added.
After the build is successful, an a file is generated build/my-project Setup 0.0.1.exe, but it’s one-click installer, I want to create assisted installer. what should I do. thanks !
the package.json

"devDependencies": {
  "electron": "^9.2.1",
  "electron-builder": "^22.8.0",
},
"build": {
  ...
  "win": {
      "icon": "build/icons/icon.ico",
      "target": [
        {
          "target": "nsis",
          "arch": [
            "x64"
          ]
        }
      ]
    },
},
"nsis": {
    "oneClick": false,
    "allowElevation": true,
    "allowToChangeInstallationDirectory": true,
},
1 Like