【问题标题】:electron-builder: How can I remove deeplinking protocols once the program is uninstalled?electron-builder:卸载程序后如何删​​除深度链接协议?
【发布时间】:2019-12-13 11:22:03
【问题描述】:

我正在使用电子和电子生成器进行一个项目。我在 package.json 文件中实现了深度链接协议。在 Windows 上删除应用程序后,深度链接协议仍然存在。我需要这个不要坚持。

我试过了: 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 上不会出现此问题

【问题讨论】:

    标签: windows electron deep-linking electron-builder


    【解决方案1】:

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

    another question(我以前没见过,请原谅我)提供了更多细节。

    【讨论】:

      猜你喜欢
      • 2018-12-06
      • 2022-06-10
      • 1970-01-01
      • 2019-12-28
      • 2013-02-10
      • 2021-05-30
      • 2017-01-10
      • 1970-01-01
      • 2021-04-24
      相关资源
      最近更新 更多