Visual Studio 2017 - Create an offline installation through network share and Ansible Playbook2019 Community Moderator ElectionVisual Studio 2017 install breaks Visual Studio 2015 ASP.NET Core Projectsvisual studio 2017 install break : it not get startVisual Studio 2017 fails to install offline with “Unable to download installation files”Visual Studio 2017, creating offline installer, includeRecommended/includeOptional switches doesn't workR Tools for Visual Studio not installing properly in VS2017Visual Studio 2017 dependency validation project on build serverHow to update Visual Studio 2017 Build Tools from powershell with vs_installer.exeVisual Studio 2017 Pro forgot it is installedVisual Studio 2017 installer won't run after extracting to tempHow to check the version of Visual Studio 2017 offline installer?

Why restrict private health insurance?

How to install round brake pads

What is Tony Stark injecting into himself in Iron Man 3?

Has a sovereign Communist government ever run, and conceded loss, on a fair election?

If sound is a longitudinal wave, why can we hear it if our ears aren't aligned with the propagation direction?

Either of .... (Plural/Singular)

What is the purpose of a disclaimer like "this is not legal advice"?

When an outsider describes family relationships, which point of view are they using?

How can I portion out frozen cookie dough?

Was it really inappropriate to write a pull request for the company I interviewed with?

Sampling from Gaussian mixture models, when are the sampled data independent?

(Codewars) Linked Lists-Sorted Insert

How do spaceships determine each other's mass in space?

Is it a Cyclops number? "Nobody" knows!

Can the Witch Sight warlock invocation see through the Mirror Image spell?

Why aren't there more Gauls like Obelix?

Create chunks from an array

How exactly does an Ethernet collision happen in the cable, since nodes use different circuits for Tx and Rx?

Why do phishing e-mails use faked e-mail addresses instead of the real one?

What should I do when a paper is published similar to my PhD thesis without citation?

Is there stress on two letters on the word стоят

Should we avoid writing fiction about historical events without extensive research?

I am the person who abides by rules, but breaks the rules. Who am I?

Help! My Character is too much for her story!



Visual Studio 2017 - Create an offline installation through network share and Ansible Playbook



2019 Community Moderator ElectionVisual Studio 2017 install breaks Visual Studio 2015 ASP.NET Core Projectsvisual studio 2017 install break : it not get startVisual Studio 2017 fails to install offline with “Unable to download installation files”Visual Studio 2017, creating offline installer, includeRecommended/includeOptional switches doesn't workR Tools for Visual Studio not installing properly in VS2017Visual Studio 2017 dependency validation project on build serverHow to update Visual Studio 2017 Build Tools from powershell with vs_installer.exeVisual Studio 2017 Pro forgot it is installedVisual Studio 2017 installer won't run after extracting to tempHow to check the version of Visual Studio 2017 offline installer?










0















I'm attempting to create an offline Visual Studio 2017 installation with network share and Ansible.



I'm having a hard time figuring out what exactly is going on since the installation loops(?) without much logging, the logs are often vague and more than often tells me that the bootstrapper is downloading files from Microsoft.



I'm wondering if there are easier ways to do this with Ansible.



I've used the following guides from Microsoft to try to make sense of things:



  • https://docs.microsoft.com/en-us/visualstudio/install/create-a-network-installation-of-visual-studio?view=vs-2017

  • https://docs.microsoft.com/en-us/visualstudio/install/automated-installation-with-response-file?view=vs-2017

Possibly problematic issue: https://github.com/MicrosoftDocs/visualstudio-docs/issues/1531



The setup:



I've created a network share that is available as so:
\ShareVisualStudio2017



The share has (currently) no restriction while testing, so that means "everyone" can read its content.



The share is populated by the following layout command



vs_enterprise.exe --layout \<server>ShareDevelopmentVisualStudio2017 --lang en-US --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Workload.Universal --add Microsoft.VisualStudio.Workload.NetWeb Microsoft.VisualStudio.Workload.Node --add Microsoft.VisualStudio.Workload.NetCrossPlat --add Microsoft.VisualStudio.Workload.NetCoreTools --includeRecommended


