Skip to content

Commit 9e7aad8

Browse files
committed
Remove 'athkar' folder from installation directory after setup completes
1 parent 902696c commit 9e7aad8

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

albayan.iss

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,17 +97,25 @@ begin
9797
begin
9898
if FileExists(ExpandConstant('{userappdata}\tecwindow\{#MyAppName}\Settingss.ini')) then
9999
begin
100-
RenameFile(ExpandConstant('{userappdata}\tecwindow\{#MyAppName}\Settingss.ini'),
101-
ExpandConstant('{userappdata}\tecwindow\{#MyAppName}\config.ini'));
100+
RenameFile(
101+
ExpandConstant('{userappdata}\tecwindow\{#MyAppName}\Settingss.ini'),
102+
ExpandConstant('{userappdata}\tecwindow\{#MyAppName}\config.ini')
103+
);
102104
end;
103105
end;
106+
107+
if CurStep = ssPostInstall then
108+
begin
109+
DelTree(ExpandConstant('{app}\Audio\athkar'), True, True, True);
110+
end;
104111
end;
105112
106113
procedure DeinitializeUninstall();
107114
begin
108-
if MsgBox(ExpandConstant('{cm:DeleteSettingsPrompt}') + #13#10 +
109-
ExpandConstant('{userappdata}\tecwindow\albayan'),
110-
mbConfirmation, MB_YESNO) = IDYES then
115+
if MsgBox(
116+
ExpandConstant('{cm:DeleteSettingsPrompt}') + #13#10 +
117+
ExpandConstant('{userappdata}\tecwindow\albayan'),
118+
mbConfirmation, MB_YESNO) = IDYES then
111119
begin
112120
DeleteSettingsFolder();
113121
end;

0 commit comments

Comments
 (0)