-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.iss
56 lines (47 loc) · 1.91 KB
/
setup.iss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[Setup]
AppName=Донатон Таймер
AppVersion=2.0.3
DefaultDirName={pf}\DTimer
DefaultGroupName=Донатон
OutputBaseFilename=DTimer-Setup
Compression=lzma
SolidCompression=yes
SetupIconFile=Донатон Таймер.ico
WizardStyle=modern
[Languages]
Name: "ru"; MessagesFile: "compiler:Languages\Russian.isl"
Name: "en"; MessagesFile: "compiler:Default.isl"
[Files]
Source: "build\windows\x64\runner\Release\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
[Icons]
Name: "{group}\Донатон Таймер"; Filename: "{app}\DonathonTimer.exe";
Name: "{group}\Удалить Донатон Таймер"; Filename: "{app}\unins000.exe";
Name: "{userdesktop}\Донатон Таймер"; Filename: "{app}\DonathonTimer.exe"
[Run]
Filename: "{app}\DonathonTimer.exe"; Description: "Запустить Таймер Донатона"; Flags: nowait postinstall skipifsilent
[Code]
var
DeleteSettingsAndFiles: Boolean;
procedure InitializeUninstallProgressForm();
begin
DeleteSettingsAndFiles := False;
if MsgBox(ExpandConstant('{cm:DeleteSettingsPrompt}'), mbConfirmation, MB_YESNO) = IDYES then
begin
DeleteSettingsAndFiles := True;
end;
end;
procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
begin
if (CurUninstallStep = usPostUninstall) and DeleteSettingsAndFiles then
begin
DelTree(ExpandConstant('{userappdata}\MjKey Studio'), True, True, True);
DelTree(ExpandConstant('{app}'), True, True, True);
end;
end;
[UninstallDelete]
Type: filesandordirs; Name: "{app}"
[CustomMessages]
ru.SetupWindowTitle=Установка Донатон Таймера
ru.DeleteSettingsPrompt=Вы хотите удалить настройки и все файлы программы?
en.SetupWindowTitle=Installation of Donathon Timer
en.DeleteSettingsPrompt=Do you want to delete settings and all program files?