Updated the Response.json (in the share) to




"installChannelUri": "\<server>\Share\Development\VisualStudio2017\ChannelManifest.json",
"channelUri": "\<server>\Share\Development\VisualStudio2017\ChannelManifest.json",
"installCatalogUri": "\<server>\Share\Development\VisualStudio2017\Catalog.json",
"channelId": "VisualStudio.15.Release",
"productId": "Microsoft.VisualStudio.Product.Enterprise",
"add": [
"Microsoft.VisualStudio.Workload.ManagedDesktop;includeRecommended",
"Microsoft.VisualStudio.Workload.NativeDesktop;includeRecommended",
"Microsoft.VisualStudio.Workload.NetCoreTools;includeRecommended",
"Microsoft.VisualStudio.Workload.NetCrossPlat;includeRecommended",
"Microsoft.VisualStudio.Workload.NetWeb;includeRecommended",
"Microsoft.VisualStudio.Workload.Node;includeRecommended",
"Microsoft.VisualStudio.Workload.Universal;includeRecommended"
],
"addProductLang": [
"en-US"
]



The share is combined with the role:



- name: Install Visual Studio 2017 
win_package:
path: '\<server>shareDevelopmentVisualStudio2017vs_enterprise.exe'
state: present
product_id: Microsoft.VisualStudio.Product.Enterprise
channel_id: VisualStudio.15.Release
user_name: <DOMAIN><USERNAME>
user_password: <PASSWORD>
arguments:
# - --quiet
- --wait
- --norestart
# - --add Microsoft.VisualStudio.Workload.ManagedDesktop
# - --add Microsoft.VisualStudio.Workload.NativeDesktop
# - --add Microsoft.VisualStudio.Workload.Universal
# - --add Microsoft.VisualStudio.Workload.NetWeb Microsoft.VisualStudio.Workload.Node
# - --add Microsoft.VisualStudio.Workload.NetCrossPlat
# - --add Microsoft.VisualStudio.Workload.NetCoreTools
# - --includeRecommended


I'm running the playbook with the command with the verbose setting



ansible-playbook -i hosts utvClients.yaml -vvvv


Output



TASK [VisualStudio2017 : Install Visual Studio 2017] ******************************************************************************************************************************************************
task path: /mnt/d/dev/Ansible/roles/VisualStudio2017/tasks/main.yaml:2
Using module file /usr/lib/python2.7/dist-packages/ansible/modules/windows/win_package.ps1
<192.168.56.101> ESTABLISH WINRM CONNECTION FOR USER: Ansible on PORT 5986 TO 192.168.56.101
checking if winrm_host 192.168.56.101 is an IPv6 address
EXEC (via pipeline wrapper)


The bootstrapper log on the host in the path C:users\AppDataLocalTempdd_bootstrapper_.log says this:



Beginning of the log. Start Time: 3/6/2019 9:43:56 AM
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: Commandline arguments = --wait,--norestart,--path cache="\<server>shareDevelopmentVisualStudio2017",--env,_SFX_CAB_EXE_PACKAGE:C:UsersAnsibletyzrpvdy.v4j _SFX_CAB_EXE_ORIGINALWORKINGDIR:C:UsersAnsible
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: Parent process name = tyzrpvdy
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: Parent process product version = 15.9.28307.423
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: CampaignId =
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: ResponseId not available in 'vs_setup_bootstrapper.config'. Trying to parse filename.
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: loading config settings: -update --update --layout -offline --offline --locale --layout --originalworkingdir --installLayoutPath --env
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: DownloadURL = https://aka.ms/vs/15/release/installer
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: InstallLocation = C:Program Files (x86)Microsoft Visual StudioInstaller
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: OfflineFilePath =
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: LayoutLocation =
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: ExecutableArguments = /finalizeInstall install --in "C:ProgramDataMicrosoftVisualStudioPackages_bootstrappervs_setup_bootstrapper_201903060943571796.json" --norestart "--path cache="\<server>shareDevelopmentVisualStudio2017"" --locale en-US --activityId "d3c1a7c6-22ba-42af-9ce9-7ede1608e7be"
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: OSVersion = Microsoft Windows NT 10.0.17763.0
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: Starting to detect the existing VS and .Net...
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: Finished detecting the existing VS and .Net


