Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Varios
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Grupo de Teaming del ClubDelphi

Respuesta
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 18-04-2012
alquimista alquimista is offline
Miembro
 
Registrado: ene 2008
Posts: 203
Poder: 17
alquimista Va por buen camino
Crear Instalador de INNo setup desde delphi

Hola...
Alguien sabe como crear un archivo setup.exe (por ejemplo) desde delphi.
Usando por ejemplo Inno Setup.
El programa en delphi necesitará conocer
un EXE que es fijo
y varios archivos que serán variables y estaran en carpetas diferentes

Es que he hecho un editor de preguntas de test y quiereo que el test ejecutable
se cree un un instalable con las preguntas y archivos de datos.
Para poder instalar en varios pcs...

Gracias...
Responder Con Cita
  #2  
Antiguo 18-04-2012
cloayza cloayza is offline
Miembro
 
Registrado: may 2003
Ubicación: San Pedro de la Paz, Chile
Posts: 913
Poder: 22
cloayza Tiene un aura espectacularcloayza Tiene un aura espectacular
Según la ayuda de InnoSetup, deberia ser así:
Cita:
compil32 /cc "c:\isetup\samples\my script.iss"
Algo mas de información:
Cita:
•Scripts can also be compiled by the Setup Compiler from the command line. Command line usage is as follows:

compil32 /cc <script name>

Example:
compil32 /cc "c:\isetup\samples\my script.iss"
As shown in the example above, filenames that include spaces must be enclosed in quotes.

Running the Setup Compiler from the command line does not suppress the normal progress display or any error messages. The Setup Compiler will return an exit code of 0 if the compile was successful, 1 if the command line parameters were invalid, or 2 if the compile failed.

•Alternatively, you can compile scripts using the console-mode compiler, ISCC.exe. Command line usage is as follows:

iscc [options] <script name>

Or to read from standard input:

iscc [options] -

Example:
iscc "c:\isetup\samples\my script.iss"
As shown in the example above, filenames that include spaces must be enclosed in quotes.

Valid options are: "/O" to specify an output path (overriding any OutputDir setting in the script), "/F" to specify an output filename (overriding any OutputBaseFilename setting in the script), "/S" to specify a Sign Tool, "/Q" for quiet compile (print only error messages), and "/?" to show a help screen.

Example:
iscc /Q /O"My Output" /F"MyProgram-1.0" /Sbyparam=$p "c:\isetup\samples\my script.iss"
ISCC will return an exit code of 0 if the compile was successful, 1 if the command line parameters were invalid or an internal error occurred, or 2 if the compile failed.

•The Setup Script Wizard can be started from the command line. Command line usage is as follows:

compil32 /wizard <wizard name> <script name>

Example:
compil32 /wizard "MyProg Script Wizard" "c:\temp.iss"
As shown in the example above, wizard names and filenames that include spaces must be enclosed in quotes.

Running the wizard from the command line does not suppress any error messages. The Setup Script Wizard will return an exit code of 0 if there was no error and additionally it will save the generated script file to the specified filename, 1 if the command line parameters were invalid, or 2 if the generated script file could not be saved. If the user cancelled the Setup Script Wizard, an exit code of 0 is returned and no script file is saved.
Saludos
Responder Con Cita
  #3  
Antiguo 18-04-2012
alquimista alquimista is offline
Miembro
 
Registrado: ene 2008
Posts: 203
Poder: 17
alquimista Va por buen camino
Vamos que tendre que crear el script a mano y hacer una llamada con
ShellExecute o similar. Me imagino que habra que añadir al directorio todas las dll de INno setup.

Gracias, por la respuesta tan ràpida.
A ver si me apaño
Responder Con Cita
  #4  
Antiguo 19-04-2012
alquimista alquimista is offline
Miembro
 
Registrado: ene 2008
Posts: 203
Poder: 17
alquimista Va por buen camino
Smile

Gracias por la ayuda...
Ya he creado el script desde delphi y ejecutado el compilador sin problemas.

Código Delphi [-]
 try
    Script := TStringList.Create;
    Script.LoadFromFile(strdirapp+'test.iss');
    INx:=Script.IndexOf('[Files]');
  ....
Localizo la sección [Files] e inserto a partir del Indice Inx los archivos a añadir en el script

Luego he utilizado una función de Delphi al limite EjecutarYEsperar
Código Delphi [-]
  
 tmpstr:= directorioaplicacion+'compil32 /cc "script.iss"';
 if EjecutarYEsperar(tmpstr,SW_SHOWNORMAL)=0 then
       //Mensaje de OK
         else
         //mensaje fallo
//Abro la carpeta donde se ha generado el instalador
ShellExecute(Handle,'explore',Pchar(directorioaplicacion+'inst'),'','',SW_SHOWNORMAL);

Si alguien necesita ayuda que lo diga
Responder Con Cita
Respuesta



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
Error al ejecutar instalador creado con Inno Setup cloayza Varios 6 01-09-2011 13:51:52
Inno Setup correr un instalador afflictedd2 MySQL 2 08-12-2007 20:14:10
Instalador con Inno Setup jouls Varios 1 04-07-2007 21:12:03
¿Cómo conecto las tablas de paradox para crear un instalador con Inno Setup?? nuri Varios 4 08-08-2005 18:56:36
Inno Setup Icono del instalador Descendents Varios 0 12-11-2003 13:39:59


La franja horaria es GMT +2. Ahora son las 17:49:35.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi