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

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;
原文地址:https://www.cnblogs.com/amwuau/p/7568405.html