title: Checking registry value on .bat
body: <p>I need to check the value of a registry key and if the value is 12, go to label "exit", if 11 go to label "exiSt". What am I doing wrong below?</p>
  
  <pre><code>@echo off
  
  reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\2C58473D30CCBEE4B9AF1E04A90EA0C6\InstallProperties  /v DisplayVersion
  
  for /f "tokens=2" %i in ('reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\2C58473D30CCBEE4B9AF1E04A90EA0C6\InstallProperties /v DisplayVersion') do (if %i  == "12.5.2000.01063" goto exit if %i == "11.1.0.07015"  goto exiSt)
  
  :exit
  
  Echo exit
  
  :exiSt
  
  Echo continue script bellow
  </code></pre>