Новые файлы Media
62
.github/workflows/main.iss
vendored
@ -6,10 +6,16 @@
|
|||||||
#define MyAppPublisher "bayselonarrend"
|
#define MyAppPublisher "bayselonarrend"
|
||||||
#define MyAppURL "https://github.com/Bayselonarrend/OpenIntegrations"
|
#define MyAppURL "https://github.com/Bayselonarrend/OpenIntegrations"
|
||||||
#define MyAppExeName "oint.exe"
|
#define MyAppExeName "oint.exe"
|
||||||
|
#define GDrive "D:\GD"
|
||||||
|
#define Repo "D:\Repos\OpenIntegrations"
|
||||||
|
|
||||||
[Setup]
|
[Setup]
|
||||||
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
|
; 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.)
|
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
|
||||||
|
DisableWelcomePage=no
|
||||||
|
WizardImageFile={#Repo}\Media\WizardImage.bmp
|
||||||
|
|
||||||
|
|
||||||
AppId={{E1D44D44-2C84-4112-80AA-2DC406D85A11}
|
AppId={{E1D44D44-2C84-4112-80AA-2DC406D85A11}
|
||||||
AppName={#MyAppName}
|
AppName={#MyAppName}
|
||||||
AppVersion={#MyAppVersion}
|
AppVersion={#MyAppVersion}
|
||||||
@ -21,8 +27,8 @@ AppUpdatesURL={#MyAppURL}
|
|||||||
DefaultDirName={autopf}\{#MyAppName}
|
DefaultDirName={autopf}\{#MyAppName}
|
||||||
DefaultGroupName={#MyAppName}
|
DefaultGroupName={#MyAppName}
|
||||||
DisableProgramGroupPage=yes
|
DisableProgramGroupPage=yes
|
||||||
LicenseFile=C:\Repos\OPI\LICENSE
|
LicenseFile={#Repo}\LICENSE
|
||||||
OutputDir="G:\Мой диск\Проекты\ОПИ\Релизы\{#MyAppVersion}"
|
OutputDir="{#GDrive}\Мой диск\Проекты\ОПИ\Релизы\{#MyAppVersion}"
|
||||||
; Uncomment the following line to run in non administrative install mode (install for current user only.)
|
; Uncomment the following line to run in non administrative install mode (install for current user only.)
|
||||||
;PrivilegesRequired=lowest
|
;PrivilegesRequired=lowest
|
||||||
Compression=lzma
|
Compression=lzma
|
||||||
@ -33,30 +39,36 @@ OutputBaseFilename=oint_{#MyAppVersion}_installer
|
|||||||
[Languages]
|
[Languages]
|
||||||
Name: "russian"; MessagesFile: "compiler:Languages\Russian.isl"
|
Name: "russian"; MessagesFile: "compiler:Languages\Russian.isl"
|
||||||
|
|
||||||
[Tasks]
|
|
||||||
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
|
||||||
|
|
||||||
[Files]
|
[Files]
|
||||||
Source: "G:\Мой диск\Проекты\ОПИ\Релизы\{#MyAppVersion}\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
|
Source: "{#GDrive}\Мой диск\Проекты\ОПИ\Релизы\{#MyAppVersion}\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
|
||||||
|
Source: "{#Repo}\cli\start.bat"; DestDir: "{app}"
|
||||||
|
Source: "{#Repo}\Media\logo.bmp"; Flags: dontcopy
|
||||||
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
||||||
|
|
||||||
[Icons]
|
[Icons]
|
||||||
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
|
Name: "{group}\{#MyAppName}"; Filename: "{app}\start.bat"; IconFilename: "{#Repo}\Media\ex.ico"
|
||||||
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
|
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: "Создать ярлык на рабочем столе";
|
||||||
|
|
||||||
[Run]
|
[Run]
|
||||||
Filename: "{cmd}"; Parameters: "/k ""cd ""{app}"" && {#MyAppExeName}"""; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
|
Filename: "{cmd}"; Parameters: "/k ""cd ""{app}"" && {#MyAppExeName}"""; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
|
||||||
|
Filename: "https://openintegrations.dev/docs/Nachalo-raboty/Rabota-s-CLI-versiei"; Flags: shellexec runasoriginaluser postinstall; Description: "Посетить старницу документации на openintegrations.dev"
|
||||||
|
|
||||||
[Registry]
|
[Registry]
|
||||||
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; \
|
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; \
|
||||||
ValueType: expandsz; ValueName: "Path"; ValueData: "{olddata};{app}"; \
|
ValueType: expandsz; ValueName: "Path"; ValueData: "{olddata};{app}"; \
|
||||||
Check: NeedsAddPath('{app}')
|
Check: NeedsAddPath(ExpandConstant('{app}'))
|
||||||
|
|
||||||
[Code]
|
[Code]
|
||||||
|
|
||||||
function NeedsAddPath(Param: string): boolean;
|
function NeedsAddPath(Param: string): boolean;
|
||||||
var
|
var
|
||||||
OrigPath: string;
|
OrigPath: string;
|
||||||
|
Element: string;
|
||||||
begin
|
begin
|
||||||
if not RegQueryStringValue(HKEY_LOCAL_MACHINE,
|
if not RegQueryStringValue(HKEY_LOCAL_MACHINE,
|
||||||
'SYSTEM\CurrentControlSet\Control\Session Manager\Environment',
|
'SYSTEM\CurrentControlSet\Control\Session Manager\Environment',
|
||||||
@ -65,7 +77,33 @@ begin
|
|||||||
Result := True;
|
Result := True;
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
{ look for the path with leading and trailing semicolon }
|
Element:= ';' + Param + ';';
|
||||||
{ Pos() returns 0 if not found }
|
Result := Pos(Element, ';' + OrigPath + ';') = 0;
|
||||||
Result := Pos(';' + Param + ';', ';' + OrigPath + ';') = 0;
|
end;
|
||||||
|
|
||||||
|
procedure MyImageClick(Sender: TObject);
|
||||||
|
var
|
||||||
|
ErrorCode: Integer;
|
||||||
|
begin
|
||||||
|
ShellExec('open', 'http://www.google.es', '', '', SW_SHOWNORMAL, ewNoWait, ErrorCode);
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure CreateMyImage();
|
||||||
|
begin
|
||||||
|
ExtractTemporaryFile('Logo.bmp');
|
||||||
|
with TBitmapImage.Create(WizardForm) do
|
||||||
|
begin
|
||||||
|
Parent := WizardForm.InstallingPage;
|
||||||
|
Bitmap.LoadFromFile(ExpandConstant('{tmp}\Logo.bmp'));
|
||||||
|
AutoSize := True;
|
||||||
|
Left := 0;
|
||||||
|
Top := WizardForm.InstallingPage.Top + WizardForm.InstallingPage.Height - Height - 8;
|
||||||
|
Cursor := crHand;
|
||||||
|
OnClick := @MyImageClick;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure InitializeWizard;
|
||||||
|
begin
|
||||||
|
CreateMyImage();
|
||||||
end;
|
end;
|
||||||
|
BIN
Media/WizardImage.bmp
Normal file
After Width: | Height: | Size: 1.2 MiB |
BIN
Media/WizardImage.png
Normal file
After Width: | Height: | Size: 103 KiB |
BIN
Media/docs.png
Before Width: | Height: | Size: 110 KiB After Width: | Height: | Size: 129 KiB |
BIN
Media/ex.ico
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
Media/ex.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
Media/logo.bmp
Normal file
After Width: | Height: | Size: 4.0 MiB |
BIN
Media/logo.ico
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
Media/logo_head.ico
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
Media/wizard.ico
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
Media/wizard.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
1
cli/start.bat
Normal file
@ -0,0 +1 @@
|
|||||||
|
cmd /k oint.exe
|