installer: remove duplicate code

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@371 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
XhmikosR 2011-03-22 11:11:47 +00:00
parent 21c6d0e645
commit 674b2c4156

View File

@ -175,7 +175,6 @@ Type: files; Name: {userdesktop}\Subtitle Edit.lnk; Check: NOT IsT
Type: files; Name: {commondesktop}\Subtitle Edit.lnk; Check: NOT IsTaskSelected('desktopicon\common') AND IsUpdate()
Type: files; Name: {userappdata}\Subtitle Edit\Settings.xml; Tasks: reset_settings
Type: dirifempty; Name: {userappdata}\Subtitle Edit; Tasks: reset_settings
; remove old files from the {app} dir
Type: files; Name: {app}\Dictionaries\da_DK_names_etc.xml
@ -297,13 +296,9 @@ end;
procedure CurStepChanged(CurStep: TSetupStep);
begin
if CurStep = ssInstall then begin
if IsTaskSelected('reset_settings') then begin
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Settings.xml'));
end;
if IsTaskSelected('reset_dictionaries') then begin
CleanUpDictionaries;
end;
RemoveDir(ExpandConstant('{userappdata}\Subtitle Edit'));
end;
end;