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('{cm eleteSave}'), 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