Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
检测Windows上的软件卸载_Windows_Logging_Uninstallation - Fatal编程技术网

检测Windows上的软件卸载

检测Windows上的软件卸载,windows,logging,uninstallation,Windows,Logging,Uninstallation,我想将卸载事件记录到我自己的桌面应用程序web服务器上。有什么方法可以检测Windows上的卸载吗?您的安装程序会覆盖installer.OnAfterUninstall方法 在那里,您可以回拨到web服务器 请确保在卸载时编程以防没有internet连接。另外,请注意,某些防火墙可能会阻止您尝试从卸载程序连接到服务器,或提示用户允许连接 如果您在桌面应用程序中使用的安装程序不是Microsoft的(例如NSIS或其他),则可能存在类似的钩子

我想将卸载事件记录到我自己的桌面应用程序web服务器上。有什么方法可以检测Windows上的卸载吗?

您的安装程序会覆盖installer.OnAfterUninstall方法

在那里,您可以回拨到web服务器

请确保在卸载时编程以防没有internet连接。另外,请注意,某些防火墙可能会阻止您尝试从卸载程序连接到服务器,或提示用户允许连接

如果您在桌面应用程序中使用的安装程序不是Microsoft的(例如NSIS或其他),则可能存在类似的钩子