I hit similar errors to others when attempting a fresh install on a Win10 laptop. Sharing these notes, hopefully they'll save others a few hours of reinstalling and searching for answers.
SYMPTOM: Fresh install of XAMPP v3.2.4 on Windows 10 64-bit encounters errors when trying to start Apache and PHP from Control Panel or via services
ISSUE #1: The installer doesn't prefix the installation filepath into the many .conf and .ini files, so execution cannot find components
ISSUE #2: The current version of PHP requires Microsoft Visual C++ Redistributable for Visual Studio 2019 (look under "Other Tools and Frameworks" here https://visualstudio.microsoft.com/downloads/)
Standard installation
1. Install to your chosen location e.g. Z:\Progs\xampp
2. Run xampp-control.exe as administrator
3. Errors encountered when starting Apache or MySQL, either with [>] buttons or as installed services
Fix missing prefixes in Apache .conf files
4. Find all .conf files in Z:\Progs\xampp (32 files)
5. Edit all .conf files in Notepad++
6. Find and replace "/xampp/" with "Z:/Progs/xampp/" (swap your install location's backslashes for forwardslashes, make sure to include the last "/")
EXCEPT row 253 <Directory "Z:/progs/xampp/htdocs"> which should be fully declared already. If you accidentally replace this to "Z:/progsZ:/progs/xampp/htdocs", it will prevent access to the htdocs root from your browser and give a 403 Forbidden error
7. Save all and close
Fix missing prefixes in PHP .ini file
8. Edit Z:\Progs\xampp\php\php.ini
9. Find and replace "\xampp\" with "Z:\Progs\xampp\" (all backslashes, make sure to include the last "\")
10. Save and close
Fix missing prefixes in MySQL .ini file
11. Edit Z:\Progs\xampp\mysql\bin\my.ini
12. Find and replace "/xampp/" with "Z:/Progs/xampp/" (swap your install location's backslashes for forwardslashes, make sure to include the last "/")
13. Save and close
Ensure Microsoft Visual C++ Redistributable for Visual Studio 2019 is installed
14. Goto https://visualstudio.microsoft.com/downloads/
15. Scroll down to "Other Tools and Frameworks"
16. Download and install (14.6MB)
Note: the installation warns against installing to C:\Program Files (x86) but this was a "red herring" when installing elsewhere - you don't need to alter Component Services with the steps above
TPO