First off: DownloadUrl is still set to aka.ms?
Am I not overriding it properly? Are there more things to consider?










share|improve this question
























  • Hi Verzada, it is recommended to use the aka.ms/vs/15/release/channel and please have a try with it, check it works or not.

    – Sara Liu - MSFT
    Mar 7 at 2:05












  • Hi Sara Liu. I'm not sure what you mean by using the url, can you please elaborate. I'm also made aware of the thread on GitHub github.com/MicrosoftDocs/visualstudio-docs/issues/1531 where lots of people are having problems installing Visual Studio 2017 through a network share

    – Verzada
    2 days ago











  • Hi, I found you update the Response.json with "channelUri": "\<server>\Share\Development\VisualStudio2017\ChannelManifest.json", it seems the default value is the aka link that I mentioned. BTW, since I am not familiar with ansible playbook, so may be I misunderstand your issue, sorry for this inconvenience. Exclude the ansible part, do you still meet any issues if install VS 2017 using the network share?

    – Sara Liu - MSFT
    2 days ago











  • @SaraLiu-MSFT Yeah, I'm having the same issue. But I'll test some more to see if there's anything I've forgotten to do. However, the goal is to create an offline installation with a network share, therefore I don't see why the installation should even use the aka.ms url.

    – Verzada
    2 days ago
















0















I'm attempting to create an offline Visual Studio 2017 installation with network share and Ansible.



I'm having a hard time figuring out what exactly is going on since the installation loops(?) without much logging, the logs are often vague and more than often tells me that the bootstrapper is downloading files from Microsoft.



I'm wondering if there are easier ways to do this with Ansible.



I've used the following guides from Microsoft to try to make sense of things:



  • https://docs.microsoft.com/en-us/visualstudio/install/create-a-network-installation-of-visual-studio?view=vs-2017

  • https://docs.microsoft.com/en-us/visualstudio/install/automated-installation-with-response-file?view=vs-2017

Possibly problematic issue: https://github.com/MicrosoftDocs/visualstudio-docs/issues/1531



The setup:



I've created a network share that is available as so:
\ShareVisualStudio2017



The share has (currently) no restriction while testing, so that means "everyone" can read its content.



The share is populated by the following layout command



vs_enterprise.exe --layout \<server>ShareDevelopmentVisualStudio2017 --lang en-US --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Workload.Universal --add Microsoft.VisualStudio.Workload.NetWeb Microsoft.VisualStudio.Workload.Node --add Microsoft.VisualStudio.Workload.NetCrossPlat --add Microsoft.VisualStudio.Workload.NetCoreTools --includeRecommended


Updated the Response.json (in the share) to




"installChannelUri": "\<server>\Share\Development\VisualStudio2017\ChannelManifest.json",
"channelUri": "\<server>\Share\Development\VisualStudio2017\ChannelManifest.json",
"installCatalogUri": "\<server>\Share\Development\VisualStudio2017\Catalog.json",
"channelId": "VisualStudio.15.Release",
"productId": "Microsoft.VisualStudio.Product.Enterprise",
"add": [
"Microsoft.VisualStudio.Workload.ManagedDesktop;includeRecommended",
"Microsoft.VisualStudio.Workload.NativeDesktop;includeRecommended",
"Microsoft.VisualStudio.Workload.NetCoreTools;includeRecommended",
"Microsoft.VisualStudio.Workload.NetCrossPlat;includeRecommended",
"Microsoft.VisualStudio.Workload.NetWeb;includeRecommended",
"Microsoft.VisualStudio.Workload.Node;includeRecommended",
"Microsoft.VisualStudio.Workload.Universal;includeRecommended"
],
"addProductLang": [
"en-US"
]



The share is combined with the role:



