cd /d "AwesomeMod Updater"echo.%ver% >version.txt
echo.%ver% >"%data%\AwesomeMod Updater\version.txt"
if "%loc%"=="nl-NL" set "locn=De Sims 3"if "%loc%"=="fr-FR" set "locn=Les Sims 3"if "%loc%"=="de-DE" set "locn=Die Sims 3"if "%loc%"=="pt-PT" set "locn=Os Sims 3"if "%loc%"=="es-ES" set "locn=Los Sims 3"
for /f "delims=" %%a in ('dir /b /a:d "%docs%\Electronic Arts"') do ( if exist "%docs%\Electronic Arts\%%a\Mods\Resource.cfg" ( set "locn=%%a" ) )
set archtype=if "%PROCESSOR_ARCHITECTURE%"=="AMD64" set archtype=Wow6432Node\if "%PROCESSOR_ARCHITEW6432%"=="AMD64" set archtype=Wow6432Node\
for /f "tokens=3* delims= " %%A in ('reg query "HKLM\Software\[b]%archtype%[/b]Sims\The Sims 3" /v "Install Dir"') do set game=%%B