![]() |
[Solved] Help Delete Saved Games
I am unable to add the User name
I'm using so but does not delete Quote:
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 |
#define SAVES1 "{userappdata}\Ubisoft"
;#define SAVES2 "{userdocs}\BioWare\Mass Effect" ;#define SAVES3 "{userdocs}\BioWare\Mass Effect" [CustomMessages] #ifdef SAVES1 del=Do you want to delete saved games? #endif #ifdef SAVES1 procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep); begin if CurUninstallStep = usUninstall then begin if DirExists(ExpandConstant('{#SAVES1}')) #ifdef SAVES2 or DirExists(ExpandConstant('{#SAVES2}')) #endif #ifdef SAVES3 or DirExists(ExpandConstant('{#SAVES3}')) #endif then begin if MsgBox(ExpandConstant('{cm:del}'),mbconfirmation, mb_yesno) = IDYES then begin DelTree(ExpandConstant('{#SAVES1}'), True, True, True); #ifdef SAVES2 DelTree(ExpandConstant('{#SAVES2}'), True, True, True); #endif #ifdef SAVES3 DelTree(ExpandConstant('{#SAVES3}'), True, True, True); #endif end; end; end; end; #endif |
I appreciate your help
but does not work in the User folder name still not delete I used so #define SAVES1 "{%SYSTEMDRIVE%}\Users\UserName\Saved Games\id Software" |
try & change UserName to {UserName} From Inno Help:
{username} The name of the user who is running Setup or Uninstall program (as returned by the GetUserName function). The way you have its specific, will always look for UserName ( no one uses that for a name ) |
1 Attachment(s)
|
| All times are GMT -7. The time now is 14:34. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com