From 21f3b682c5ad91c8862157d7487ae534c5df0fb3 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 18 Jun 2020 14:16:56 +0800 Subject: [PATCH] wfvm: get the visual studio installer to work It is chock full of bugs and also the instructions on the microsoft website are wrong. --- artiq-fast/wfvm/layers/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/artiq-fast/wfvm/layers/default.nix b/artiq-fast/wfvm/layers/default.nix index 0e1b5b3..54e4285 100644 --- a/artiq-fast/wfvm/layers/default.nix +++ b/artiq-fast/wfvm/layers/default.nix @@ -122,8 +122,9 @@ in '' echo ${cache} ln -s ${cache}/vslayout vslayout - win-put vslayout . - win-exec ".\vslayout\vs_community.exe --quiet --noweb --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --lang en-US" + win-put vslayout /c:/ + echo "Running Visual Studio installer" + win-exec "cd \vslayout && start /wait vs_Community.exe --passive --wait && echo %errorlevel%" ''; }; }