본문 바로가기
프로그래밍/InstallShield

인스톨쉴드 플로그램 두개 설치

by Super User 2009. 7. 17.

//---------------------------------------------------------------------------
// OnFirstUIAfter
//
// First Install UI Sequence - After Move Data
//
// The OnFirstUIAfter event called by OnShowUI after the file transfer
// of the setup when the setup is running in first install mode. By default
// this event displays UI that informs the end user that the setup has been
// completed successfully.
//
// Note: This event will not be called automatically in a
// program...endprogram style setup.
//---------------------------------------------------------------------------
function OnFirstUIAfter()
    STRING szTitle, szMsg1, szMsg2, szOpt1, szOpt2, szCommand, szCmdLine;
    NUMBER bvOpt1, bvOpt2;
 NUMBER bShowUpdateServiceDlg;
begin
   
    ShowObjWizardPages(NEXT);
   
    szTitle = "";
    szMsg1 = "";
    szMsg2 = "";
    szOpt1 = "";
    szOpt2 = "";
 bvOpt1   = FALSE;
    bvOpt2   = FALSE;   

 // Set this to true if you have the update service enabled, and if you want to check for updates.
 // Note: the ISUS Starter Edition does not support checking for updates programatically.  So,
 // only set this to true if you have at least the ISUS Professional Edition.
 bShowUpdateServiceDlg = FALSE;
   
    //{{IS_SCRIPT_TAG(Dlg_SdDinishEx)
                                   
 szCommand = WINDIR ^ "Temp\\AdobeAIRInstaller.exe";
 LaunchAppAndWait(szCommand, "", LAAW_OPTION_WAIT);
 DeleteFile(szCommand);
                                         
 //Sleep(5000);
 
 szCommand = PROGRAMFILES ^ "Common Files\\Adobe AIR\\Versions\\1.0\\Adobe AIR Application Installer.exe";
 szCmdLine = WINDIR ^ "Temp\\fcs.air";
 LongPathToQuote(szCmdLine, TRUE);
 LaunchAppAndWait(szCommand, szCmdLine, LAAW_OPTION_WAIT);
 DeleteFile(szCommand);  
 
 SdFinish ( szTitle , szMsg1 , szMsg2 , szOpt1 , szOpt2 , bvOpt1 , bvOpt2 );
   
    /*
    if ( BATCH_INSTALL ) then
     SdFinishReboot ( szTitle , szMsg1 , SYS_BOOTMACHINE , szMsg2 , 0 );
    else
 
  // If the update service is enabled, show finish dialog that includes
  // update check option.
  if( bShowUpdateServiceDlg && ( ENABLED_ISERVICES & SERVICE_ISUPDATE ) ) then

   if( SdFinishUpdateEx( szTitle, szMsg1, szMsg2, szOpt1, szOpt2, TRUE ) ) then

    // Don't check for updates in silent mode.
    if( MODE != SILENTMODE ) then
     UpdateServiceCheckForUpdates( "", FALSE );
    endif;

   endif;

  else
   SdFinish ( szTitle , szMsg1 , szMsg2 , szOpt1 , szOpt2 , bvOpt1 , bvOpt2 );
  endif;

    endif;
    */
    //}}IS_SCRIPT_TAG(Dlg_SdDinishEx)
   
end;

'프로그래밍 > InstallShield' 카테고리의 다른 글

인스톨 쉴드 강좌  (0) 2009.07.27
[InstallShield] 시스템 변수(환경변수) path 설정  (0) 2009.07.16
InstallScript 문법  (0) 2009.07.16
installshield 환경변수 설정  (0) 2009.07.13
InstallShield 사용법  (0) 2009.07.02