Inno Setup アンインストーラーでアプリをアンインストールすると、ユーザーの AppData フォルダーに作成されたランタイム ファイルが残ります。それらを削除することは可能ですか?
4319 次
1 に答える
2
you can create a CurUninstallStepChanged routine to perform any custom action you want, like deleting files on the system during uninstall.
Take a look at this example (from this question):
procedure CurUninstallStepChanged (CurUninstallStep: TUninstallStep);
var
mres : integer;
begin
case CurUninstallStep of
usPostUninstall:
begin
mres := MsgBox('Do you want to delete saved files?', mbConfirmation, MB_YESNO or MB_DEFBUTTON2)
if mres = IDYES then
DelTree(ExpandConstant('{userdocs}\MyApp'), True, True, True);
end;
end;
end;
于 2011-01-28T15:52:47.230 に答える