Visual Studio 2017, Download Offline [duplicate] - visual-studio

I recently try to install Visual Studio 2017. But there is no offline installer. How to get offline installer for it.
I also tried to install Xamarin. Eventhough I have latest Android SDK, it ask me to download Android SDK again. How to rectify it?
Thanks in advance.

To produce an offline installer you first need to download the corresponding online installer, which will give you an installation file similar to one of these:
vs_enterprise.exe - Visual Studio 2017 Enterprise, download here
vs_professional.exe - Visual Studio 2017 Professional, download here
vs_community.exe - Visual Studio 2017 Community Edition, download here
Then all you have to do is this:
vs_WHATEVER.exe --layout path-to-empty-directory
Example, to create an offline installer for Visual Studio 2017 Community Edition you first download the online installer, then you execute this:
vs_community.exe --layout d:\temp
This will fill D:\Temp with all the files necessary to install Visual Studio.
Note: The installer will open a console window as part of its process, you need to wait until this window closes before you can safely use the contents of this folder.
There will be many sub-directories, depending on the packages available, but you will also have the original executable you downloaded placed into this directory. Executing this from this directory will install using the provided packages.
Also note that by default, unless you manually specify --add and package id's, all the packages will be downloaded. You will thus get a complete and current version to install offline. However, if you specify packages with the --add parameter, only the specified packages will be downloaded.
Source: Create a network installation of Visual Studio 2017

Related

A problem when Updating the offline package of visual studio 2019 (it downloads the installer then nothing happens)

I have download an offline package of visual studio 2019 a year or more ago, since that date, and when a new update is released I use this command vs_Community.exe --layout pathToVS2019OfflinePackage --lang en-US to update my visual studio 2019 offline package.
But this time, when trying to do what I do each time:
vs_Community.exe --layout pathToVS2019OfflinePackage --lang en-US
Then it downloads the last version of the installer
Then nothing happens (Supposed in this step the update starts).
Why the update doesn't start (I didn't change any settings)?
Normally, the offline update VS’s process is like this:
On the machine with network
1). Move the existing layout folder from the machine without network to this machine.
2). Download the latest version of VS bootstrapper file(.exe file from official website).
3). Open CMD and cd to the directory where you saved the downloaded .exe file.
4). Type command like vs_community.exe –layout XXXX\XXXXX\XXXX –lang en-US and wait for it completes.
On the machine without network(offline)
5). Move the updated layout folder to this machine.
6). Launch Visual Studio Installer > find VS 2019 > click Update.
Looks like you are blocked on step 4), you need to make sure that you have downloaded and are using the latest .exe file and make sure that these operations are performed on a network based machine.
Details: Update a network-based installation of Visual Studio.

How do I fix visual studio installer (2019 community) is empty?

I downloaded the visual studio 2019 community installer and ran it. It ran successfully but instead of opening the visual studio installer when it completed it just closed. I located the visual studio installer 'setup.exe' (under C:/Program Files (x86)/Microsoft Visual Studio/Installer) and ran it. It opens the installer but instead of allowing me to select tools to install it just has 2 empty tabs labeled 'installed' and 'available' and a side bar that shows developer news.
I don't have any antivirus or firewall running. I uninstalled every version of visual studio I had in case the installer was assuming I already have VS2019. I updated windows and my drivers.
EDIT:
I had a hunch that I might find something out by using 'setup -h' in command prompt. It appears that it may be possible to install vs2019 by using the right tags.
I guessed
setup install --productid Microsoft.VisualStudio.Product.Community --channelid VisualStudio.15.Release
might work but the installer says "
A product matching the following parameters cannot be found:
channelId: VisualStudio.15.Release
productId: Microsoft.VisualStudio.Product.Community
"
If you know what the right tags are that might be an adequate solution.
Please try to reinstall it:
1) run cmd as Administrator and then type:
"%programfiles(x86)%\Microsoft Visual Studio\Installer\resources\app\layout\InstallCleanup.exe" -full
2) restart vs_installer again.

I Have Problem Installing Extensions For Visual Sudio 2019

