Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Get exit code for .exe launched from Custom Action


1 reply to this topic

Amarjeet

Amarjeet
  • Full Members
  • 77 posts

Posted 05 May 2015 - 15:59

Hi

 

I am trying to install .NET framework 4.5.2 ( its executable) from a custom action in a patch.

 

I am successfully able to launch the installation. How to get exit code for this installation. I would like to use exit code from this installation to control further installation.

 

Thanks in advance.

 

Regards,

 

Amarjeet



gmpk82

gmpk82
  • Full Members
  • 40 posts

Posted 09 June 2015 - 07:33

I think you are using "LaunchAppAndWait" function to install .net framework, see below code you can get some idea out of it.

 

 

 
         LaunchAppAndWait("your input", "your input", LAAW_OPTION_WAIT | LAAW_OPTION_HIDDEN);                                
         nReturnCode = NULL;
         nReturnCode = LAAW_PARAMETERS.nLaunchResult;
 
         if ( nReturnCode = 0)then
                  //success
         else
                   //fail
         endif;