'ManageEngine Desktop Central 'Script to install Archive SW '====================================================== on error resume next Set WshShell = WScript.CreateObject("WScript.Shell") basepatch = "dotnetfx45_full_x86_x64.exe /q /norestart" patch="SlackSetup.exe /S" 'Get the Agent Installed directory from the Registry location details '==================================================================== Err.Clear checkOSArch = WshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\Version") If Err.Number = 0 then 'wscript.echo "Don't Install" returncode= 0 else returncode=WshShell.Run(basepatch, 0, TRUE) 'wscript.echo "Install Dot Net" End if if returncode <> 0 then returnValue = returncode else returnValue=WshShell.Run(patch, 0, TRUE) 'wscript.echo "Install Slack" End if Wscript.Quit returnValue 'Wscript.Echo checkOSArch