Advertisement
Guest User

Untitled

a guest
Aug 20th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. [Code]
  2. procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
  3. var
  4. Infos : integer;
  5. begin
  6. if DirExists(ExpandConstant('{app}saves')) then
  7. begin
  8. case CurUninstallStep of
  9. usUninstall:
  10. begin
  11. Infos := MsgBox('Do u want remove saves?', mbConfirmation, MB_YESNO)
  12. if Infos = IDYES then
  13. begin
  14. DelTree(ExpandConstant('{app}') +'saves', True, True, True);
  15. end;
  16. end;
  17. end;
  18. end;
  19. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement