1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-04 10:34:52 +02:00
OpenIntegrations/service/iss/ru.iss

74 lines
2.9 KiB
Plaintext
Raw Normal View History

#define MyAppName "OInt"
#define MyAppVersion "1.11.1"
2024-05-13 12:50:20 +02:00
#define MyAppPublisher "bayselonarrend"
#define MyAppURL "https://github.com/Bayselonarrend/OpenIntegrations"
#define MyAppExeName "oint.exe"
2024-06-02 11:12:24 +02:00
#define GDrive "G:"
#define Repo "C:\Repos\OpI"
2024-05-13 12:50:20 +02:00
[Setup]
DisableWelcomePage = no
WizardImageFile = {#Repo}\Media\WizardImage.bmp
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
OutputDir = "{#GDrive}\Мой диск\Проекты\ОПИ\Релизы\{#MyAppVersion}"
Compression = lzma
SolidCompression = yes
WizardStyle = modern
OutputBaseFilename = oint_{#MyAppVersion}_installer_ru
2024-05-13 12:50:20 +02:00
[Languages]
Name: "russian"; MessagesFile: "compiler:Languages\Russian.isl"
[Files]
2024-05-15 13:13:10 +02:00
Source: "{#GDrive}\Мой диск\Проекты\ОПИ\Релизы\{#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}\Удалить OInt"; Filename: "{uninstallexe}"; IconFilename: "{#Repo}\Media\wizard.ico"
Name: "{group}\Web-документация"; Filename: "https://www.openintegrations.dev/"
[Tasks]
Name: desktopicon; Description: "Создать ярлык на рабочем столе";
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://openintegrations.dev/docs/Start/CLI_version"; Flags: shellexec runasoriginaluser postinstall; Description: "Посетить страницу документации 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;