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;