/build/static/layout/Breadcrumb_cap_w.png

Visual Studio 2019 - Managed install Using a LAYOUT File?

Previously, we were deploying visual studio by using a batch file to call to a seperate file server. However, due to changes in our environment this is the first time I'm trying to use Microsofts new highly convoluted setup system for Visual Studio Professional installation located fully on the K1000/SMA...

That being said: I'm trying to install Visual Studio Professional 2019 to PC's using a Managed Install / Label for Deployment.

When configuring VS2019 for offline deployment, I created a layout file of just the components we need selected. Those components are downloaded and located in a 3.4gb zip file, that has been added to client drop and then associated with the inventoried Software with the managed install created, as one would normally.

However, I need to call on the file "Layout.json" in the install command

The working command for local install is, for example: "vs_professional.exe --passive --in c:\pathtofiles\Layout.json" - Calling the full path to the layout file works fine locally on the PC. While calling to "vs_professional.exe --passive --in Layout.json" does not. Boostrapper can not find the layout.json unless it's full path is designated.

I would assume the KACE "Override default installation" command would then be "vs_professional.exe --passive --in ${KACE_DEPENDENCY_DIR}\Layout.json" but the layout.json file cannot be found by the bootstrapper (vs_professional.exe).
I have tried creating a batch file to call to the Kace Dependency dir as well, but again, layout.json is not found. But if I navigate to %Appdata%\KACE\downloads\XXXX\the layout.json file is plainly there.

I've been bashing my head against my desk for 2 days on this. Any thoughts?




0 Comments   [ + ] Show comments

Answers (2)

Posted by: rileyz 3 years ago
Red Belt
0

You should be able to get batch to call the installer using the path, have you tried usingĀ %~dp0.

https://stackoverflow.com/questions/5034076/what-does-dp0-mean-and-how-does-it-work#:~:text=The%20%25~dp0%20(that%27s%20a,after%20the%20batch%20file%20name.


Or you could just go all out , over engineer it and use the PowerShell App Deployment Toolkit.

Posted by: jasmeet10 3 years ago
White Belt
0

Hello


First, update the Visual Studio installer:

vs_enterprise.exe --quiet --update


Then, update the Visual Studio application itself:


vs_enterprise.exe update --installPath "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise" --quiet --wait --norestart

This is my computer path, you have to choose your path

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