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;

 

posted @ 2017-09-23 08:34  风来风往风伤(TiAmo)  阅读(4598)  评论(0编辑  收藏  举报