A simple tip to track changes is to create a registry key under "HKLM\Software\
By creating these keys, it becomes very simple to create logic in DS deployment scripts to make decision trees for future deployments and upgrades. This is also helpful for future auditing.
REG (REG /? from a DOS prompt to get help) is a magnificent tool to add registry entries with through DOS and it’s built into XP SP2. It can also be used to Query your key. Vbscript uses RegWrite and RegRead to perform the same actions.
Good luck with your new tracking options!
@echo offsetlocalreg query HKLM\SOFTWARE\Microsoft\Devdiv\VC\Servicing\8.0\RED\1033 /v InstallerTypeIF ERRORLEVEL 1 ( echo VCREDIS is not installed, installing... msiexec.exe /package \\server\share\vcredist.msi /qn echo VCREDIS is installed now. ) ELSE ( echo VCREDIS is installed already )GOTO :EOF