BUH_bot/installer.iss
Игорь Надеин 5155e455d2
Some checks failed
Build and Publish Docker Image / build-and-push (push) Has been cancelled
Add Gitea release updates and local Windows release pipeline
2026-09-16 15:03:17 +03:00

86 lines
3.4 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

; Inno Setup Script для установки MoySklad Generator
; Создает автономный установщик со всеми зависимостями
#define MyAppName "МойСклад - Генератор документов"
#define MyAppVersion "1.1.0"
#define MyAppPublisher "BUH_bot"
#define MyAppExeName "MoySkladGenerator.exe"
[Setup]
AppId={{B7A8D2C1-3F4E-4A5B-9C6D-1E2F3A4B5C6D}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
AppPublisher={#MyAppPublisher}
DefaultDirName={autopf}\{#MyAppName}
DefaultGroupName={#MyAppName}
AllowNoIcons=yes
OutputDir=installer_output
OutputBaseFilename=MoySklad_Generator_Setup
SetupIconFile=app_icon.ico
UninstallDisplayIcon={app}\{#MyAppExeName}
Compression=lzma2/max
SolidCompression=yes
WizardStyle=modern
DisableWelcomePage=no
LicenseFile=LICENSE.txt
InfoBeforeFile=INSTALL_INFO.txt
PrivilegesRequired=admin
CloseApplications=yes
RestartApplications=no
[Languages]
Name: "russian"; MessagesFile: "compiler:Languages\Russian.isl"
Name: "english"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
; Основной исполняемый файл
Source: "dist\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
; Дополнительные файлы
Source: "README.md"; DestDir: "{app}"; Flags: ignoreversion
Source: ".env.example"; DestDir: "{app}"; Flags: ignoreversion
Source: "CHANGELOG.md"; DestDir: "{app}"; Flags: ignoreversion
; Документация
Source: "docs\*"; DestDir: "{app}\docs"; Flags: ignoreversion recursesubdirs createallsubdirs
[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{group}\Документация"; Filename: "{app}\docs"
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: quicklaunchicon
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
[Code]
procedure InitializeWizard;
var
WelcomeLabel: TNewStaticText;
begin
WelcomeLabel := TNewStaticText.Create(WizardForm);
WelcomeLabel.Parent := WizardForm.WelcomePage;
WelcomeLabel.Caption :=
'Это приложение для генерации XML документов из МойСклад.' + #13#10 +
'Работает полностью автономно, без подключения к интернету.' + #13#10#13#10 +
'Возможности:' + #13#10 +
' • Поиск и просмотр отгрузок' + #13#10 +
' • Валидация данных' + #13#10 +
' • Генерация XML для 1С' + #13#10 +
' • Массовая генерация документов';
WelcomeLabel.Top := WizardForm.WelcomeLabel2.Top + WizardForm.WelcomeLabel2.Height + 20;
WelcomeLabel.Width := WizardForm.WelcomeLabel2.Width;
WelcomeLabel.AutoSize := True;
end;
function InitializeSetup(): Boolean;
begin
Result := True;
// Здесь можно добавить проверки системных требований
end;