1

当用户卸载我的电子应用程序时,我想记录一个事件(即,将其发送到我的日志服务器)。这可能吗?例如,某种预卸载钩子?

我正在使用electron-builderWindowsNSIS安装程序和dmgMacOS 安装程序,以及electron-updater自动更新。

4

1 回答 1

2

NSIS——请使用自定义宏customUnInstallhttps://github.com/electron-userland/electron-builder/wiki/NSIS#custom-nsis-script)。

DMG - 不可能,因为应用程序通过简单的移动到垃圾箱卸载。

于 2017-06-11T18:11:40.240 回答