Inno setup 卸载时删除程序文件夹(文件)

 

//删除所有配置文件以达到干净卸载的目的
procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
    begin
        if CurUninstallStep = usUninstall then
            if MsgBox('您是否要删除用户配置信息?', mbConfirmation, MB_YESNO) = IDYES then
                //删除 {app} 文件夹及其中所有文件
                DelTree('{app}', True, True, True);
    end;

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-30
  • 2021-09-17
  • 2022-12-23
  • 2021-06-04
  • 2021-11-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-07
  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案