Error installing XAMPP: Windows cannot find -n

chainboost picture chainboost · Sep 6, 2016 · Viewed 28.2k times · Source

I've been trying to install XAMPP for quite some time now, but every time, at the end of the installation, it says:

Windows cannot find "-n"

And after that, it says:

Problem running post-install step. Installation failed (php.exe) Perhaps you have to install Visual C++ 2008 package.

I have Visual C++ 2008 package and it still says this. What do I do now? I have Windows 10 64-bit for anyone wondering.

Answer

chainboost picture chainboost · Sep 6, 2016

I installed it in the root of my C: drive and it worked. Strange that previously I could just install it in my program files folder and that everything works...