Installer: Optionally removes scratchpad.txt

git-svn-id: svn://svn.code.sf.net/p/processhacker/code@1341 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
xhmikosr
2009-05-28 14:47:10 +00:00
parent 54d1e8ea28
commit 445a32edcb
@@ -274,7 +274,7 @@ begin
if DirExists(ExpandConstant('{localappdata}\wj32\')) or fileExists(ExpandConstant('{app}\Process Hacker Log.txt'))
or fileExists(ExpandConstant('{userdocs}\Process Hacker.txt')) or fileExists(ExpandConstant('{userdocs}\Process Hacker.log'))
or fileExists(ExpandConstant('{userdocs}\Process Hacker.csv')) or fileExists(ExpandConstant('{userdocs}\Process Hacker Log.txt'))
or fileExists(ExpandConstant('{userdocs}\CSR Processes.txt')) then begin
or fileExists(ExpandConstant('{userdocs}\CSR Processes.txt')) or fileExists(ExpandConstant('{app}\scratchpad.txt'))then begin
if MsgBox(ExpandConstant('{cm:msg_DeleteLogSettings}'), mbConfirmation, MB_YESNO or MB_DEFBUTTON2) = IDYES then begin
DelTree(ExpandConstant('{localappdata}\wj32\'), True, True, True);
DeleteFile(ExpandConstant('{app}\Process Hacker.txt'));
@@ -284,6 +284,7 @@ begin
DeleteFile(ExpandConstant('{app}\CSR Processes.txt'));
DeleteFile(ExpandConstant('{userdocs}\Process Hacker Log.txt'));
DeleteFile(ExpandConstant('{userdocs}\CSR Processes.txt'));
DeleteFile(ExpandConstant('{app}\scratchpad.txt'));
end;
end;
end;