'ManageEngine Desktop Central Agent 'Script to nitro_pdf_reader '=================================== 'on error resume next Set WshShell = WScript.CreateObject("WScript.Shell") filename = WScript.Arguments.Item(0) location = WshShell.ExpandEnvironmentStrings("%WINDIR%\TEMP") 'Extraction of the nitro_pdf_reader.exe returnValue =WshShell.Run(Chr(34)&filename&Chr(34)&" /EXTRACTMSI:"&Chr(34)&location&"\nitro_pdf_reader.msi"&Chr(34),0,TRUE) 'Once the extraction is sucess ,install msi '============================================================================== if returnValue <> 0 Then Wscript.Quit returnValue else returnValue=WshShell.Run("%windir%\system32\msiexec.exe /i "&Chr(34)&location&"\nitro_pdf_reader.msi"&Chr(34)&" /qn /norestart", 0, TRUE) WScript.Echo returnValue if returnValue <> 0 Then Wscript.Quit returnValue end if end if WScript.Echo returnValue 'WScript.Echo "Error Occurred while installing ems Charts" Wscript.Quit returnValue