- name: Install Visual Studio 2017 
win_package:
path: '\<server>shareDevelopmentVisualStudio2017vs_enterprise.exe'
state: present
product_id: Microsoft.VisualStudio.Product.Enterprise
channel_id: VisualStudio.15.Release
user_name: <DOMAIN><USERNAME>
user_password: <PASSWORD>
arguments:
# - --quiet
- --wait
- --norestart
# - --add Microsoft.VisualStudio.Workload.ManagedDesktop
# - --add Microsoft.VisualStudio.Workload.NativeDesktop
# - --add Microsoft.VisualStudio.Workload.Universal
# - --add Microsoft.VisualStudio.Workload.NetWeb Microsoft.VisualStudio.Workload.Node
# - --add Microsoft.VisualStudio.Workload.NetCrossPlat
# - --add Microsoft.VisualStudio.Workload.NetCoreTools
# - --includeRecommended


I'm running the playbook with the command with the verbose setting



ansible-playbook -i hosts utvClients.yaml -vvvv


Output



TASK [VisualStudio2017 : Install Visual Studio 2017] ******************************************************************************************************************************************************
task path: /mnt/d/dev/Ansible/roles/VisualStudio2017/tasks/main.yaml:2
Using module file /usr/lib/python2.7/dist-packages/ansible/modules/windows/win_package.ps1
<192.168.56.101> ESTABLISH WINRM CONNECTION FOR USER: Ansible on PORT 5986 TO 192.168.56.101
checking if winrm_host 192.168.56.101 is an IPv6 address
EXEC (via pipeline wrapper)


The bootstrapper log on the host in the path C:users\AppDataLocalTempdd_bootstrapper_.log says this:



Beginning of the log. Start Time: 3/6/2019 9:43:56 AM
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: Commandline arguments = --wait,--norestart,--path cache="\<server>shareDevelopmentVisualStudio2017",--env,_SFX_CAB_EXE_PACKAGE:C:UsersAnsibletyzrpvdy.v4j _SFX_CAB_EXE_ORIGINALWORKINGDIR:C:UsersAnsible
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: Parent process name = tyzrpvdy
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: Parent process product version = 15.9.28307.423
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: CampaignId =
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: ResponseId not available in 'vs_setup_bootstrapper.config'. Trying to parse filename.
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: loading config settings: -update --update --layout -offline --offline --locale --layout --originalworkingdir --installLayoutPath --env
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: DownloadURL = https://aka.ms/vs/15/release/installer
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: InstallLocation = C:Program Files (x86)Microsoft Visual StudioInstaller
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: OfflineFilePath =
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: LayoutLocation =
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: ExecutableArguments = /finalizeInstall install --in "C:ProgramDataMicrosoftVisualStudioPackages_bootstrappervs_setup_bootstrapper_201903060943571796.json" --norestart "--path cache="\<server>shareDevelopmentVisualStudio2017"" --locale en-US --activityId "d3c1a7c6-22ba-42af-9ce9-7ede1608e7be"
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: OSVersion = Microsoft Windows NT 10.0.17763.0
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: Starting to detect the existing VS and .Net...
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: Finished detecting the existing VS and .Net


First off: DownloadUrl is still set to aka.ms?
Am I not overriding it properly? Are there more things to consider?










share|improve this question
























  • Hi Verzada, it is recommended to use the aka.ms/vs/15/release/channel and please have a try with it, check it works or not.

    – Sara Liu - MSFT
    Mar 7 at 2:05












  • Hi Sara Liu. I'm not sure what you mean by using the url, can you please elaborate. I'm also made aware of the thread on GitHub github.com/MicrosoftDocs/visualstudio-docs/issues/1531 where lots of people are having problems installing Visual Studio 2017 through a network share

    – Verzada
    2 days ago











  • Hi, I found you update the Response.json with "channelUri": "\<server>\Share\Development\VisualStudio2017\ChannelManifest.json", it seems the default value is the aka link that I mentioned. BTW, since I am not familiar with ansible playbook, so may be I misunderstand your issue, sorry for this inconvenience. Exclude the ansible part, do you still meet any issues if install VS 2017 using the network share?

    – Sara Liu - MSFT
    2 days ago











  • @SaraLiu-MSFT Yeah, I'm having the same issue. But I'll test some more to see if there's anything I've forgotten to do. However, the goal is to create an offline installation with a network share, therefore I don't see why the installation should even use the aka.ms url.

    – Verzada
    2 days ago














