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=..
|
||||
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
|
||||
/a /f $qC:\cert.pfx$q /n $q{#MyAppPublisher}$q /t http://timestamp.comodoca.com/authenticode /d $q{#MyAppName}$q $f
|
||||
|
||||
[Languages]
|
||||
Name: "es"; MessagesFile: "compiler:Languages\Spanish.isl"
|
||||
|
||||
[Dirs]
|
||||
Name: "{app}"; \
|
||||
Flags: uninsalwaysuninstall
|
||||
Flags: uninsalwaysuninstall
|
||||
Name: "{sd}\fotos"; \
|
||||
Flags: uninsalwaysuninstall; \
|
||||
Permissions: users-modify
|
||||
Flags: uninsalwaysuninstall; \
|
||||
Permissions: users-modify
|
||||
|
||||
[Files]
|
||||
Source: "src\*"; \
|
||||
DestDir: "{app}"; Flags: ignoreversion
|
||||
DestDir: "{app}"; Flags: ignoreversion
|
||||
Source: "icons\*"; \
|
||||
DestDir: "{app}\icons"; Flags: ignoreversion
|
||||
DestDir: "{app}\icons"; Flags: ignoreversion
|
||||
Source: "fonts\*"; \
|
||||
DestDir: "{fonts}"; Flags: onlyifdoesntexist uninsneveruninstall
|
||||
DestDir: "{fonts}"; Flags: onlyifdoesntexist uninsneveruninstall
|
||||
Source: "ocx\*"; \
|
||||
DestDir: {sys}; Flags: onlyifdoesntexist regserver 32bit
|
||||
|
||||
DestDir: {sys}; Flags: onlyifdoesntexist regserver 32bit
|
||||
Source: "deps\*"; \
|
||||
DestDir: {tmp}; Flags: deleteafterinstall; AfterInstall: InstallDep;
|
||||
|
||||
[Tasks]
|
||||
Name: "desktopicon"; \
|
||||
Description: "{cm:CreateDesktopIcon}"; \
|
||||
GroupDescription: "{cm:AdditionalIcons}";
|
||||
Description: "{cm:CreateDesktopIcon}"; \
|
||||
GroupDescription: "{cm:AdditionalIcons}";
|
||||
|
||||
[Components]
|
||||
Name: "tpv"; \
|
||||
Description: "Terminal Punto Venta"; \
|
||||
Types: full compact
|
||||
Description: "Terminal Punto Venta"; \
|
||||
Types: full compact
|
||||
Name: "ent"; \
|
||||
Description: "Entradas"; \
|
||||
Types: full compact
|
||||
Description: "Entradas"; \
|
||||
Types: full compact
|
||||
Name: "com"; \
|
||||
Description: "Comparativa"; \
|
||||
Types: full compact
|
||||
Description: "Comparativa"; \
|
||||
Types: full compact
|
||||
Name: "enc"; \
|
||||
Description: "Encajado"; \
|
||||
Types: full
|
||||
Description: "Encajado"; \
|
||||
Types: full
|
||||
Name: "eti"; \
|
||||
Description: "Etiquetas"; \
|
||||
Types: full
|
||||
Description: "Etiquetas"; \
|
||||
Types: full
|
||||
Name: "lab"; \
|
||||
Description: "Laboral"; \
|
||||
Types: full
|
||||
Description: "Laboral"; \
|
||||
Types: full
|
||||
|
||||
[Icons]
|
||||
Name: "{group}\Terminal Punto Venta"; \
|
||||
Parameters: "tpv"; \
|
||||
IconFileName: "{app}\icons\tpv.ico"; \
|
||||
FileName: "{app}\vn-access.hta"; \
|
||||
WorkingDir: "{app}"; \
|
||||
Components: tpv
|
||||
Parameters: "tpv"; \
|
||||
IconFileName: "{app}\icons\tpv.ico"; \
|
||||
FileName: "{app}\vn-access.hta"; \
|
||||
WorkingDir: "{app}"; \
|
||||
Components: tpv
|
||||
Name: "{group}\Entradas"; \
|
||||
Parameters: "ent"; \
|
||||
IconFileName: "{app}\icons\ent.ico"; \
|
||||
FileName: "{app}\vn-access.hta"; \
|
||||
WorkingDir: "{app}"; \
|
||||
Components: ent
|
||||
Parameters: "ent"; \
|
||||
IconFileName: "{app}\icons\ent.ico"; \
|
||||
FileName: "{app}\vn-access.hta"; \
|
||||
WorkingDir: "{app}"; \
|
||||
Components: ent
|
||||
Name: "{group}\Comparativa"; \
|
||||
Parameters: "com"; \
|
||||
IconFileName: "{app}\icons\com.ico"; \
|
||||
FileName: "{app}\vn-access.hta"; \
|
||||
WorkingDir: "{app}"; \
|
||||
Components: com
|
||||
Parameters: "com"; \
|
||||
IconFileName: "{app}\icons\com.ico"; \
|
||||
FileName: "{app}\vn-access.hta"; \
|
||||
WorkingDir: "{app}"; \
|
||||
Components: com
|
||||
Name: "{group}\Encajado"; \
|
||||
Parameters: "enc"; \
|
||||
IconFileName: "{app}\icons\enc.ico"; \
|
||||
FileName: "{app}\vn-access.hta"; \
|
||||
WorkingDir: "{app}"; \
|
||||
Components: enc
|
||||
Parameters: "enc"; \
|
||||
IconFileName: "{app}\icons\enc.ico"; \
|
||||
FileName: "{app}\vn-access.hta"; \
|
||||
WorkingDir: "{app}"; \
|
||||
Components: enc
|
||||
Name: "{group}\Etiquetas"; \
|
||||
Parameters: "eti"; \
|
||||
IconFileName: "{app}\icons\eti.ico"; \
|
||||
FileName: "{app}\vn-access.hta"; \
|
||||
WorkingDir: "{app}"; \
|
||||
Components: eti
|
||||
Parameters: "eti"; \
|
||||
IconFileName: "{app}\icons\eti.ico"; \
|
||||
FileName: "{app}\vn-access.hta"; \
|
||||
WorkingDir: "{app}"; \
|
||||
Components: eti
|
||||
Name: "{group}\Laboral"; \
|
||||
Parameters: "lab"; \
|
||||
IconFileName: "{app}\icons\lab.ico"; \
|
||||
FileName: "{app}\vn-access.hta"; \
|
||||
WorkingDir: "{app}"; \
|
||||
Components: lab
|
||||
Parameters: "lab"; \
|
||||
IconFileName: "{app}\icons\lab.ico"; \
|
||||
FileName: "{app}\vn-access.hta"; \
|
||||
WorkingDir: "{app}"; \
|
||||
Components: lab
|
||||
|
||||
;Desktop icons
|
||||
|
||||
Name: "{commondesktop}\Terminal Punto Venta"; \
|
||||
Parameters: "tpv"; \
|
||||
IconFileName: "{app}\icons\tpv.ico"; \
|
||||
FileName: "{app}\vn-access.hta"; \
|
||||
WorkingDir: "{app}"; \
|
||||
Tasks: desktopicon; \
|
||||
Components: tpv
|
||||
Parameters: "tpv"; \
|
||||
IconFileName: "{app}\icons\tpv.ico"; \
|
||||
FileName: "{app}\vn-access.hta"; \
|
||||
WorkingDir: "{app}"; \
|
||||
Tasks: desktopicon; \
|
||||
Components: tpv
|
||||
Name: "{commondesktop}\Entradas"; \
|
||||
Parameters: "ent"; \
|
||||
IconFileName: "{app}\icons\ent.ico"; \
|
||||
FileName: "{app}\vn-access.hta"; \
|
||||
WorkingDir: "{app}"; \
|
||||
Tasks: desktopicon; \
|
||||
Components: ent
|
||||
Parameters: "ent"; \
|
||||
IconFileName: "{app}\icons\ent.ico"; \
|
||||
FileName: "{app}\vn-access.hta"; \
|
||||
WorkingDir: "{app}"; \
|
||||
Tasks: desktopicon; \
|
||||
Components: ent
|
||||
Name: "{commondesktop}\Comparativa"; \
|
||||
Parameters: "com"; \
|
||||
IconFileName: "{app}\icons\com.ico"; \
|
||||
FileName: "{app}\vn-access.hta"; \
|
||||
WorkingDir: "{app}"; \
|
||||
Tasks: desktopicon; \
|
||||
Components: com
|
||||
Parameters: "com"; \
|
||||
IconFileName: "{app}\icons\com.ico"; \
|
||||
FileName: "{app}\vn-access.hta"; \
|
||||
WorkingDir: "{app}"; \
|
||||
Tasks: desktopicon; \
|
||||
Components: com
|
||||
Name: "{commondesktop}\Encajado"; \
|
||||
Parameters: "enc"; \
|
||||
IconFileName: "{app}\icons\enc.ico"; \
|
||||
FileName: "{app}\vn-access.hta"; \
|
||||
WorkingDir: "{app}"; \
|
||||
Tasks: desktopicon; \
|
||||
Components: enc
|
||||
Parameters: "enc"; \
|
||||
IconFileName: "{app}\icons\enc.ico"; \
|
||||
FileName: "{app}\vn-access.hta"; \
|
||||
WorkingDir: "{app}"; \
|
||||
Tasks: desktopicon; \
|
||||
Components: enc
|
||||
Name: "{commondesktop}\Etiquetas"; \
|
||||
Parameters: "eti"; \
|
||||
IconFileName: "{app}\icons\eti.ico"; \
|
||||
FileName: "{app}\vn-access.hta"; \
|
||||
WorkingDir: "{app}"; \
|
||||
Tasks: desktopicon; \
|
||||
Components: eti
|
||||
Parameters: "eti"; \
|
||||
IconFileName: "{app}\icons\eti.ico"; \
|
||||
FileName: "{app}\vn-access.hta"; \
|
||||
WorkingDir: "{app}"; \
|
||||
Tasks: desktopicon; \
|
||||
Components: eti
|
||||
Name: "{commondesktop}\Laboral"; \
|
||||
Parameters: "lab"; \
|
||||
IconFileName: "{app}\icons\lab.ico"; \
|
||||
FileName: "{app}\vn-access.hta"; \
|
||||
WorkingDir: "{app}"; \
|
||||
Tasks: desktopicon; \
|
||||
Components: lab
|
||||
Parameters: "lab"; \
|
||||
IconFileName: "{app}\icons\lab.ico"; \
|
||||
FileName: "{app}\vn-access.hta"; \
|
||||
WorkingDir: "{app}"; \
|
||||
Tasks: desktopicon; \
|
||||
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