I Have A Problem And That Is :
I've Tried To Install An Extension From Visual Studio 2019 Extension Manager's MarketPlace
e.g (CodeMaid)
So I've Clicked And Downloaded It , When I've Restarted Visual Sudio To Install That Extension But Installer Said : The Install Of "CodeMaid" Extension For Visual Studio Was Not Successful for All the selected products.For More Information Click On The Install Log Link at the bottom of the dialog.]
Note That I Have Installed My Visual Studio In My H: Drive.
Please Help Me :(
I've Tried Any Extension To Install But They All NOT Installed Successfully e.g I Tried To Install Resharper But The Resharper Can't Detect My Visual Studio
(Sorry for My Bad English)
I Have The Screenshot Here:
Click Here To Open Image
You can install extension with .vsix file. Firstly, go to https://open-vsx.org/ and download the extension that you want.After downloading you will get VSIX file.Final step: open visual studio and go to EXTENSIONS.Click option icon(•••) and find and click (install from VSIX) and then choose your downloaded .vsix file. Done.
I've Tried Any Extension To Install But They All NOT Installed
Successfully e.g I Tried To Install Resharper But The Resharper Can't
Detect My Visual Studio
Please try these steps to troubleshoot your issue:
1) delete all vs componment caches under C:\Users\user\AppData\Local\Microsoft\VisualStudio\16.0_xxxxx\ComponentModelCache and do not forget to delete all the files under C:\Users\user\AppData\Local\Temp
2) disable any third party extensions under Extensions-->Manage Extensions to prevent any other extensions affect it.
3) run VS as administrator and then install the extension again.
4) do a repair in VS Installer
5) If your VS2019 is not the latest version, please update it to the latest version and please update your OS at the same time.
In addition, if all the steps does not work, l suggest you chould reinstall VS2019 and you would better install VS2019 on the default system disk. And there is a similar issue.
After you uninstall VS2019, please check if you have this:%programfiles(x86)%\Microsoft Visual Studio\Installer\resources\app\layout\InstallCleanup.exe.
If so, please launch it from an admin command prompt with a -full param: InstallCleanup.exe -full
If not, please manually delete the %programfiles(x86)%\Microsoft Visual Studio\Installer folder
Then relaunch vs_enterprise.exe and then install VS2019.

Visual Studio 2017 RC installation failure "product ... cannot be found"

I am trying to install Visual Studio Professional 2017 RC on Windows 10 but the installer reports:
A product matching the following parameters cannot be found:
channelId: VisualStudio.15.Release
productId: Microsoft.VisualStudio.Product.Professional
Is this fixable?
I had the same issue and the following has helped me. A clean-up and removal of vs and installation folder was not enough in my case.
Here are the steps I've taken:
uninstalled Visual Studio (and other Visual Studio installations)
run C:\Program Files (x86)\Microsoft Visual Studio\Installer\InstallCleanup.exe -full"
removed all the "C:\Program Files (x86)\Microsoft Visual Studio" folders
removed "C:\Program Data\Microsoft\Visual Studio\ folder
restarted system
In the end I think removing of Program Data location did the final trick. I had to run a repair after the successful installation to make VS Extensions work.
I previously installed VS 15 Release and removed it. I had the same issue and fixed it by removing installer folder from here: C:\Program Files (x86)\Microsoft Visual Studio\ Installer
Please follow the cleanup steps and retry your VS install
See if you have this file on your machine: "%programfiles(x86)%\Microsoft Visual Studio\Installer\resources\app\layout\InstallCleanup.exe"
If so, please launch it from an admin command prompt with a -full param:
InstallCleanup.exe -full
If not, please manually delete the "%programfiles(x86)%\Microsoft Visual Studio\Installer” folder
Relaunch the newly downloaded vs_enterprise.exe (or vs_professional.exe or vs_community.exe…)
Allow the first step to install the installer
Once the installer comes up and you can see workload choices (.net desktop and the like), close it
Go launch the same InstallCleanup.exe to clean up old build of VS
Then relaunch vs_enterprise.exe and install VS.
The problem that I had was because I had a Visual Studio 2017 layout and I wanted to make a Visual Studio 2019 layout in the same directory.
If you are creating a new offline installation layout on top of an old offline installation layout, you need to delete every file inside the layout folder (And only the layout folder not sub-directories).
This way the new (channel) information will be replaced and installation goes without errors.

Huagati DBML/EDMX for Visual Studio 2013

The Huagati tool was discontinued and doesn't install on Visual Studio 2013. I had used a posting (I believe on Huagati's site) on how to install it manually but I can't find it anymore. Anyone know where it is or how to do it? Thanks in advance.
The latest version will install itself in VS2013 too (as well as in 2008/2010/2012).
couldn't find the post but figured it out.
install Huagati DBML/EDMX tools as you normally would with the msi
look for the file "HuagatiDBMLTool2012.Addin" in the installation
folder (usually C:\Program Files (x86)\Huagati Systems Co Ltd\Huagati
DBML_EDMX Tools\VS2010)
make a copy called "HuagatiDBMLTools2013.Addin" and update the version
tag to 12.0
In VisualStudio 2013, TOOLS -> Options -> Add-in Security and then
add the path to the VS2010 folder (usually C:\Program Files
(x86)\Huagati Systems Co Ltd\Huagati DBML_EDMX Tools\VS2010)
restart VisualStudio 2013 and it should work

Resources