Ver Mensaje Individual
  #2  
Antiguo 27-04-2012
Avatar de gatosoft
[gatosoft] gatosoft is offline
Miembro Premium
 
Registrado: may 2003
Ubicación: Bogotá, Colombia
Posts: 835
Reputación: 24
gatosoft Va camino a la fama
Hola elardk, no he manejado nunca esa herramienta, pero tengo entendido que dentro de las opciones de instalación "Installation Actions" hay tres opciones: Check, Before Install y after Install, las cuales aceptan Scripts en PASCAL, para hacer tus validaciones y determinar si abortas uno o mas pasos...

La siguiente es una muestra del manual sobre "pascal Scripting"
Código Delphi [-]
[.Code]
var
  MyProgChecked: Boolean;
  MyProgCheckResult: Boolean;

function MyProgCheck(): Boolean;
begin
  if not MyProgChecked then begin
    MyProgCheckResult := MsgBox('Do you want to install MyProg.exe to ' + ExtractFilePath(CurrentFileName) + '?', mbConfirmation, MB_YESNO) = idYes;
    MyProgChecked := True;
  end;
  Result := MyProgCheckResult;
end;

function MyDirCheck(DirName: String): Boolean;
begin
  Result := DirExists(DirName);
end;


Espero que te sirva...
Responder Con Cita