Inno setup 删除指定文件
Inno setup 删除指定文件
- 方式一
- 方式二
方式一
[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;
还没有评论,来说两句吧...