其他分享
首页 > 其他分享> > inno setup

inno setup

作者:互联网

注册表删除

[code]
procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
begin
  if CurUninstallStep = usPostUninstall then
  begin
    if RegKeyExists(HKEY_CLASSES_ROOT, 'Test') then
      if MsgBox('你想要删除注册表吗?',
        mbConfirmation, MB_YESNO) = IDYES
      then
        RegDeleteKeyIncludingSubkeys(HKEY_CLASSES_ROOT, 'Test'); //删除这个还有其他的 还得继续删除
  end;
end;

 

标签:begin,end,删除,setup,Test,注册表,inno,ROOT
来源: https://www.cnblogs.com/Galesaur-wcy/p/15069671.html