InstallShield中禁止反安装

来源:互联网 发布:什么叫域名过期 编辑:程序博客网 时间:2024/05/15 23:46
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;
原创粉丝点击