Run this command, replacing D: with your actual drive letter:

Note: Revert this registry key after installation to avoid future confusion.

The Deployment Image Servicing and Management (DISM) tool is the standard professional method for offline deployment.