Error reporting on a batch file

How do I get this to report if it was successful on the installation?

@echo off
setlocal enabledelayedexpansion

set GUIDs=DDF96E66-E39B-4A69-B776-2DE49EBCAFBD D7D3F00A-638B-41DE-A2A3-FFC6EF034783 B1A6CB20-C032-4228-940F-AC3BC9BF6B3E 3EB41C0B-00EF-4C8B-9FF7-FF252E2F4E33 D8A08493-2F06-4EB2-A636-4392991981AB 
for %%a in (%GUIDs%) do (
     reg.exe query "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{%%a}" >NUL 2>&1
      if not errorlevel 1 (
            echo Uninstalling %%a
            start "Uninstalling %%a" /wait msiexec.exe /X{%%a} /quiet

:::8x8 VOD Latest Version Installation
::: Copy the latest version of the VOD to the path below and change the msi filename
start "Installing VOD" /wait msiexec.exe /i \\\SYSVOL\\scripts\8x8\VOD_5_6_0.msi /qn
::: Please wait for the time to finish

timeout 5

taskkill /im "8x8 - Virtual Office.exe"

:::Launching 8x8
Timeout 5

"C:\Program Files (x86)\8x8 Virtual Office\8x8 - Virtual Office\8x8 - Virtual Office.exe"

Open in new window

I'm thinking something like this

I mean is it easy or?

LVL 21
Alex GreenProject Systems EngineerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
You need to check for errorlevel after line 15, something like
start "Installing VOD" /wait msiexec.exe /i \\\SYSVOL\\scripts\8x8\VOD_5_6_0.msi /qn
if not errlorlevel 1 echo %date% %time% %Computername% - Installation succeeded >> \\\logs\InstallVOD.log

Open in new window

For error information you would have to allow a lot of logging, and collect the different logs of reg.exe, msiexec etc. somewhere.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Alex GreenProject Systems EngineerAuthor Commented:
It's only the installation I'm concerned about, I just need to know if it worked or not. The reg.exe bit isn't of any real concern tbh

That would appear to make sense (as always Qlemo) thank you for your help, again... :D

Have a great day
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Batch

From novice to tech pro — start learning today.