0












0








0








I'm attempting to create an offline Visual Studio 2017 installation with network share and Ansible.



I'm having a hard time figuring out what exactly is going on since the installation loops(?) without much logging, the logs are often vague and more than often tells me that the bootstrapper is downloading files from Microsoft.



I'm wondering if there are easier ways to do this with Ansible.



I've used the following guides from Microsoft to try to make sense of things:



  • https://docs.microsoft.com/en-us/visualstudio/install/create-a-network-installation-of-visual-studio?view=vs-2017

  • https://docs.microsoft.com/en-us/visualstudio/install/automated-installation-with-response-file?view=vs-2017

Possibly problematic issue: https://github.com/MicrosoftDocs/visualstudio-docs/issues/1531



The setup:



I've created a network share that is available as so:
\ShareVisualStudio2017



The share has (currently) no restriction while testing, so that means "everyone" can read its content.



The share is populated by the following layout command



vs_enterprise.exe --layout \<server>ShareDevelopmentVisualStudio2017 --lang en-US --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Workload.Universal --add Microsoft.VisualStudio.Workload.NetWeb Microsoft.VisualStudio.Workload.Node --add Microsoft.VisualStudio.Workload.NetCrossPlat --add Microsoft.VisualStudio.Workload.NetCoreTools --includeRecommended


Updated the Response.json (in the share) to




"installChannelUri": "\<server>\Share\Development\VisualStudio2017\ChannelManifest.json",
"channelUri": "\<server>\Share\Development\VisualStudio2017\ChannelManifest.json",
"installCatalogUri": "\<server>\Share\Development\VisualStudio2017\Catalog.json",
"channelId": "VisualStudio.15.Release",
"productId": "Microsoft.VisualStudio.Product.Enterprise",
"add": [
"Microsoft.VisualStudio.Workload.ManagedDesktop;includeRecommended",
"Microsoft.VisualStudio.Workload.NativeDesktop;includeRecommended",
"Microsoft.VisualStudio.Workload.NetCoreTools;includeRecommended",
"Microsoft.VisualStudio.Workload.NetCrossPlat;includeRecommended",
"Microsoft.VisualStudio.Workload.NetWeb;includeRecommended",
"Microsoft.VisualStudio.Workload.Node;includeRecommended",
"Microsoft.VisualStudio.Workload.Universal;includeRecommended"
],
"addProductLang": [
"en-US"
]



The share is combined with the role:



- name: Install Visual Studio 2017 
win_package:
path: '\<server>shareDevelopmentVisualStudio2017vs_enterprise.exe'
state: present
product_id: Microsoft.VisualStudio.Product.Enterprise
channel_id: VisualStudio.15.Release
user_name: <DOMAIN><USERNAME>
user_password: <PASSWORD>
arguments:
# - --quiet
- --wait
- --norestart
# - --add Microsoft.VisualStudio.Workload.ManagedDesktop
# - --add Microsoft.VisualStudio.Workload.NativeDesktop
# - --add Microsoft.VisualStudio.Workload.Universal
# - --add Microsoft.VisualStudio.Workload.NetWeb Microsoft.VisualStudio.Workload.Node
# - --add Microsoft.VisualStudio.Workload.NetCrossPlat
# - --add Microsoft.VisualStudio.Workload.NetCoreTools
# - --includeRecommended


I'm running the playbook with the command with the verbose setting



ansible-playbook -i hosts utvClients.yaml -vvvv


Output



TASK [VisualStudio2017 : Install Visual Studio 2017] ******************************************************************************************************************************************************
task path: /mnt/d/dev/Ansible/roles/VisualStudio2017/tasks/main.yaml:2
Using module file /usr/lib/python2.7/dist-packages/ansible/modules/windows/win_package.ps1
<192.168.56.101> ESTABLISH WINRM CONNECTION FOR USER: Ansible on PORT 5986 TO 192.168.56.101
checking if winrm_host 192.168.56.101 is an IPv6 address
EXEC (via pipeline wrapper)


The bootstrapper log on the host in the path C:users\AppDataLocalTempdd_bootstrapper_.log says this:



