Jeg formoder, at %ProgramFiles%
peger på den forkerte mappe.
Prøv @echo %ProgramFiles%
fra en fil for at se, hvilken mappe den kigger i. Du skal sikre dig, at den ikke er i Program Files x86
mappe.
Jeg fandt også dette link, måske det kan hjælpe dig?
Kilde:hvordan får du programfiler x86 env variabel?
REDIGER
For at være sikker, kan du prøve det med den fulde sti i stedet for systemvariablen?
Sådan,
@echo off
echo Installing MySQL Server. Please wait...
msiexec /i "mysql-installer-community-5.6.14.0.msi" /qn
echo Configurating MySQL Server...
"C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqlinstanceconfig.exe"
-i -q ServiceName=MySQL RootPassword=mysql ServerType=DEVELOPER
DatabaseType=MYISAM Port=3306 Charset=utf8
echo Installation was successfully
eller endda
@echo off
echo Installing MySQL Server. Please wait...
msiexec /i "mysql-installer-community-5.6.14.0.msi" /qn
echo Configurating MySQL Server...
cd "C:\Program Files\MySQL\MySQL Server 5.6\bin\" <-- set folder first, then run executeable
mysqlinstanceconfig.exe
-i -q ServiceName=MySQL RootPassword=mysql ServerType=DEVELOPER
DatabaseType=MYISAM Port=3306 Charset=utf8
echo Installation was successfully