gpt4 book ai didi

windows - electron-builder:卸载程序后如何删​​除深度链接协议(protocol)?

转载 作者:可可西里 更新时间:2023-11-01 10:41:03 33 4
gpt4 key购买 nike

我正在使用 electron 和 electron-builder 进行一个项目。我在我的 package.json 文件中实现了深度链接协议(protocol)。在 Windows 上删除应用程序后,深度链接协议(protocol)仍然存在。我需要这个不要坚持。

我试过:1) 删除我的 %appdata%\program 文件夹2)卸载后重新启动我的电脑。3) 清除浏览器缓存。

{
"name": "program",
//...
"scripts": {
//...
},
"build": {
//...
"protocols": {
"name": "electron-deep-linking",
"schemes": [
"deeplinkingURI"
]
},
"win": {
"artifactName": "program.${ext}",
"target": [
{
"arch": [
"ia32",
"x64"
],
"target": "nsis-web"
}
]
},
//...
},
//...
}

卸载我的程序后,深层链接仍然有效(它不会启动应用程序,因为它显然已被卸载,但仍然出现尝试启动任何内容的提示)。

我怀疑我的 Windows 注册表中还有什么东西。注意:在 macOS 上不会出现此问题

最佳答案

所以我找到了我自己的问题的答案(不是我,而是同事)。 computer\HKEY_CLASSES_ROOT\deeplinkingurl 下有一个注册表文件,必须在通过脚本卸载时将其删除。

another question (我之前没有看到,请原谅)提供了更多细节。

关于windows - electron-builder:卸载程序后如何删​​除深度链接协议(protocol)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57367003/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com