Beginning of the log. Start Time: 3/6/2019 9:43:56 AM
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: Commandline arguments = --wait,--norestart,--path cache="\<server>shareDevelopmentVisualStudio2017",--env,_SFX_CAB_EXE_PACKAGE:C:UsersAnsibletyzrpvdy.v4j _SFX_CAB_EXE_ORIGINALWORKINGDIR:C:UsersAnsible
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: Parent process name = tyzrpvdy
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: Parent process product version = 15.9.28307.423
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: CampaignId =
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: ResponseId not available in 'vs_setup_bootstrapper.config'. Trying to parse filename.
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: loading config settings: -update --update --layout -offline --offline --locale --layout --originalworkingdir --installLayoutPath --env
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: DownloadURL = https://aka.ms/vs/15/release/installer
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: InstallLocation = C:Program Files (x86)Microsoft Visual StudioInstaller
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: OfflineFilePath =
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: LayoutLocation =
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: ExecutableArguments = /finalizeInstall install --in "C:ProgramDataMicrosoftVisualStudioPackages_bootstrappervs_setup_bootstrapper_201903060943571796.json" --norestart "--path cache="\<server>shareDevelopmentVisualStudio2017"" --locale en-US --activityId "d3c1a7c6-22ba-42af-9ce9-7ede1608e7be"
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: OSVersion = Microsoft Windows NT 10.0.17763.0
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: Starting to detect the existing VS and .Net...
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: Finished detecting the existing VS and .Net


First off: DownloadUrl is still set to aka.ms?
Am I not overriding it properly? Are there more things to consider?










share|improve this question
















I'm attempting to create an offline Visual Studio 2017 installation with network share and Ansible.



I'm having a hard time figuring out what exactly is going on since the installation loops(?) without much logging, the logs are often vague and more than often tells me that the bootstrapper is downloading files from Microsoft.



I'm wondering if there are easier ways to do this with Ansible.



I've used the following guides from Microsoft to try to make sense of things:



  • https://docs.microsoft.com/en-us/visualstudio/install/create-a-network-installation-of-visual-studio?view=vs-2017

  • https://docs.microsoft.com/en-us/visualstudio/install/automated-installation-with-response-file?view=vs-2017

Possibly problematic issue: https://github.com/MicrosoftDocs/visualstudio-docs/issues/1531



The setup:



I've created a network share that is available as so:
\ShareVisualStudio2017



The share has (currently) no restriction while testing, so that means "everyone" can read its content.



The share is populated by the following layout command



vs_enterprise.exe --layout \<server>ShareDevelopmentVisualStudio2017 --lang en-US --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Workload.Universal --add Microsoft.VisualStudio.Workload.NetWeb Microsoft.VisualStudio.Workload.Node --add Microsoft.VisualStudio.Workload.NetCrossPlat --add Microsoft.VisualStudio.Workload.NetCoreTools --includeRecommended


Updated the Response.json (in the share) to




"installChannelUri": "\<server>\Share\Development\VisualStudio2017\ChannelManifest.json",
"channelUri": "\<server>\Share\Development\VisualStudio2017\ChannelManifest.json",
"installCatalogUri": "\<server>\Share\Development\VisualStudio2017\Catalog.json",
"channelId": "VisualStudio.15.Release",
"productId": "Microsoft.VisualStudio.Product.Enterprise",
"add": [
"Microsoft.VisualStudio.Workload.ManagedDesktop;includeRecommended",
"Microsoft.VisualStudio.Workload.NativeDesktop;includeRecommended",
"Microsoft.VisualStudio.Workload.NetCoreTools;includeRecommended",
"Microsoft.VisualStudio.Workload.NetCrossPlat;includeRecommended",
"Microsoft.VisualStudio.Workload.NetWeb;includeRecommended",
"Microsoft.VisualStudio.Workload.Node;includeRecommended",
"Microsoft.VisualStudio.Workload.Universal;includeRecommended"
],
"addProductLang": [
"en-US"
]



The share is combined with the role:



