vn-access/setup.iss

284 lines
10 KiB
Plaintext
Raw Normal View History

2016-03-14 08:23:40 +00:00
#define MyAppName "Verdnatura"
2024-02-21 11:38:50 +00:00
#define MyAppVersion "7"
2016-03-14 08:23:40 +00:00
#define MyAppPublisher "Verdnatura"
2022-07-27 09:10:13 +00:00
#define MyAppURL "https://www.verdnatura.es/"
2016-03-14 08:23:40 +00:00
[Setup]
; NOTE: The value of AppId uniquely identifies this application.
AppId={{1BFBC7A1-64B3-41E0-8A8E-0D29043EA8A3}
2016-03-14 08:23:40 +00:00
AppName={#MyAppName}
AppVersion={#MyAppVersion}
AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
CreateAppDir=yes
2020-02-28 16:05:09 +00:00
DefaultDirName={commonpf}\{#MyAppName}
2016-03-14 08:23:40 +00:00
DefaultGroupName={#MyAppName}
2024-02-21 11:38:50 +00:00
WizardSmallImageFile=img\iss\wizard-small.bmp
WizardImageFile=img\iss\wizard.bmp
LicenseFile=src\LICENSE.txt
2016-03-19 18:10:05 +00:00
SetupIconFile=src\icon.ico
UninstallDisplayIcon={app}\icon.ico
2016-03-14 08:23:40 +00:00
Compression=lzma
SolidCompression=yes
PrivilegesRequired=admin
DisableStartupPrompt=yes
OutputDir=..
OutputBaseFilename=vn-access
;SignTool=signtool.exe sign \
/a /f $qC:\cert.pfx$q /n $q{#MyAppPublisher}$q /t http://timestamp.comodoca.com/authenticode /d $q{#MyAppName}$q $f
2016-03-14 08:23:40 +00:00
[Languages]
Name: "es"; MessagesFile: "compiler:Languages\Spanish.isl"
[Dirs]
Name: "{app}"; \
Flags: uninsalwaysuninstall
2016-03-14 08:23:40 +00:00
Name: "{sd}\fotos"; \
Flags: uninsalwaysuninstall; \
Permissions: users-modify
2016-03-14 08:23:40 +00:00
[Files]
Source: "deps\*"; \
DestDir: {tmp}; Flags: deleteafterinstall; AfterInstall: InstallExe;
Source: "odbc\*"; \
DestDir: {tmp}; Flags: deleteafterinstall; AfterInstall: InstallMsi;
2016-03-14 08:23:40 +00:00
Source: "src\*"; \
DestDir: "{app}"; Flags: ignoreversion
2024-02-21 11:38:50 +00:00
Source: "img\branches\*"; \
2024-03-22 08:18:32 +00:00
DestDir: "{app}\branches"; Flags: ignoreversion
2024-02-21 11:38:50 +00:00
Source: "img\datasources\*"; \
2024-03-22 08:18:32 +00:00
DestDir: "{app}\datasources"; Flags: ignoreversion
2024-02-23 11:33:58 +00:00
Source: "img\api-sources\*"; \
2024-03-22 08:18:32 +00:00
DestDir: "{app}\apiSources"; Flags: ignoreversion
2024-02-23 11:33:58 +00:00
Source: "img\app-icons\*"; \
DestDir: "{app}\icons"; Flags: ignoreversion
Source: "ocx\*"; \
DestDir: {sys}; Flags: onlyifdoesntexist regserver 32bit
2023-01-31 10:11:39 +00:00
; Roboto ToDo: Loop in code to install all fonts into folder
Source: "fonts\Roboto\Roboto-Black.ttf"; DestDir: "{commonfonts}"; \
2023-02-02 09:39:59 +00:00
FontInstall: "Roboto-Black"; Flags: onlyifdoesntexist uninsneveruninstall
2023-01-31 10:11:39 +00:00
Source: "fonts\Roboto\Roboto-BlackItalic.ttf"; DestDir: "{commonfonts}"; \
2023-02-02 09:39:59 +00:00
FontInstall: "Roboto-BlackItalic"; Flags: onlyifdoesntexist uninsneveruninstall
2023-01-31 10:11:39 +00:00
Source: "fonts\Roboto\Roboto-Bold.ttf"; DestDir: "{commonfonts}"; \
2023-02-02 09:39:59 +00:00
FontInstall: "Roboto-Bold"; Flags: onlyifdoesntexist uninsneveruninstall
2023-01-31 10:11:39 +00:00
Source: "fonts\Roboto\Roboto-BoldItalic.ttf"; DestDir: "{commonfonts}"; \
2023-02-02 09:39:59 +00:00
FontInstall: "Roboto-BoldItalic"; Flags: onlyifdoesntexist uninsneveruninstall
2023-01-31 10:11:39 +00:00
Source: "fonts\Roboto\Roboto-Italic.ttf"; DestDir: "{commonfonts}"; \
2023-02-02 09:39:59 +00:00
FontInstall: "Roboto-Italic"; Flags: onlyifdoesntexist uninsneveruninstall
2023-01-31 10:11:39 +00:00
Source: "fonts\Roboto\Roboto-Light.ttf"; DestDir: "{commonfonts}"; \
2023-02-02 09:39:59 +00:00
FontInstall: "Roboto-Light"; Flags: onlyifdoesntexist uninsneveruninstall
2023-01-31 10:11:39 +00:00
Source: "fonts\Roboto\Roboto-LightItalic.ttf"; DestDir: "{commonfonts}"; \
2023-02-02 09:39:59 +00:00
FontInstall: "Roboto-LightItalic"; Flags: onlyifdoesntexist uninsneveruninstall
2023-01-31 10:11:39 +00:00
Source: "fonts\Roboto\Roboto-Medium.ttf"; DestDir: "{commonfonts}"; \
2023-02-02 09:39:59 +00:00
FontInstall: "Roboto-Medium"; Flags: onlyifdoesntexist uninsneveruninstall
2023-01-31 10:11:39 +00:00
Source: "fonts\Roboto\Roboto-MediumItalic.ttf"; DestDir: "{commonfonts}"; \
2023-02-02 09:39:59 +00:00
FontInstall: "Roboto-MediumItalic"; Flags: onlyifdoesntexist uninsneveruninstall
2023-01-31 10:11:39 +00:00
Source: "fonts\Roboto\Roboto-Regular.ttf"; DestDir: "{commonfonts}"; \
2023-02-02 09:39:59 +00:00
FontInstall: "Roboto-Regular"; Flags: onlyifdoesntexist uninsneveruninstall
2023-01-31 10:11:39 +00:00
Source: "fonts\Roboto\Roboto-Thin.ttf"; DestDir: "{commonfonts}"; \
2023-02-02 09:39:59 +00:00
FontInstall: "Roboto-Thin"; Flags: onlyifdoesntexist uninsneveruninstall
2023-01-31 10:11:39 +00:00
Source: "fonts\Roboto\Roboto-ThinItalic.ttf"; DestDir: "{commonfonts}"; \
2023-02-02 09:39:59 +00:00
FontInstall: "Roboto-ThinItalic"; Flags: onlyifdoesntexist uninsneveruninstall
2023-01-31 10:11:39 +00:00
; Poppins
Source: "fonts\Poppins\Poppins-Regular.ttf"; DestDir: "{commonfonts}"; \
2023-02-02 09:39:59 +00:00
FontInstall: "Poppins-Regular.ttf"; Flags: onlyifdoesntexist uninsneveruninstall
2023-01-31 10:11:39 +00:00
Source: "fonts\Poppins\Poppins-Thin.ttf"; DestDir: "{commonfonts}"; \
2023-02-02 09:39:59 +00:00
FontInstall: "Poppins-Thin"; Flags: onlyifdoesntexist uninsneveruninstall
2023-01-31 10:11:39 +00:00
Source: "fonts\Poppins\Poppins-Bold.ttf"; DestDir: "{commonfonts}"; \
2023-02-02 09:39:59 +00:00
FontInstall: "Poppins-Bold"; Flags: onlyifdoesntexist uninsneveruninstall
2023-01-31 10:11:39 +00:00
Source: "fonts\Poppins\Poppins-Italic.ttf"; DestDir: "{commonfonts}"; \
2023-02-02 09:39:59 +00:00
FontInstall: "Poppins-Italic"; Flags: onlyifdoesntexist uninsneveruninstall
2023-01-31 10:11:39 +00:00
; Codes
Source: "fonts\Code128B.ttf"; DestDir: "{commonfonts}"; \
FontInstall: "Code128B"; Flags: onlyifdoesntexist uninsneveruninstall
Source: "fonts\Code128L.ttf"; DestDir: "{commonfonts}"; \
FontInstall: "Code128L"; Flags: onlyifdoesntexist uninsneveruninstall
Source: "fonts\CCode39.ttf"; DestDir: "{commonfonts}"; \
FontInstall: "CCode39"; Flags: onlyifdoesntexist uninsneveruninstall
Source: "fonts\Free 3 of 9.ttf"; DestDir: "{commonfonts}"; \
FontInstall: "Free 3 of 9"; Flags: onlyifdoesntexist uninsneveruninstall
Source: "fonts\Free 3 of 9 Extended.ttf"; DestDir: "{commonfonts}"; \
FontInstall: "Free 3 of 9 Extended"; Flags: onlyifdoesntexist uninsneveruninstall
Source: "fonts\IDAutomationHC39M.ttf"; DestDir: "{commonfonts}"; \
FontInstall: "IDAutomationHC39M"; Flags: onlyifdoesntexist uninsneveruninstall
Source: "fonts\MRV Code39extMA.ttf"; DestDir: "{commonfonts}"; \
FontInstall: "MRV Code39extMA"; Flags: onlyifdoesntexist uninsneveruninstall
2016-03-14 08:23:40 +00:00
[Tasks]
Name: "desktopicon"; \
Description: "{cm:CreateDesktopIcon}"; \
GroupDescription: "{cm:AdditionalIcons}";
[Components]
Name: "tpv"; \
Description: "Terminal Punto Venta"; \
Types: full compact
Name: "ent"; \
Description: "Entradas"; \
Types: full compact
Name: "com"; \
Description: "Comparativa"; \
Types: full compact
Name: "enc"; \
Description: "Encajado"; \
Types: full
Name: "eti"; \
Description: "Etiquetas"; \
Types: full
Name: "lab"; \
Description: "Laboral"; \
Types: full
2016-11-11 13:55:15 +00:00
Name: "vn"; \
Description: "Library"; \
Types: full
2016-03-14 08:23:40 +00:00
[Icons]
Name: "{group}\Terminal Punto Venta"; \
Parameters: "tpv"; \
2016-11-11 13:55:15 +00:00
Components: tpv; \
IconFileName: "{app}\icons\tpv.ico"; \
FileName: "{app}\vn-access.hta"; \
2016-11-11 13:55:15 +00:00
WorkingDir: "{app}"
2016-03-14 08:23:40 +00:00
Name: "{group}\Entradas"; \
Parameters: "ent"; \
2016-11-11 13:55:15 +00:00
Components: ent; \
IconFileName: "{app}\icons\ent.ico"; \
FileName: "{app}\vn-access.hta"; \
2016-11-11 13:55:15 +00:00
WorkingDir: "{app}"
2016-03-14 08:23:40 +00:00
Name: "{group}\Comparativa"; \
Parameters: "com"; \
2016-11-11 13:55:15 +00:00
Components: com; \
IconFileName: "{app}\icons\com.ico"; \
FileName: "{app}\vn-access.hta"; \
2016-11-11 13:55:15 +00:00
WorkingDir: "{app}"
2016-03-14 08:23:40 +00:00
Name: "{group}\Encajado"; \
Parameters: "enc"; \
2016-11-11 13:55:15 +00:00
Components: enc; \
IconFileName: "{app}\icons\enc.ico"; \
FileName: "{app}\vn-access.hta"; \
2016-11-11 13:55:15 +00:00
WorkingDir: "{app}"
2016-03-14 08:23:40 +00:00
Name: "{group}\Etiquetas"; \
Parameters: "eti"; \
2016-11-11 13:55:15 +00:00
Components: eti; \
IconFileName: "{app}\icons\eti.ico"; \
FileName: "{app}\vn-access.hta"; \
2016-11-11 13:55:15 +00:00
WorkingDir: "{app}"
Name: "{group}\Laboral"; \
Parameters: "lab"; \
2016-11-11 13:55:15 +00:00
Components: lab; \
IconFileName: "{app}\icons\lab.ico"; \
FileName: "{app}\vn-access.hta"; \
2016-11-11 13:55:15 +00:00
WorkingDir: "{app}"
Name: "{group}\Library"; \
Parameters: "vn"; \
Components: vn; \
IconFileName: "{app}\icons\vn.ico"; \
2016-11-11 13:55:15 +00:00
FileName: "{app}\vn-access.hta"; \
WorkingDir: "{app}"
2016-03-14 08:23:40 +00:00
2023-01-31 10:11:39 +00:00
; Desktop icons
2016-03-14 08:23:40 +00:00
Name: "{commondesktop}\Terminal Punto Venta"; \
Parameters: "tpv"; \
2016-11-11 13:55:15 +00:00
Components: tpv; \
IconFileName: "{app}\icons\tpv.ico"; \
FileName: "{app}\vn-access.hta"; \
WorkingDir: "{app}"; \
2016-11-11 13:55:15 +00:00
Tasks: desktopicon
2016-03-14 08:23:40 +00:00
Name: "{commondesktop}\Entradas"; \
Parameters: "ent"; \
2016-11-11 13:55:15 +00:00
Components: ent; \
IconFileName: "{app}\icons\ent.ico"; \
FileName: "{app}\vn-access.hta"; \
WorkingDir: "{app}"; \
2016-11-11 13:55:15 +00:00
Tasks: desktopicon
2016-03-14 08:23:40 +00:00
Name: "{commondesktop}\Comparativa"; \
Parameters: "com"; \
2016-11-11 13:55:15 +00:00
Components: com; \
IconFileName: "{app}\icons\com.ico"; \
FileName: "{app}\vn-access.hta"; \
WorkingDir: "{app}"; \
2016-11-11 13:55:15 +00:00
Tasks: desktopicon
2016-03-14 08:23:40 +00:00
Name: "{commondesktop}\Encajado"; \
Parameters: "enc"; \
2016-11-11 13:55:15 +00:00
Components: enc; \
IconFileName: "{app}\icons\enc.ico"; \
FileName: "{app}\vn-access.hta"; \
WorkingDir: "{app}"; \
2016-11-11 13:55:15 +00:00
Tasks: desktopicon
2016-03-14 08:23:40 +00:00
Name: "{commondesktop}\Etiquetas"; \
Parameters: "eti"; \
2016-11-11 13:55:15 +00:00
Components: eti; \
IconFileName: "{app}\icons\eti.ico"; \
FileName: "{app}\vn-access.hta"; \
WorkingDir: "{app}"; \
2016-11-11 13:55:15 +00:00
Tasks: desktopicon
Name: "{commondesktop}\Laboral"; \
Parameters: "lab"; \
2016-11-11 13:55:15 +00:00
Components: lab; \
IconFileName: "{app}\icons\lab.ico"; \
FileName: "{app}\vn-access.hta"; \
WorkingDir: "{app}"; \
2016-11-11 13:55:15 +00:00
Tasks: desktopicon
Name: "{commondesktop}\Library"; \
Parameters: "vn"; \
Components: vn; \
IconFileName: "{app}\icons\vn.ico"; \
2016-11-11 13:55:15 +00:00
FileName: "{app}\vn-access.hta"; \
WorkingDir: "{app}"; \
Tasks: desktopicon
[Code]
procedure InstallExe;
var
StatusText: String;
ResultCode: Integer;
ExeFile: String;
begin
ExeFile := ExpandConstant(CurrentFilename);
StatusText := WizardForm.StatusLabel.Caption;
WizardForm.StatusLabel.Caption := CurrentFilename +'...';
WizardForm.ProgressGauge.Style := npbstMarquee;
Log(WizardSelectedComponents(False));
try
if not Exec(ExeFile, '/Q', '', SW_SHOW, ewWaitUntilTerminated, ResultCode) then
begin
MsgBox(CurrentFilename +' installation failed with code: ' + IntToStr(ResultCode) + '.',
mbError, MB_OK);
WizardForm.Close;
end;
finally
WizardForm.StatusLabel.Caption := StatusText;
WizardForm.ProgressGauge.Style := npbstNormal;
end;
end;
procedure InstallMsi;
var
StatusText: String;
ResultCode: Integer;
MsiFile: String;
begin
MsiFile := ExpandConstant(CurrentFilename);
StatusText := WizardForm.StatusLabel.Caption;
WizardForm.StatusLabel.Caption := CurrentFilename +'...';
WizardForm.ProgressGauge.Style := npbstMarquee;
Log(WizardSelectedComponents(False));
try
if not Exec('msiexec', '/quiet /i '+ MsiFile, '', SW_SHOW, ewWaitUntilTerminated, ResultCode) then
begin
MsgBox(CurrentFilename +' installation failed with code: ' + IntToStr(ResultCode) + '.',
mbError, MB_OK);
2023-01-31 10:11:39 +00:00
WizardForm.Close;
end;
finally
WizardForm.StatusLabel.Caption := StatusText;
WizardForm.ProgressGauge.Style := npbstNormal;
end;
2023-01-31 10:11:39 +00:00
end;