The following script will return the Exit Code of application installation (legasy setup application /Windows installer application).
'******************************************* Dim oShell, MyApp, i Set oShell = CreateObject("WScript.Shell") ' MyApp is the application path with silent switch. ' Use appropriate silent switches as per the application MyApp = """C:\MyApplication\Setup.exe"" /Q" i = 0 i = oShell.Run(MyApp, 1 ,True) WScript.Echo "Exit Code is: " & (i) 'Uncomment the following line of code while using this script in software delivery and comment the above line 'WScript.Quit(i) Set oShell = Nothing '*******************End Of Code**************
Thanks, Sid