- name: Install Visual Studio 2017 
win_package:
path: '\<server>shareDevelopmentVisualStudio2017vs_enterprise.exe'
state: present
product_id: Microsoft.VisualStudio.Product.Enterprise
channel_id: VisualStudio.15.Release
user_name: <DOMAIN><USERNAME>
user_password: <PASSWORD>
arguments:
# - --quiet
- --wait
- --norestart
# - --add Microsoft.VisualStudio.Workload.ManagedDesktop
# - --add Microsoft.VisualStudio.Workload.NativeDesktop
# - --add Microsoft.VisualStudio.Workload.Universal
# - --add Microsoft.VisualStudio.Workload.NetWeb Microsoft.VisualStudio.Workload.Node
# - --add Microsoft.VisualStudio.Workload.NetCrossPlat
# - --add Microsoft.VisualStudio.Workload.NetCoreTools
# - --includeRecommended


I'm running the playbook with the command with the verbose setting



ansible-playbook -i hosts utvClients.yaml -vvvv


Output



TASK [VisualStudio2017 : Install Visual Studio 2017] ******************************************************************************************************************************************************
task path: /mnt/d/dev/Ansible/roles/VisualStudio2017/tasks/main.yaml:2
Using module file /usr/lib/python2.7/dist-packages/ansible/modules/windows/win_package.ps1
<192.168.56.101> ESTABLISH WINRM CONNECTION FOR USER: Ansible on PORT 5986 TO 192.168.56.101
checking if winrm_host 192.168.56.101 is an IPv6 address
EXEC (via pipeline wrapper)


The bootstrapper log on the host in the path C:users\AppDataLocalTempdd_bootstrapper_.log says this:



Beginning of the log. Start Time: 3/6/2019 9:43:56 AM
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: Commandline arguments = --wait,--norestart,--path cache="\<server>shareDevelopmentVisualStudio2017",--env,_SFX_CAB_EXE_PACKAGE:C:UsersAnsibletyzrpvdy.v4j _SFX_CAB_EXE_ORIGINALWORKINGDIR:C:UsersAnsible
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: Parent process name = tyzrpvdy
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: Parent process product version = 15.9.28307.423
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: CampaignId =
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: ResponseId not available in 'vs_setup_bootstrapper.config'. Trying to parse filename.
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: loading config settings: -update --update --layout -offline --offline --locale --layout --originalworkingdir --installLayoutPath --env
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: DownloadURL = https://aka.ms/vs/15/release/installer
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: InstallLocation = C:Program Files (x86)Microsoft Visual StudioInstaller
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: OfflineFilePath =
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: LayoutLocation =
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: ExecutableArguments = /finalizeInstall install --in "C:ProgramDataMicrosoftVisualStudioPackages_bootstrappervs_setup_bootstrapper_201903060943571796.json" --norestart "--path cache="\<server>shareDevelopmentVisualStudio2017"" --locale en-US --activityId "d3c1a7c6-22ba-42af-9ce9-7ede1608e7be"
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: OSVersion = Microsoft Windows NT 10.0.17763.0
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: Starting to detect the existing VS and .Net...
VisualStudio Bootstrapper:3/6/2019 9:43:57 AM: Finished detecting the existing VS and .Net


First off: DownloadUrl is still set to aka.ms?
Am I not overriding it properly? Are there more things to consider?







installation visual-studio-2017 ansible offline network-share






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 days ago







Verzada

















asked Mar 6 at 13:25









VerzadaVerzada

7619




