Ver Mensaje Individual
  #1  
Antiguo 08-02-2024
smacas smacas is offline
Registrado
 
Registrado: feb 2024
Posts: 3
Reputación: 0
smacas Va por buen camino
Question Como automatizar instalación de varias versiones de Firebird con Inno Setup

Buenas
Mi problema es el siguiente:
Quisiera tener ejecutándose varios servicios de Firebird a la vez, es decir, tener el Firebird 4.0 y el 5.0 funcionando a la vez, esto tengo que hacerlo con bastantes equipos y tengo entendido que Inno setup me permite hacer un instalador que me podría facilitar y ahorrar tiempo. Según he leído en otros foros si se puede tener varias versiones funcionando a la vez pero haciéndolo de forma manual, es decir:
1.- Necesitas que uno sea un ejecutable y el otro un zip
2.- Instalas una versión con el ejecutable y con el otro creas una carpeta diferente y lo descomprimes ahí el zip, luego modificamos el fichero .conf para indicarle el puerto, por ejemplo el 3051.
3.- Luego ejecutamos el fichero .bat para la instalación.


Cita:
Este es el programa que tengo:
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define Firebird4Exe "Firebird-4.0.4.3010-0-x64.exe"
#define Firebird5Zip "Firebird-5.0.0.1306-0-windows-x86.zip"

; Definición de rutas
#define Firebird4Path "C:\Firebird\Firebird_4"
#define Firebird5Path "C:\Firebird\Firebird_5"

[Setup]
AppName=Instalador de Firebird
AppVersion=1.0
DefaultDirName={pf}\Firebird
OutputDir=Output
OutputBaseFilename=InstaladorFirebird
Compression=lzma
SolidCompression=yes

[Languages]
Name: spanish; MessagesFile: compiler:Languages\Spanish.isl

[Files]
Source: "{#Firebird4Exe}"; DestDir: "{tmp}"; Flags: deleteafterinstall
Source: "{#Firebird5Zip}"; DestDir: "{tmp}"; Flags: deleteafterinstall;

[Run]

Filename: "{tmp}\{#Firebird4Exe}"; Parameters: "/S /SP- /SUPPRESSMSGBOXES /COMPONENTS=""ServerComponent"" /PORT=3050 /NOREMOTE=true /SERVERDEFAULT=false /PATH=""{#Firebird4Path}"" /WINPATH=""{#Firebird4Path}"" /MERGETASKS=""RUN_SERVER_TASK,INSTALL_SUPERSERVER_REGISTRY_KEYS,INSTALL_SUPERCLASSIC_REGISTRY_KEYS"" /STARTMENU=false /UNINSTALL=false /NOICONS=false"; Flags: waituntilterminated skipifsilent
//Parar el servicio Firebird 4.0
Filename: "net.exe"; Parameters: "stop ""Firebird Server - DefaultInstance"""; Flags: runhidden waituntilterminated
Filename: "powershell.exe"; Parameters: "-Command Expand-Archive -Path ""{tmp}\{#Firebird5Zip}"" -DestinationPath ""{#Firebird5Path}"""; Flags: waituntilterminated

[Icons]
Name: "{commondesktop}\Firebird 4"; Filename: "{#Firebird4Path}\bin\isql.exe"; WorkingDir: "{#Firebird4Path}\bin"
Name: "{commondesktop}\Firebird 5"; Filename: "{#Firebird5Path}\bin\isql.exe"; WorkingDir: "{#Firebird5Path}\bin"

[code]
function NextButtonClick(CurPageID: Integer): Boolean;
begin
Result := True;
if CurPageID = wpInstalling then
begin
MsgBox('La instalación de Firebird ha finalizado con éxito.', mbInformation, MB_OK);
end;
end;
Muchas gracias de antemano

Última edición por Neftali [Germán.Estévez] fecha: 09-02-2024 a las 08:45:20. Razón: Añadir QUOTES el mensaje
Responder Con Cita