项目场景:
electron 安装程序 windows上的C盘 progrom files 、
问题描述
安装过程中出现 不能打开写入文件 提示如上。
{ "name": "intergeOM-goldwind",
"version": "1.0.0",
"author": "weile",
"description": "运维工具联调阶段版",
"license": "MIT",
"main": "./dist/electron/main.js",
"scripts": {
"dev": "cross-env TERGET_ENV=development node .electron-vue/dev-runner.js",
"build": "cross-env BUILD_TARGET=clean node .electron-vue/build.js && electron-builder",
"build:win32": "cross-env BUILD_TARGET=clean node .electron-vue/build.js && electron-builder --win --ia32",
"build:win64": "cross-env BUILD_TARGET=clean node .electron-vue/build.js && electron-builder --win --x64",
"build:mac": "cross-env BUILD_TARGET=clean node .electron-vue/build.js && electron-builder --mac",
"build:dir": "cross-env BUILD_TARGET=clean node .electron-vue/build.js && electron-builder --dir",
"build:clean": "cross-env BUILD_TARGET=onlyClean node .electron-vue/build.js",
"build:web": "cross-env BUILD_TARGET=web node .electron-vue/build.js",
"update:serve": "node server/mqtt.js",
"dep:upgrade": "yarn upgrade-interactive --latest",
"postinstall": "electron-builder install-app-deps"
},
"build": {
"extraFiles": [
"lib"
],
"publish": [
{
"provider": "generic",
"url": "http://127.0.0.1"
}
],
"productName": "一体化管理工具测试版",
"appId": "org.Sky.electron-vue",
"directories": {
"output": "build"
},
"files": [
"dist/electron/**/*"
],
"dmg": {
"contents": [
{
"x": 410,
"y": 150,
"type": "link",
"path": "/Applications"
},
{
"x": 130,
"y": 150,
"type": "file"
}
]
},
"mac": {
"icon": "build/icons/icon.icns"
},
"win": {
"icon": "build/icons/icon.ico",
"target": "nsis"
},
"linux": {
"target": "deb",
"icon": "build/icons"
}
},
"dependencies": {
"await": "^0.2.6",
"axios": "^0.24.0",
"date-fns": "^2.28.0",
"echarts": "^5.3.0",
"electron-devtools-vendor": "^1.0.4",
"electron-log": "^4.4.6",
"electron-ssh2": "^0.1.2",
"electron-updater": "^4.6.1",
"element-ui": "^2.15.6",
"express": "^4.17.2",
"fourier": "^0.3.0",
"fs-extra": "^10.0.0",
"mosca": "^2.8.3",
"mqtt": "^4.3.6",
"node-fping": "0.0.2",
"nprogress": "^0.2.0",
"osenv": "^0.1.5",
"scp": "0.0.3",
"scp2": "^0.5.0",
"sequelize": "^6.17.0",
"sqlite3": "^5.0.2",
"ssh2": "^1.6.0",
"user-agent": "^1.0.4",
"vue": "^2.6.14",
"vue-i18n": "^8.26.8",
"vue-router": "^3.5.3",
"vuex": "^3.6.2"
},
"devDependencies": {
"@babel/core": "^7.16.7",
"@babel/eslint-parser": "^7.16.5",
"@babel/plugin-proposal-class-properties": "^7.16.7",
"@babel/plugin-proposal-decorators": "^7.16.7",
"@babel/plugin-proposal-do-expressions": "^7.16.7",
"@babel/plugin-proposal-export-default-from": "^7.16.7",
"@babel/plugin-proposal-export-namespace-from": "^7.16.7",
"@babel/plugin-proposal-function-bind": "^7.16.7",
"@babel/plugin-proposal-function-sent": "^7.16.7",
"@babel/plugin-proposal-json-strings": "^7.16.7",
"@babel/plugin-proposal-logical-assignment-operators": "^7.16.7",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7",
"@babel/plugin-proposal-numeric-separator": "^7.16.7",
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
"@babel/plugin-proposal-pipeline-operator": "^7.16.7",
"@babel/plugin-proposal-throw-expressions": "^7.16.7",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-syntax-import-meta": "^7.10.4",
"@babel/plugin-transform-runtime": "^7.16.7",
"@babel/polyfill": "^7.12.1",
"@babel/preset-env": "^7.16.7",
"@babel/register": "^7.16.7",
"@babel/runtime": "^7.16.7",
"@types/fs-extra": "^9.0.13",
"@types/node": "^14.14.41",
"@vue/babel-helper-vue-jsx-merge-props": "^1.2.1",
"@vue/babel-preset-jsx": "^1.2.4",
"autoprefixer": "^10.4.1",
"babel-loader": "^8.2.3",
"cfonts": "^2.10.0",
"chalk": "^4.1.2",
"copy-webpack-plugin": "^9.1.0",
"core-js": "^3.20.2",
"cross-env": "^7.0.3",
"css-loader": "^6.5.1",
"del": "^6.0.0",
"electron": "13.5.1",
"electron-builder": "^22.14.5",
"electron-devtools-installer": "^3.2.0",
"electron-rebuild": "^3.2.7",
"esbuild-loader": "^2.18.0",
"eslint": "^7.32.0",
"eslint-config-standard": "^14.1.1",
"eslint-friendly-formatter": "^4.0.1",
"eslint-loader": "^4.0.2",
"eslint-plugin-html": "^6.2.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.3.1",
"eslint-plugin-standard": "^5.0.0",
"file-loader": "^6.2.0",
"html-webpack-plugin": "^5.5.0",
"mini-css-extract-plugin": "2.4.5",
"multispinner": "^0.2.1",
"node-loader": "^2.0.0",
"portfinder": "^1.0.28",
"postcss": "^8.4.5",
"postcss-loader": "^6.2.1",
"sass": "^1.46.0",
"sass-loader": "^12.4.0",
"style-loader": "^3.3.1",
"svg-sprite-loader": "^6.0.11",
"url-loader": "^4.1.1",
"vue-html-loader": "^1.2.4",
"vue-loader": "^15.9.8",
"vue-style-loader": "^4.1.3",
"vue-template-compiler": "^2.6.14",
"webpack": "^5.65.0",
"webpack-cli": "^4.9.1",
"webpack-dev-server": "^3.11.2",
"webpack-hot-middleware": "^2.25.1",
"webpack-merge": "^5.8.0"
}
}
原因分析:
提示:这里填写问题的分析:
electron打包后在X86平台安装,打包后的资源文件默认放在了需要管理员权限的C盘,windows的安装程序没有权限,导致electron安装包中断安装,导致失败。文章来源:https://www.toymoban.com/news/detail-682398.html
解决方案:
更换到其他目录安装,以管理员方式安装。文章来源地址https://www.toymoban.com/news/detail-682398.html
到了这里,关于记录windows7无权安装的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!