mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 22:42:38 +01:00
installer: remove duplicate code
git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@371 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
parent
21c6d0e645
commit
674b2c4156
@ -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: {commondesktop}\Subtitle Edit.lnk; Check: NOT IsTaskSelected('desktopicon\common') AND IsUpdate()
|
||||||
|
|
||||||
Type: files; Name: {userappdata}\Subtitle Edit\Settings.xml; Tasks: reset_settings
|
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
|
; remove old files from the {app} dir
|
||||||
Type: files; Name: {app}\Dictionaries\da_DK_names_etc.xml
|
Type: files; Name: {app}\Dictionaries\da_DK_names_etc.xml
|
||||||
@ -297,13 +296,9 @@ end;
|
|||||||
procedure CurStepChanged(CurStep: TSetupStep);
|
procedure CurStepChanged(CurStep: TSetupStep);
|
||||||
begin
|
begin
|
||||||
if CurStep = ssInstall then 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
|
if IsTaskSelected('reset_dictionaries') then begin
|
||||||
CleanUpDictionaries;
|
CleanUpDictionaries;
|
||||||
end;
|
end;
|
||||||
RemoveDir(ExpandConstant('{userappdata}\Subtitle Edit'));
|
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user