修改electron-builder.yml
文件
在nsis:
下添加新配置
nsis:
artifactName: ${name}-${version}-setup.${ext}
shortcutName: ${productName}
uninstallDisplayName: ${productName}
createDesktopShortcut: always
oneClick: false # 指定是否启用一键安装模式
allowToChangeInstallationDirectory: true # 指定用户是否可以在安装过程中更改安装目录
perMachine: true # 指定安装程序是为所有用户安装true还是仅为当前用户安装false