2017-09-11 10:49:25 +00:00
|
|
|
|
2020-08-29 14:47:32 +00:00
|
|
|
#include AddBackslash(SourcePath) + "..\src\version.h"
|
2017-09-11 10:49:25 +00:00
|
|
|
|
|
|
|
#define APP_EXE_NAME "FortFirewall.exe"
|
|
|
|
|
|
|
|
[Setup]
|
|
|
|
; NOTE: The value of AppId uniquely identifies this application.
|
|
|
|
; Do not use the same AppId value in installers for other applications.
|
|
|
|
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
|
2017-09-11 11:17:27 +00:00
|
|
|
AppMutex={#APP_NAME}
|
2017-09-11 10:49:25 +00:00
|
|
|
AppName={#APP_NAME}
|
|
|
|
AppVersion={#APP_VERSION_STR}
|
2019-04-24 17:41:11 +00:00
|
|
|
VersionInfoVersion={#APP_VERSION_STR}
|
2017-09-11 10:49:25 +00:00
|
|
|
AppVerName={#APP_NAME}
|
2019-04-24 17:41:11 +00:00
|
|
|
AppCopyright={#APP_LEGALCOPYRIGHT}
|
2017-09-11 10:49:25 +00:00
|
|
|
AppPublisher={#APP_PUBLISHER}
|
|
|
|
AppPublisherURL={#APP_URL}
|
|
|
|
AppSupportURL={#APP_URL}
|
|
|
|
AppUpdatesURL={#APP_UPDATES_URL}
|
|
|
|
DefaultGroupName={#APP_NAME}
|
|
|
|
DefaultDirName={pf32}\{#APP_NAME}
|
|
|
|
AlwaysShowDirOnReadyPage=yes
|
|
|
|
AlwaysShowGroupOnReadyPage=yes
|
|
|
|
AllowNoIcons=yes
|
|
|
|
OutputBaseFilename=FortFirewall-{#APP_VERSION_STR}
|
2019-03-10 18:03:59 +00:00
|
|
|
Uninstallable=not IsTaskSelected('portable')
|
2017-09-11 10:49:25 +00:00
|
|
|
UninstallFilesDir={app}\uninst
|
2019-04-29 02:49:06 +00:00
|
|
|
;UninstallDisplayIcon={app}\{#APP_EXE_NAME}
|
2017-09-11 10:49:25 +00:00
|
|
|
ArchitecturesInstallIn64BitMode=x64
|
|
|
|
Compression=lzma2/ultra
|
|
|
|
SolidCompression=yes
|
|
|
|
|
|
|
|
[Languages]
|
2017-09-14 04:33:29 +00:00
|
|
|
Name: en; MessagesFile: "compiler:Default.isl"
|
|
|
|
Name: ru; MessagesFile: "compiler:Languages\Russian.isl"
|
|
|
|
|
2019-03-10 18:03:59 +00:00
|
|
|
[Tasks]
|
2019-03-14 02:50:05 +00:00
|
|
|
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; Flags: unchecked
|
2019-03-10 18:03:59 +00:00
|
|
|
Name: "portable"; Description: "Portable"; Flags: unchecked
|
|
|
|
|
2017-09-11 10:49:25 +00:00
|
|
|
[Files]
|
2019-04-08 11:39:00 +00:00
|
|
|
Source: "build\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
|
|
|
Source: "README.portable"; DestDir: "{app}"; Check: IsTaskSelected('portable')
|
2017-09-11 10:49:25 +00:00
|
|
|
|
|
|
|
[Icons]
|
|
|
|
; Start menu shortcut
|
2020-01-25 05:54:25 +00:00
|
|
|
Name: "{group}\{#APP_NAME}"; Filename: "{app}\{#APP_EXE_NAME}"; WorkingDir: "{app}"; Parameters: "--lang {code:LanguageName}"
|
2017-09-13 11:08:27 +00:00
|
|
|
; Uninstaller shortcut
|
2019-04-11 04:58:43 +00:00
|
|
|
Name: "{group}\{cm:UninstallProgram,{#APP_NAME}}"; Filename: "{uninstallexe}"
|
2019-03-14 02:50:05 +00:00
|
|
|
; Desktop shortcut
|
2020-01-25 05:54:25 +00:00
|
|
|
Name: "{commondesktop}\{#APP_NAME}"; Filename: "{app}\{#APP_EXE_NAME}"; WorkingDir: "{app}"; Parameters: "--lang {code:LanguageName}"; Tasks: desktopicon
|
2017-09-11 10:49:25 +00:00
|
|
|
|
|
|
|
[Run]
|
2019-03-10 18:03:59 +00:00
|
|
|
Filename: "{app}\driver\scripts\reinstall.bat"; Description: "Re-install driver"; Flags: runascurrentuser
|
2017-09-11 10:49:25 +00:00
|
|
|
|
|
|
|
[UninstallRun]
|
|
|
|
Filename: "{app}\driver\scripts\uninstall.bat"; Flags: runascurrentuser
|
2017-09-13 11:08:27 +00:00
|
|
|
Filename: "{app}\{#APP_EXE_NAME}"; Parameters: "-b=0"; Flags: runascurrentuser
|
2017-09-11 10:49:25 +00:00
|
|
|
|
2018-02-19 15:02:13 +00:00
|
|
|
[InstallDelete]
|
2019-04-11 05:09:11 +00:00
|
|
|
Type: filesandordirs; Name: "{app}"
|
2018-02-19 15:02:13 +00:00
|
|
|
|
2017-09-11 10:49:25 +00:00
|
|
|
[UninstallDelete]
|
|
|
|
Type: filesandordirs; Name: "{app}"
|
2020-01-25 05:54:25 +00:00
|
|
|
|
|
|
|
[Code]
|
|
|
|
function LanguageName(Param: String): String;
|
|
|
|
begin
|
|
|
|
Result := ActiveLanguage;
|
|
|
|
end;
|