Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials

Reply
 
Thread Tools Display Modes
  #1  
Old 31-10-2016, 06:58
buttignol's Avatar
buttignol buttignol is offline
Registered User
 
Join Date: Sep 2012
Location: Brasil
Posts: 102
Thanks: 87
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
  #2  
Old 01-11-2016, 00:41
edward99 edward99 is offline
Banned
 
Join Date: Aug 2015
Location: India
Posts: 58
Thanks: 4
Thanked 10 Times in 5 Posts
edward99 is on a distinguished road
#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
Reply With Quote
  #3  
Old 01-11-2016, 04:11
buttignol's Avatar
buttignol buttignol is offline
Registered User
 
Join Date: Sep 2012
Location: Brasil
Posts: 102
Thanks: 87
Thanked 16 Times in 13 Posts
buttignol is on a distinguished road
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"
Reply With Quote
  #4  
Old 01-11-2016, 06:43
pakrat2k2's Avatar
pakrat2k2 pakrat2k2 is offline
Moderator
 
Join Date: Apr 2005
Location: Canada
Posts: 6,564
Thanks: 2,597
Thanked 7,467 Times in 2,675 Posts
pakrat2k2 is on a distinguished road
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 )
Reply With Quote
  #5  
Old 01-11-2016, 07:02
buttignol's Avatar
buttignol buttignol is offline
Registered User
 
Join Date: Sep 2012
Location: Brasil
Posts: 102
Thanks: 87
Thanked 16 Times in 13 Posts
buttignol is on a distinguished road
Thank Pakrat2k2

Yes already tried using {UserName} but of an error uninstall

Capturar.PNG

Last edited by buttignol; 01-11-2016 at 07:10.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Splinter Cell, can't load previously saved games. sajmondk PC Games 2 04-09-2007 11:48
Saved games Ols2k4 XBox Games 2 23-08-2004 02:46
Problem with loading saved games... Xtreme2K PS2 Games 0 19-02-2002 17:53
Medal of Honor AA-Tries to connect when loading saved games The One PC Games 2 13-02-2002 21:01
Having Problems Burning Numerous *Recent* Games....Help is Appreciated Protosstic PSX Games 2 15-01-2002 21:27



All times are GMT -7. The time now is 19:15.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Copyright 2000-2018, FileForums @ https://fileforums.com