1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-08 04:04:03 +02:00
OpenIntegrations/service/iss/en.iss

70 lines
2.6 KiB
Plaintext
Raw Normal View History

#define MyAppName "OInt"
#define MyAppVersion "1.14.0"
2024-05-13 12:50:20 +02:00
#define MyAppPublisher "bayselonarrend"
#define MyAppURL "https://github.com/Bayselonarrend/OpenIntegrations"
#define MyAppExeName "oint.exe"
2024-09-20 15:58:00 +02:00
#define Repo "C:\ProgramData\Jenkins\.jenkins\workspace\Release\"
2024-05-13 12:50:20 +02:00
[Setup]
DisableWelcomePage = no
WizardImageFile = {#Repo}\Media\WizardImage.bmp
2024-05-13 12:50:20 +02:00
AppId = {{E1D44D44-2C84-4112-80AA-2DC406D85A11}
AppName = {#MyAppName}
AppVersion = {#MyAppVersion}
AppPublisher = {#MyAppPublisher}
AppPublisherURL = {#MyAppURL}
AppSupportURL = {#MyAppURL}
AppUpdatesURL = {#MyAppURL}
DefaultDirName = {autopf}\{#MyAppName}
DefaultGroupName = {#MyAppName}
DisableProgramGroupPage = yes
LicenseFile = {#Repo}\LICENSE
2024-09-20 15:58:00 +02:00
OutputDir = "{#Repo}\{#MyAppVersion}"
Compression = lzma
SolidCompression = yes
WizardStyle = modern
OutputBaseFilename = oint_{#MyAppVersion}_installer_en
2024-05-13 12:50:20 +02:00
[Files]
2024-09-20 15:58:00 +02:00
Source: "{#Repo}\{#MyAppVersion}\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
2024-06-02 11:12:24 +02:00
Source: "{#Repo}\src\ru\cli\start.bat"; DestDir: "{app}"
2024-05-15 13:13:10 +02:00
Source: "{#Repo}\Media\logo.bmp"; Flags: dontcopy
2024-05-13 12:50:20 +02:00
[Icons]
2024-05-15 13:13:10 +02:00
Name: "{group}\{#MyAppName}"; Filename: "{app}\start.bat"; IconFilename: "{#Repo}\Media\ex.ico"
Name: "{userdesktop}\{#MyAppName}"; Filename: "{app}\start.bat"; IconFilename: "{#Repo}\Media\ex.ico"; Tasks: desktopicon
Name: "{group}\Uninstall OInt"; Filename: "{uninstallexe}"; IconFilename: "{#Repo}\Media\wizard.ico"
Name: "{group}\Web-documentation"; Filename: "https://www.en.openintegrations.dev/"
2024-05-15 13:13:10 +02:00
[Tasks]
Name: desktopicon; Description: "Create a desktop shortcut";
2024-05-13 12:50:20 +02:00
[Run]
Filename: "{cmd}"; Parameters: "/k ""cd ""{app}"" && {#MyAppExeName}"""; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
Filename: "https://en.openintegrations.dev/docs/Start/CLI_version"; Flags: shellexec runasoriginaluser postinstall; Description: "Visit documentation en.openintegrations.dev"
2024-05-13 12:50:20 +02:00
[Registry]
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; \
ValueType: expandsz; ValueName: "Path"; ValueData: "{olddata};{app}"; \
2024-05-15 13:13:10 +02:00
Check: NeedsAddPath(ExpandConstant('{app}'))
2024-05-13 12:50:20 +02:00
[Code]
function NeedsAddPath(Param: string): boolean;
var
OrigPath: string;
2024-05-15 13:13:10 +02:00
Element: string;
2024-05-13 12:50:20 +02:00
begin
if not RegQueryStringValue(HKEY_LOCAL_MACHINE,
'SYSTEM\CurrentControlSet\Control\Session Manager\Environment',
'Path', OrigPath)
then begin
Result := True;
exit;
end;
2024-05-15 13:13:10 +02:00
Element:= ';' + Param + ';';
Result := Pos(Element, ';' + OrigPath + ';') = 0;
end;