方式一
[UninstallDelete]
;删除文件,{app}:安装目录
Type: files; Name: "{app}\vcruntime140d.dll";
Type: files; Name: "{app}\ucrtbased.dll";
;删除文件夹
Type: filesandordirs; Name: "{app}";
方式二
[code]
procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
begin
//删除文件夹
DelTree(ExpandConstant('{app}\platform'), True, True, True);
//删除文件
DeleteFile(ExpandConstant('C:\a.txt'));
DeleteFile(ExpandConstant('{app}\c.txt'));
end;