1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
[Run]
Filename: "{sys}\cmd.exe"; Parameters: "/C ""{pf32}\Firebird\Firebird_2_0\bin\instclient.exe"" install gds32 > {tmp}\logfb.txt"; Flags: runhidden skipifdoesntexist waituntilterminated; AfterInstall: LogOutput('Installation du client', '{tmp}\logfb.txt');
[Code]
procedure LogOutput(aTitle :string; aFileName :string);
var
Output :AnsiString;
begin
if LoadStringFromFile(ExpandConstant(aFileName), Output) then
Log(aTitle +' = ' +Output);
end;
...
ShellExec('open',ExpandConstant('{sys}\cmd.exe'),ExpandConstant('/C sc.exe stop FirebirdGuardianDefaultInstance > {tmp}\logfb.txt'),'', SW_HIDE, ewWaitUntilTerminated, ErrorCode);
LogOutput('Stop Guardian', '{tmp}\logfb.txt'); |