7619












  • Hi Verzada, it is recommended to use the aka.ms/vs/15/release/channel and please have a try with it, check it works or not.

    – Sara Liu - MSFT
    Mar 7 at 2:05












  • Hi Sara Liu. I'm not sure what you mean by using the url, can you please elaborate. I'm also made aware of the thread on GitHub github.com/MicrosoftDocs/visualstudio-docs/issues/1531 where lots of people are having problems installing Visual Studio 2017 through a network share

    – Verzada
    2 days ago











  • Hi, I found you update the Response.json with "channelUri": "\<server>\Share\Development\VisualStudio2017\ChannelManifest.json", it seems the default value is the aka link that I mentioned. BTW, since I am not familiar with ansible playbook, so may be I misunderstand your issue, sorry for this inconvenience. Exclude the ansible part, do you still meet any issues if install VS 2017 using the network share?

    – Sara Liu - MSFT
    2 days ago











  • @SaraLiu-MSFT Yeah, I'm having the same issue. But I'll test some more to see if there's anything I've forgotten to do. However, the goal is to create an offline installation with a network share, therefore I don't see why the installation should even use the aka.ms url.

    – Verzada
    2 days ago


















  • Hi Verzada, it is recommended to use the aka.ms/vs/15/release/channel and please have a try with it, check it works or not.

    – Sara Liu - MSFT
    Mar 7 at 2:05












  • Hi Sara Liu. I'm not sure what you mean by using the url, can you please elaborate. I'm also made aware of the thread on GitHub github.com/MicrosoftDocs/visualstudio-docs/issues/1531 where lots of people are having problems installing Visual Studio 2017 through a network share

    – Verzada
    2 days ago











  • Hi, I found you update the Response.json with "channelUri": "\<server>\Share\Development\VisualStudio2017\ChannelManifest.json", it seems the default value is the aka link that I mentioned. BTW, since I am not familiar with ansible playbook, so may be I misunderstand your issue, sorry for this inconvenience. Exclude the ansible part, do you still meet any issues if install VS 2017 using the network share?

    – Sara Liu - MSFT
    2 days ago











  • @SaraLiu-MSFT Yeah, I'm having the same issue. But I'll test some more to see if there's anything I've forgotten to do. However, the goal is to create an offline installation with a network share, therefore I don't see why the installation should even use the aka.ms url.

    – Verzada
    2 days ago

















Hi Verzada, it is recommended to use the aka.ms/vs/15/release/channel and please have a try with it, check it works or not.

– Sara Liu - MSFT
Mar 7 at 2:05






Hi Verzada, it is recommended to use the aka.ms/vs/15/release/channel and please have a try with it, check it works or not.

– Sara Liu - MSFT
Mar 7 at 2:05














Hi Sara Liu. I'm not sure what you mean by using the url, can you please elaborate. I'm also made aware of the thread on GitHub github.com/MicrosoftDocs/visualstudio-docs/issues/1531 where lots of people are having problems installing Visual Studio 2017 through a network share

– Verzada
2 days ago





Hi Sara Liu. I'm not sure what you mean by using the url, can you please elaborate. I'm also made aware of the thread on GitHub github.com/MicrosoftDocs/visualstudio-docs/issues/1531 where lots of people are having problems installing Visual Studio 2017 through a network share

– Verzada
2 days ago













Hi, I found you update the Response.json with "channelUri": "\<server>\Share\Development\VisualStudio2017\ChannelManifest.json", it seems the default value is the aka link that I mentioned. BTW, since I am not familiar with ansible playbook, so may be I misunderstand your issue, sorry for this inconvenience. Exclude the ansible part, do you still meet any issues if install VS 2017 using the network share?

– Sara Liu - MSFT
2 days ago





Hi, I found you update the Response.json with "channelUri": "\<server>\Share\Development\VisualStudio2017\ChannelManifest.json", it seems the default value is the aka link that I mentioned. BTW, since I am not familiar with ansible playbook, so may be I misunderstand your issue, sorry for this inconvenience. Exclude the ansible part, do you still meet any issues if install VS 2017 using the network share?

– Sara Liu - MSFT
2 days ago













@SaraLiu-MSFT Yeah, I'm having the same issue. But I'll test some more to see if there's anything I've forgotten to do. However, the goal is to create an offline installation with a network share, therefore I don't see why the installation should even use the aka.ms url.

– Verzada
2 days ago






@SaraLiu-MSFT Yeah, I'm having the same issue. But I'll test some more to see if there's anything I've forgotten to do. However, the goal is to create an offline installation with a network share, therefore I don't see why the installation should even use the aka.ms url.

– Verzada
2 days ago













0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55024224%2fvisual-studio-2017-create-an-offline-installation-through-network-share-and-an%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55024224%2fvisual-studio-2017-create-an-offline-installation-through-network-share-and-an%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved