function OnEnd()
string subKey;
begin
subKey= " //SOFTWARE//Microsoft//Windows//CurrentVersion//Uninstall//" + IFX_PRODUCT_NAME;
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
if (RegDBKeyExist(subKey) =1) then
RegDBDeleteKey (subKey);
endif;
if(!ExistsDir(DISK1TARGET)) then
DeleteDir(DISK1TARGET,ALLCONTENTS);
endif;
end;
string subKey;
begin
subKey= " //SOFTWARE//Microsoft//Windows//CurrentVersion//Uninstall//" + IFX_PRODUCT_NAME;
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
if (RegDBKeyExist(subKey) =1) then
RegDBDeleteKey (subKey);
endif;
if(!ExistsDir(DISK1TARGET)) then
DeleteDir(DISK1TARGET,ALLCONTENTS);
endif;
end;
本文介绍了一段用于清理特定软件卸载后残留的Windows注册表条目和文件夹的代码。通过使用注册表操作函数,该脚本能够删除指定的软件名称在注册表中的路径,并检查并移除目标目录,确保系统的整洁。
127

被折叠的 条评论
为什么被折叠?



