I am creating a batch file which will decide whether to install .NET framework 4.5.2 based on following registry key value.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\Release
When .NET framework 4.5.2 is installed its value is #379893.
When .NET framework is not installed this key is not present. I would like the batch file in following format.
If Above key is present on machine - check its value. If value is less than 379893 GOTO : InstallNetFramework
If above key is present on machine but its value is more than 379893 GOTO :DoNotInstallAnything
If above key is not present on machine GOTO : InstallNetFramework