:
    ,    /  .     UAC.        ,   .

 :

   
launcher.exe [] /l <_> [<____>]

  
launcher.exe [] /c<>

:

       cfg-:
/s<ProcessId> -        Process ID;  5 ,    - .   Process ID -    . .
   Process ID  ,  launcher  : /sPARENT.
   , launcher     .
/S<ProgramName> -   ,    ;   ,  ,    .
   exe,    ,     .    ,    ,   
 exe    (    ).
/w -    
/u<username> -  ,     ;      ,     . ..       ,   ,       ,      .
/p<password> -  ,      ;     (     -  );      ,      (" -> \"),       .
/k<lock_dir> - ,     ;      -  ,     -    <lock_dir> -  ,   athena.exe.  -       ,       ( ),      .
/m<mark_name> -  ,   Ib10_install.    8   Ib8_install.       .
/L<log_filename> - ;    ,    launcher.log     .
/a -  ,   launcher,     .     ,      ,   launcher.
/e -     .        ,    .               ,    .
/n -     ,        5 (access denied)  .    /e  /u.        ,    retcodeAccessDenied  retcodeCancel.
/i -   .  launcher,     (..     /l).  asuser  .

     (   cfg-    )
/d<startup_directory> - ,    ;      ( ,    cfg)

 :
retcodeSuccess                =  0; //  
retcodeAlreadyLocked          =  1; //   
retcodeProcessWaitTimeout     =  2; //    ,   ,    
retcodeAuthenticationError    =  3; //   ; ,    ,       ,   ?
retcodeExecuteError           =  4; //   
retcodeWrongCommandLine       =  5; //    
retcodeWrongCommandFile       =  6; //   
retcodeError                  =  7; // -  ;     ,   -  
retcodeNoCommand              =  8; //   
retcodeAccessDenied           =  9; //   
retcodeCancel                 = 10; //      UAC   

    /w,    launcher.exe   2000 + ___
(    ,    , ..     )

 :
[Command0]
Type=Start
Exe=d:\test\platform\setup.exe
Folder=d:\test
Param=/s /f1d:\test\platform\setup.iss

[Command1]
Type=Wait
Process=ikernel
Timeout=300

[Command2]
Type=Start
Exe=d:\test\ibw10-applications.exe
Folder=d:\test
Param=
PathFromExe=1
asuser=1

// ,      /k<lock_dir> 
[Command3]
Type = Lock
Lock = 0

(PathFromExe -       exe- (    ))
(asuser -   ,    ;    -   UAC,       ).

(  launcher /w /u<...> /p<...> /cd:\test\test.cfg )
 =   INI- (     , ,    ;     )
Type    ( Start  Wait)
Start: Exe -   , Folder -  , Param -   

Wait: Process - ,   ; Timeout - ,  ,  ;   ,        retcodeProcessWaitTimeout (2)

     (   ,    )(1  ;   )

// Process ID athena.exe
 : __
	 _: 
	.("kernel32.dll")
	 : 
	.("GetCurrentProcessId":STDCALL, RETURN:UINT:)
	 = 
_

//  
 _
	 : _ = "/u""Athlon"" /p""faserx"" /w"
	_ = _ + " /s" + (__)
    //    InstallShield;
	 : _ = """D:\install\AthenaSetup\Media\Default\Disk Images\Disk1\setup.exe"" -s -f1""d:\install\setup.iss""" 
	// :     /u (   ),  /s, /p
	//    -    deadlock
	 :  = _("d:\test\launcher dir\launcher.exe " + _ + " /l " + _, ".", )
	()
_


	_
	//_({"server_execute.ibx"}(__), )


 :
// server_execute.ipp

// _  ,       ,   ;     ,    athena.exe   
 (: _)
	 : _ = "/u""Athlon"" /p""faserx"" /w"
	 (_ > 0) 
		_ = _ + " /s" + (_)
	_
    //    InstallShield 
	 : _ = """D:\install\AthenaSetup\Media\Default\Disk Images\Disk1\setup.exe"" -s -f1""d:\install\setup.iss""" 
	//    -    deadlock
	 :  = _("""d:\test\launcher dir\launcher.exe"" " + _ + " /l" + _, ".", )

