Ahora se instalan los drivers ODBC junto con el instalador
This commit is contained in:
parent
765e03052f
commit
cc7bc96349
Binary file not shown.
Binary file not shown.
206
setup.iss
206
setup.iss
|
@ -27,132 +27,160 @@ DisableStartupPrompt=yes
|
||||||
OutputDir=..
|
OutputDir=..
|
||||||
OutputBaseFilename=vn-access
|
OutputBaseFilename=vn-access
|
||||||
SignTool=signtool.exe sign \
|
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
|
/a /f $qC:\cert.pfx$q /n $q{#MyAppPublisher}$q /t http://timestamp.comodoca.com/authenticode /d $q{#MyAppName}$q $f
|
||||||
|
|
||||||
[Languages]
|
[Languages]
|
||||||
Name: "es"; MessagesFile: "compiler:Languages\Spanish.isl"
|
Name: "es"; MessagesFile: "compiler:Languages\Spanish.isl"
|
||||||
|
|
||||||
[Dirs]
|
[Dirs]
|
||||||
Name: "{app}"; \
|
Name: "{app}"; \
|
||||||
Flags: uninsalwaysuninstall
|
Flags: uninsalwaysuninstall
|
||||||
Name: "{sd}\fotos"; \
|
Name: "{sd}\fotos"; \
|
||||||
Flags: uninsalwaysuninstall; \
|
Flags: uninsalwaysuninstall; \
|
||||||
Permissions: users-modify
|
Permissions: users-modify
|
||||||
|
|
||||||
[Files]
|
[Files]
|
||||||
Source: "src\*"; \
|
Source: "src\*"; \
|
||||||
DestDir: "{app}"; Flags: ignoreversion
|
DestDir: "{app}"; Flags: ignoreversion
|
||||||
Source: "icons\*"; \
|
Source: "icons\*"; \
|
||||||
DestDir: "{app}\icons"; Flags: ignoreversion
|
DestDir: "{app}\icons"; Flags: ignoreversion
|
||||||
Source: "fonts\*"; \
|
Source: "fonts\*"; \
|
||||||
DestDir: "{fonts}"; Flags: onlyifdoesntexist uninsneveruninstall
|
DestDir: "{fonts}"; Flags: onlyifdoesntexist uninsneveruninstall
|
||||||
Source: "ocx\*"; \
|
Source: "ocx\*"; \
|
||||||
DestDir: {sys}; Flags: onlyifdoesntexist regserver 32bit
|
DestDir: {sys}; Flags: onlyifdoesntexist regserver 32bit
|
||||||
|
Source: "deps\*"; \
|
||||||
|
DestDir: {tmp}; Flags: deleteafterinstall; AfterInstall: InstallDep;
|
||||||
|
|
||||||
[Tasks]
|
[Tasks]
|
||||||
Name: "desktopicon"; \
|
Name: "desktopicon"; \
|
||||||
Description: "{cm:CreateDesktopIcon}"; \
|
Description: "{cm:CreateDesktopIcon}"; \
|
||||||
GroupDescription: "{cm:AdditionalIcons}";
|
GroupDescription: "{cm:AdditionalIcons}";
|
||||||
|
|
||||||
[Components]
|
[Components]
|
||||||
Name: "tpv"; \
|
Name: "tpv"; \
|
||||||
Description: "Terminal Punto Venta"; \
|
Description: "Terminal Punto Venta"; \
|
||||||
Types: full compact
|
Types: full compact
|
||||||
Name: "ent"; \
|
Name: "ent"; \
|
||||||
Description: "Entradas"; \
|
Description: "Entradas"; \
|
||||||
Types: full compact
|
Types: full compact
|
||||||
Name: "com"; \
|
Name: "com"; \
|
||||||
Description: "Comparativa"; \
|
Description: "Comparativa"; \
|
||||||
Types: full compact
|
Types: full compact
|
||||||
Name: "enc"; \
|
Name: "enc"; \
|
||||||
Description: "Encajado"; \
|
Description: "Encajado"; \
|
||||||
Types: full
|
Types: full
|
||||||
Name: "eti"; \
|
Name: "eti"; \
|
||||||
Description: "Etiquetas"; \
|
Description: "Etiquetas"; \
|
||||||
Types: full
|
Types: full
|
||||||
Name: "lab"; \
|
Name: "lab"; \
|
||||||
Description: "Laboral"; \
|
Description: "Laboral"; \
|
||||||
Types: full
|
Types: full
|
||||||
|
|
||||||
[Icons]
|
[Icons]
|
||||||
Name: "{group}\Terminal Punto Venta"; \
|
Name: "{group}\Terminal Punto Venta"; \
|
||||||
Parameters: "tpv"; \
|
Parameters: "tpv"; \
|
||||||
IconFileName: "{app}\icons\tpv.ico"; \
|
IconFileName: "{app}\icons\tpv.ico"; \
|
||||||
FileName: "{app}\vn-access.hta"; \
|
FileName: "{app}\vn-access.hta"; \
|
||||||
WorkingDir: "{app}"; \
|
WorkingDir: "{app}"; \
|
||||||
Components: tpv
|
Components: tpv
|
||||||
Name: "{group}\Entradas"; \
|
Name: "{group}\Entradas"; \
|
||||||
Parameters: "ent"; \
|
Parameters: "ent"; \
|
||||||
IconFileName: "{app}\icons\ent.ico"; \
|
IconFileName: "{app}\icons\ent.ico"; \
|
||||||
FileName: "{app}\vn-access.hta"; \
|
FileName: "{app}\vn-access.hta"; \
|
||||||
WorkingDir: "{app}"; \
|
WorkingDir: "{app}"; \
|
||||||
Components: ent
|
Components: ent
|
||||||
Name: "{group}\Comparativa"; \
|
Name: "{group}\Comparativa"; \
|
||||||
Parameters: "com"; \
|
Parameters: "com"; \
|
||||||
IconFileName: "{app}\icons\com.ico"; \
|
IconFileName: "{app}\icons\com.ico"; \
|
||||||
FileName: "{app}\vn-access.hta"; \
|
FileName: "{app}\vn-access.hta"; \
|
||||||
WorkingDir: "{app}"; \
|
WorkingDir: "{app}"; \
|
||||||
Components: com
|
Components: com
|
||||||
Name: "{group}\Encajado"; \
|
Name: "{group}\Encajado"; \
|
||||||
Parameters: "enc"; \
|
Parameters: "enc"; \
|
||||||
IconFileName: "{app}\icons\enc.ico"; \
|
IconFileName: "{app}\icons\enc.ico"; \
|
||||||
FileName: "{app}\vn-access.hta"; \
|
FileName: "{app}\vn-access.hta"; \
|
||||||
WorkingDir: "{app}"; \
|
WorkingDir: "{app}"; \
|
||||||
Components: enc
|
Components: enc
|
||||||
Name: "{group}\Etiquetas"; \
|
Name: "{group}\Etiquetas"; \
|
||||||
Parameters: "eti"; \
|
Parameters: "eti"; \
|
||||||
IconFileName: "{app}\icons\eti.ico"; \
|
IconFileName: "{app}\icons\eti.ico"; \
|
||||||
FileName: "{app}\vn-access.hta"; \
|
FileName: "{app}\vn-access.hta"; \
|
||||||
WorkingDir: "{app}"; \
|
WorkingDir: "{app}"; \
|
||||||
Components: eti
|
Components: eti
|
||||||
Name: "{group}\Laboral"; \
|
Name: "{group}\Laboral"; \
|
||||||
Parameters: "lab"; \
|
Parameters: "lab"; \
|
||||||
IconFileName: "{app}\icons\lab.ico"; \
|
IconFileName: "{app}\icons\lab.ico"; \
|
||||||
FileName: "{app}\vn-access.hta"; \
|
FileName: "{app}\vn-access.hta"; \
|
||||||
WorkingDir: "{app}"; \
|
WorkingDir: "{app}"; \
|
||||||
Components: lab
|
Components: lab
|
||||||
|
|
||||||
;Desktop icons
|
;Desktop icons
|
||||||
|
|
||||||
Name: "{commondesktop}\Terminal Punto Venta"; \
|
Name: "{commondesktop}\Terminal Punto Venta"; \
|
||||||
Parameters: "tpv"; \
|
Parameters: "tpv"; \
|
||||||
IconFileName: "{app}\icons\tpv.ico"; \
|
IconFileName: "{app}\icons\tpv.ico"; \
|
||||||
FileName: "{app}\vn-access.hta"; \
|
FileName: "{app}\vn-access.hta"; \
|
||||||
WorkingDir: "{app}"; \
|
WorkingDir: "{app}"; \
|
||||||
Tasks: desktopicon; \
|
Tasks: desktopicon; \
|
||||||
Components: tpv
|
Components: tpv
|
||||||
Name: "{commondesktop}\Entradas"; \
|
Name: "{commondesktop}\Entradas"; \
|
||||||
Parameters: "ent"; \
|
Parameters: "ent"; \
|
||||||
IconFileName: "{app}\icons\ent.ico"; \
|
IconFileName: "{app}\icons\ent.ico"; \
|
||||||
FileName: "{app}\vn-access.hta"; \
|
FileName: "{app}\vn-access.hta"; \
|
||||||
WorkingDir: "{app}"; \
|
WorkingDir: "{app}"; \
|
||||||
Tasks: desktopicon; \
|
Tasks: desktopicon; \
|
||||||
Components: ent
|
Components: ent
|
||||||
Name: "{commondesktop}\Comparativa"; \
|
Name: "{commondesktop}\Comparativa"; \
|
||||||
Parameters: "com"; \
|
Parameters: "com"; \
|
||||||
IconFileName: "{app}\icons\com.ico"; \
|
IconFileName: "{app}\icons\com.ico"; \
|
||||||
FileName: "{app}\vn-access.hta"; \
|
FileName: "{app}\vn-access.hta"; \
|
||||||
WorkingDir: "{app}"; \
|
WorkingDir: "{app}"; \
|
||||||
Tasks: desktopicon; \
|
Tasks: desktopicon; \
|
||||||
Components: com
|
Components: com
|
||||||
Name: "{commondesktop}\Encajado"; \
|
Name: "{commondesktop}\Encajado"; \
|
||||||
Parameters: "enc"; \
|
Parameters: "enc"; \
|
||||||
IconFileName: "{app}\icons\enc.ico"; \
|
IconFileName: "{app}\icons\enc.ico"; \
|
||||||
FileName: "{app}\vn-access.hta"; \
|
FileName: "{app}\vn-access.hta"; \
|
||||||
WorkingDir: "{app}"; \
|
WorkingDir: "{app}"; \
|
||||||
Tasks: desktopicon; \
|
Tasks: desktopicon; \
|
||||||
Components: enc
|
Components: enc
|
||||||
Name: "{commondesktop}\Etiquetas"; \
|
Name: "{commondesktop}\Etiquetas"; \
|
||||||
Parameters: "eti"; \
|
Parameters: "eti"; \
|
||||||
IconFileName: "{app}\icons\eti.ico"; \
|
IconFileName: "{app}\icons\eti.ico"; \
|
||||||
FileName: "{app}\vn-access.hta"; \
|
FileName: "{app}\vn-access.hta"; \
|
||||||
WorkingDir: "{app}"; \
|
WorkingDir: "{app}"; \
|
||||||
Tasks: desktopicon; \
|
Tasks: desktopicon; \
|
||||||
Components: eti
|
Components: eti
|
||||||
Name: "{commondesktop}\Laboral"; \
|
Name: "{commondesktop}\Laboral"; \
|
||||||
Parameters: "lab"; \
|
Parameters: "lab"; \
|
||||||
IconFileName: "{app}\icons\lab.ico"; \
|
IconFileName: "{app}\icons\lab.ico"; \
|
||||||
FileName: "{app}\vn-access.hta"; \
|
FileName: "{app}\vn-access.hta"; \
|
||||||
WorkingDir: "{app}"; \
|
WorkingDir: "{app}"; \
|
||||||
Tasks: desktopicon; \
|
Tasks: desktopicon; \
|
||||||
Components: lab
|
Components: lab
|
||||||
|
|
||||||
|
[Code]
|
||||||
|
|
||||||
|
procedure InstallDep;
|
||||||
|
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);
|
||||||
|
WizardForm.Close;
|
||||||
|
end;
|
||||||
|
finally
|
||||||
|
WizardForm.StatusLabel.Caption := StatusText;
|
||||||
|
WizardForm.ProgressGauge.Style := npbstNormal;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
Loading…
Reference in New Issue