I have downloaded all the VS packages ( around 35 GB) using the below command line.
vs_community.exe --layout c:\vslayout --lang en-US
Now, I use the command vs_community.exe --noweb to install in a PC with no internet connection. As the installer option is offline mode, but still the installer says not connected to internet.
To help improve the issue, I add an answer here. Also, thanks to Martheen for sharing the info.
Answer
You have to install certificates from the offline package to install the VS because the new environment is offline and cannot get the requests and permissions for installing VS.
So you have to open the certificates folder of the offline package to install them one by one to get that.
You can refer to this for more info.
Update 1
use a bat file to execute the offline installation of VS.
certmgr.exe -add [layout path]\certificates\manifestRootCertificate.cer -n "Microsoft Root Certificate Authority 2011" -s -r LocalMachine root
.....
//add any for certs
vs_community.exe --noweb
Related
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.
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
Installing Votive, an extension for Wix - Windows Installer fails for both Votive 2017 and Votive 2019 Visual Studio extension. The reason is a certificate validation error. How can you update your root certificates and install the Visual Studio extension without getting certificate validation error?
It was possible to install Votive using the following Powershell commands to refresh the root certificates with Windows Update.
mkdir c:\certs #temporary folder where the certificates will be installed/updated
cd c:\certs
certutil.exe -generateSSTFromWU roots.sst
$sstStore = ( Get-ChildItem -Path C:\certs\roots.sst )
$sstStore | Import-Certificate -CertStoreLocation Cert:\LocalMachine\Root
The -generateSSTFromWU option downloads all certificates into a .sst file that can be opened with MMC by double clicking, but I ran the Powershell commands listed above to also get all certificates installed.
After doing this, Votive extension installed and I could open the Visual Studio solution with the .wixproj Wix project inside. This worked for both Votive 2017 and Votive 2019.
It is possible to install WixToolset with Chocolatey, but I needed the Visual Studio Extension - called Votive.
I created an offline layout folder using the following command:
vs_enterprise.exe --layout c:\vs2017layout --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --add Component.GitHub.VisualStudio --includeOptional --lang en-US
I then copied the entire resulted vs2017layout folder (~2.57GB) to another machine that does not have internet access and ran the following command:
vs_enterprise.exe --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --add Component.GitHub.VisualStudio --includeOptional --lang en-US
However, the installer still wants internet connection. Please advise on what I'm missing.
Thank you in advance.
Turns out I need to manually import the certificates that were downloaded to the offline folder on the machine.
Found this info from this blog post: http://www.kunal-chowdhury.com/2016/11/visual-studio-2017-offline-installer.html#C3t0q0XUUVqgvqyy.97
Please run https://aka.ms/vscollect.exe and upload your logs to a new issue on https://developercommunity.visualstudio.com. Logs will then only be available for you and us to see and diagnose.
I also had this kind of problem. However I managed to solve it by installing Visual Studio in online computer from downloaded Layout, waiting for installation to complete, then copy the Download Cache (by default located in %programdata%\Microsoft\VisualStudio\Packages) into existing Layout.
This way some missing packages also get included and hopefully the layout installer no longer require internet for next offline installations.
When started, installer download file Catalog.json, containing list of all packages, versions, file sizes and checksum. Using this data installer check size and crc of all already downloaded files, using information in file Catalog.json at installation root.
If Your installer not use downloaded files, this may be due to the following reasons:
incomplete download, wrong size or crc of downloaded files (View
file Catalog.json at installation root.);
there is newer version of file (version,crc & size look at Catalog.json).
I'm trying to install the package of Microsoft Visual C++ Redistributable as my xampp apache module cannot be installed. The installation take a very long time to complete. What should I do? Is this common and is all I have to do is wait?
They are dead stuck with this setup progress as the indication
Processing: Windows7_MSU_X64
To install the Visual C++ 2015 Redistributable, you do not need to remove or uninstall the previous versions.
Refer to the error message, you can have a look at the installation log file and search ‘error’, if you can find the error message about Windows6.1-KB2999226-x64.msu, check this similar issue and have a try with the following to troubleshot this issue:
Download the update KB2999226 for your OS edition from here: Update for Universal C Runtime in Windows and before it, since your OS is windows 7, make sure SP1 is installed.
Manually install the KB2999226 as below:
Find the Windows6.1-KB2999226-x64.msu from the folder C:\ProgramData\Package Cache\xxxxx\packages\Patch\x64, which you can the path from the installation log
Create a folder named ‘XXXX’ in that and execute following commands from Admin command prompt
wusa.exe Windows6.1-KB2999226-x64.msu /extract:XXXX
DISM.exe /Online /Add-Package /PackagePath:XXXX\Windows6.1-KB2999226-x64.cab
vc_redist.x64.exe /repair
If you have no idea about the installation log, you can go to %temp% and order by ‘Date modified’, then you should find the installation log, or you can use http://aka.ms/vscollect to gather the installation logs. After using it, you will find vslogs.zip under %temp% folder then upload the file to https://onedrive.live.com/ and share the link here.
I first tried a clean boot and that didn't work so I opened up the task manager to see what other processes I might kill while it was stuck at "Processing: Windows7_MSU_X64" I killed the process titled "windows update standalone installer" and the install completed successfully the moment I killed that process.
Okay, I found the solution for my stucked installation. I updated my Windows manually using wsusoffline tools as my Windows can't seem to update with the usual ways.
Install wsusoffline and select all update for Windows (Windows 7 for me). Make sure to choose the folder to save your update.
Wait for the update to be downloaded
Install the update
Install the MV C++ Redistributable again
Done!
I finally can install my Xampp Apache module and access to the localhost.