虚幻引擎编译GenerateProjectFiles.bat 报错找不到 NuGetPackages 地址

我之前是采用 Visual Studio 2019 进行开发工作,后面转入了 Visual Studio 2022。我删除了 VS 2019,发现 VS 2019 的 Shared 没有成功删除,我进行了手动删除。
随后编译 UE 引擎出现了错误,我删除了 UE引擎 选择 重新安装,但在 GenerateProjectFiles.bat 环节报错:找不到 C:Vistual Studio 2019/Shared/NuGetPackages。我重新创建了这个目录 但是我不希望这个空目录占用我的存储,我电脑当前有 Vistual Studio 2022/Shared/NuGetPackages。请问有什么方法可以修改 GenerateProjectFiles.bat 的NuGetPackages 地址?
感谢各位给予的帮助!

I used to use Visual Studio 2019 for development work, and then transferred to Visual Studio 2022. I deleted VS 2019 and found that the Shared of VS 2019 was not deleted successfully, so I manually deleted it.
Then compile UE engine appear a mistake, I deleted the UE reinstall engine choice, but in GenerateProjectFiles. Bat link error: could not find C: Vistual Studio 2019 / Shared/NuGetPackages. I create the directory But I don’t want the empty directory to take up my store, my computer currently has Vistual Studio 2022 / Shared/NuGetPackages. Is there any way to modify the NuGetPackages address of generateProjectFiles.bat?
Thank you for your help!

###1.关闭VS
删除C:\Users\xxx\AppData\Roaming\NuGet下的整个nuget.config文件

2、以管理员模式开启powershell 运行以下命令

reg add “HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client” /v DisabledByDefault /t REG_DWORD /d 0 /f /reg:32
reg add “HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client” /v DisabledByDefault /t REG_DWORD /d 0 /f /reg:64
reg add “HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client” /v Enabled /t REG_DWORD /d 1 /f /reg:32
reg add “HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client” /v Enabled /t REG_DWORD /d 1 /f /reg:64