Hi,
I'm trying to install "BuildTools for Visual Studio 2019" within my installer.
This is normaly done by running the "Visual Studio Installer" with specific arguments.
It works inside my test VM when I run the original Installer from Microsoft with these arguments from the Windows Console:
"vs_buildtools.exe --add Microsoft.VisualStudio.Workload.MSBuildTools --quiet --wait --norestart".
When I run it with the same arguments within my own Installer it does not work.
In the logs from the Microsoft Installer I see the following error:
It seems that my own installer is blocking the BuildTools-Installer. Similar to the problem with .NET Framework described here: https://www.advancedinstaller.com/user- ... uestion124
I tried running the BuildTools-Installer as "feature-based" "and post-install" prerequisite. Both with no success.
I had a similar problem with the SQL Server Installer. The solution was running the SQL Server Installer with the argument "/SkipInstallerRunCheck". The Build Tools Installer seems not to support this argument.
I'm searching for a solution to run "BuildTools for Visual Studio 2019" within my installer, if I select a specific feature.
Is there anything I am missing to achieve this?
Is there a workaround?
Thanks for your help,
Andreas
Edit: BuildTools shall only be installed, if a specific feature is selected.