93 lines
3.2 KiB
Plaintext
93 lines
3.2 KiB
Plaintext
#define Name "Status"
|
|
#define Publisher "Status.im"
|
|
#define URL "https://status.im"
|
|
#define ExeName "Status.exe"
|
|
#define IcoName "status.ico"
|
|
|
|
[Setup]
|
|
|
|
; Generated from Tools -> Generate GUID
|
|
AppId={{F3E2EDB6-78E8-4539-9C8B-A78F059D8647}}
|
|
|
|
AppName={#Name}
|
|
AppVersion={#Version}
|
|
AppPublisher={#Publisher}
|
|
AppPublisherURL={#URL}
|
|
AppSupportURL={#URL}
|
|
AppUpdatesURL={#URL}
|
|
DefaultDirName=C:\{#Name}
|
|
UsePreviousAppDir=no
|
|
|
|
WizardStyle=modern
|
|
|
|
UninstallDisplayIcon={app}\{#ExeName}
|
|
|
|
DefaultGroupName={#Name}
|
|
|
|
; output dir for installer
|
|
OutputBaseFileName={#BaseName}
|
|
|
|
; Icon file
|
|
SetupIconFile=resources\{#IcoName}
|
|
|
|
; Compression
|
|
Compression=lzma
|
|
SolidCompression=yes
|
|
|
|
[Languages]
|
|
Name: "english"; MessagesFile: "compiler:Default.isl"
|
|
Name: "it"; MessagesFile: "compiler:Languages\Italian.isl"
|
|
Name: "es"; MessagesFile: "compiler:Languages\Spanish.isl"
|
|
Name: "de"; MessagesFile: "compiler:Languages\German.isl"
|
|
Name: "nl"; MessagesFile: "compiler:Languages\Dutch.isl"
|
|
Name: "pt_BR"; MessagesFile: "compiler:Languages\BrazilianPortuguese.isl"
|
|
Name: "ru"; MessagesFile: "compiler:Languages\Russian.isl"
|
|
Name: "fr"; MessagesFile: "compiler:Languages\French.isl"
|
|
Name: "ua"; MessagesFile: "compiler:Languages\Ukrainian.isl"
|
|
|
|
[Files]
|
|
|
|
; Path to exe on
|
|
Source: {#ExeName}; DestDir: "{app}"; Flags: ignoreversion
|
|
|
|
; Resources
|
|
Source: "bin\*"; DestDir: "{app}\bin"; Flags: ignoreversion recursesubdirs createallsubdirs
|
|
|
|
Source: "resources\*"; DestDir: "{app}\resources"; Flags: ignoreversion recursesubdirs createallsubdirs
|
|
|
|
Source: "vendor\*"; DestDir: "{app}\vendor"; Flags: ignoreversion recursesubdirs createallsubdirs
|
|
|
|
[Tasks]
|
|
Name: desktopicon; Description: "Create a &desktop icon"; GroupDescription: "Additional icons:";
|
|
Name: quicklaunchicon; Description: "Create a &Quick Launch icon"; GroupDescription: "Additional icons:"; Flags: unchecked
|
|
|
|
[Icons]
|
|
Name: "{userdesktop}\{#Name}"; Filename: "{app}\{#ExeName}"; IconFilename: "{app}\resources\{#IcoName}"; Tasks: desktopicon
|
|
|
|
Name: "{commonprograms}\Status\{#Name}"; Filename: "{app}\{#ExeName}"; IconFilename: "{app}\resources\{#IcoName}"; Tasks: quicklaunchicon
|
|
|
|
Name: "{commonstartup}\{#Name}"; Filename: "{app}\{#ExeName}"; IconFilename: "{app}\resources\{#IcoName}"; Tasks: quicklaunchicon
|
|
|
|
[UninstallDelete]
|
|
Type: filesandordirs; Name: "{app}"
|
|
Type: files; Name: "{userdesktop}\{#Name}"
|
|
|
|
|
|
[Registry]
|
|
Root: HKCU; Subkey: "Software\Classes\status-im"; ValueType: "string"; ValueData: "URL:status-im protocol"; Flags: uninsdeletekey
|
|
Root: HKCU; Subkey: "Software\Classes\status-im"; ValueType: "string"; ValueName: "URL Protocol"; ValueData: ""
|
|
Root: HKCU; Subkey: "Software\Classes\status-im\DefaultIcon"; ValueType: "string"; ValueData: "{app}\Status.exe,1"
|
|
Root: HKCU; Subkey: "Software\Classes\status-im\shell\open\command"; ValueType: "string"; ValueData: """{app}\Status.exe"" ""--url=""%1"""
|
|
|
|
[Code]
|
|
procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
|
|
begin
|
|
if CurUninstallStep = usPostUninstall then
|
|
begin
|
|
if DirExists(ExpandConstant('{localappdata}\Status')) then
|
|
if MsgBox('Do you want to delete application data?', mbConfirmation, MB_YESNO or MB_DEFBUTTON2) = IDYES
|
|
then
|
|
DelTree(ExpandConstant('{localappdata}\Status'), True, True, True);
|
|
end;
|
|
end;
|