/////////////////////////////////////////////////////////////////////////////// // // FUNCTION: OnEnd // // EVENT: End event is the last event. It is not sent if the installation // has been aborted. In this case Abort event is sent // /////////////////////////////////////////////////////////////////////////////// function OnEnd() STRING svDir; begin svDir = "Dir"; if (LaunchApp(TARGETDIR^svDir^'aaa.exe',"") < 0) then //MessageBox("Load Error !", INFORMATION); endif; end;
第一个问题,在function showDialogs()中加函数
LaunchApp(szCommand,szCmdLine)也可以用LaunchAppWait
//
// FUNCTION: OnEnd
//
// EVENT: End event is the last event. It is not sent if the installation
// has been aborted. In this case Abort event is sent
//
///////////////////////////////////////////////////////////////////////////////
function OnEnd()
STRING svDir;
begin
svDir = "Dir";
if (LaunchApp(TARGETDIR^svDir^'aaa.exe',"") < 0) then
//MessageBox("Load Error !", INFORMATION);
endif;
end;