anchor.diff:  ::::::::::::
   :vmware
   ::::::::::::
  -if defined ProgramFiles(x86) (
  +if "%PROCESSOR_ARCHITECTURE%" == "x86" (
  +  set VMWARE_TOOLS_SETUP_EXE=setup.exe
  +  set VMWARE_TOOLS_PROGRAM_FILES_DIR=%ProgramFiles(x86)%\VMware
  +  echo ==^> Detected virtualization platform ^(x86^): VMware
  +) else (
     set VMWARE_TOOLS_SETUP_EXE=setup64.exe
  -) else (
  -  set VMWARE_TOOLS_SETUP_EXE=setup.exe
  -)
  +  set VMWARE_TOOLS_PROGRAM_FILES_DIR=%ProgramFiles%\VMware
  +  echo ==^> Detected virtualization platform ^(x64^): VMware
  +)
  +
   for %%i in ("%VMWARE_TOOLS_TAR_URL%") do set VMWARE_TOOLS_TAR=%%~nxi
   set VMWARE_TOOLS_DIR=%TEMP%\vmware
   set VMWARE_TOOLS_TAR_PATH=%VMWARE_TOOLS_DIR%\%VMWARE_TOOLS_TAR%
   set VMWARE_TOOLS_ISO=windows.iso
  +echo ==^> Installing the VMware tools with directory %VMWARE_TOOLS_DIR%
  +
   mkdir "%VMWARE_TOOLS_DIR%"
   pushd "%VMWARE_TOOLS_DIR%"
   set VMWARE_TOOLS_SETUP_PATH=
  +
   :vmware_tools_setup_path_search
   @for %%i in (%PACKER_SEARCH_PATHS%) do @if not defined VMWARE_TOOLS_SETUP_PATH @if exist "%%~i\VMwareToolsUpgrader.exe" set VMWARE_TOOLS_SETUP_PATH=%%~i\%VMWARE_TOOLS_SETUP_EXE%
   if defined VMWARE_TOOLS_SETUP_PATH goto install_vmware_tools
  
positive.code: set SEVENZIP_EXE=
  for /r %%i in (7z.exe) do if exist "%%~i" set SEVENZIP_EXE=%%~i
  if not exist "%SEVENZIP_EXE%" echo ==^> ERROR: Failed to unzip "%SEVENZIP_PATH%" & goto return1
  set SEVENZIP_DLL=
  for /r %%i in (7z.dll) do if exist "%%~i" set SEVENZIP_DLL=%%~i
  if not exist "%SEVENZIP_DLL%" echo ==^> ERROR: Failed to unzip "%SEVENZIP_PATH%" & goto return1
  
negative.code: ::::::::::::
  :hyperv
  ::::::::::::
  echo ==^> Detected virtualization platform: HyperV
  
  for /F "usebackq tokens=3,4,5" %%i in (`REG query "hklm\software\microsoft\windows NT\CurrentVersion" /v ProductName`) do set GUEST_OS=%%i %%j %%k
  
  set GUEST_OS
  