View Single Post
  #1  
Old 31-10-2016, 06:58
buttignol's Avatar
buttignol buttignol is offline
Registered User
 
Join Date: Sep 2012
Location: Brasil
Posts: 126
Thanks: 102
Thanked 16 Times in 13 Posts
buttignol is on a distinguished road
Arrow [Solved] Help Delete Saved Games

I am unable to add the User name

I'm using so but does not delete

Quote:
procedure DeleteSavedGames(CurUninstallStep: TUninstallStep);
begin
if CurUninstallStep=usPostUninstall then
if DirExists(ExpandConstant('{%SYSTEMDRIVE%}')+'\User s\{username}\Saved Games\id Software') then
if MsgBox(ExpandConstant('{cmeleteSave}'), mbInformation, MB_YESNO) = idYes then
DelTree(ExpandConstant('{%SYSTEMDRIVE%}')+'\Users\{username}\Saved Games\id Software', True, True, True);
end;

Solved


With {%SystemDrive%} and {username} all tiny worked

#define SAVES "{%SystemDrive%}\Users\{UserName}\Saved Games\id Software" not
#define SAVES "{%SystemDrive%}\Users\{Username}\Saved Games\id Software" not
#define SAVES "{%SystemDrive%}\Users\{username}\Saved Games\id Software" working

Thanks

Last edited by buttignol; 03-11-2016 at 03:50. Reason: Solved
Reply With Quote
Sponsored Links