Hello,
to simplify the management of build server, I try to make copy of the official version of devenv inside "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional" and then launch compilation from that folder (I need devenv, because I have trouble with MSBuild (cf. https://developercommunity.visualstudio.com/t/msbuild-launch-multiple-times-on-postbuildevent-wh/1378218) ).
My first try was going well. But after few test, in different folder, I have an error where Devenv.exe tell me to reinstall the product (one or more components missing).
Here part the log file I retrieve :
<entry>
<record>26</record>
<time>2021/04/26 09:02:44.211</time>
<type>Error</type>
<source>VisualStudio</source>
<description>Failure calling util_CheckMigrationRequired.</description>
<hr>80070057 - E_INVALIDARG</hr>
</entry>
I do not understand this error. When I launch in SafeMode, it works, but it cannot be used to make the compilation.
Is there a workaround, registry entry or file to update/remove to be able to launch devenv.exe from multiples folder.
When using build server, it could be usefull to have different version of devenv, depending of the release/main branch (like having devenv.exe 16.4 and 16.8).
Of course, a product Visual Studio product key is present on the server, and as least one official version of Devenv is present.