OK i managed to solve this issue. I first needed to install the certificates to the local machine either from the certificates folder which is inside the layout folder or by right clicking the setup.exe and then Properties - Digital signatures - click on the item in the list then click Details - view certificate - install certificate - Local machine and then just continue the process with the defaults.
Then once the certificates are installed i then run the .exe as administrator and it works :)
Answer from Edwin Martin on Stack ExchangeIs the VS 2022 offline installer available?
Can Visual Studio be installed on an offline PC?
upgrade - How to download and offline install Visual Studio 2022 version update? - Stack Overflow
How to create offline installer for visual studio community 2022
Videos
Hello there,
I remember theres always an offline installer (about 22-25gb) to install visual studio completely.
2017 and 2019 had this type of installers, does anyone knows if VS 2022 offline installer is currently available?
Thank you
Hi Billy,
Thank you for contacting us.
Regarding your concern, please note that Microsoft enforces activation per machine to prevent piracy and ensure compliance. You can still install Visual Studio Professional offline, but it requires manual product key entry or volume license setup, not a universal multi-access key. Below are the steps you should take:
- You first need to install Visual Studio online
- Create a layout for offline install, you can check this link for more specific guidance
- Manually download and install missing certificate:
- Download the certificate: http://www.microsoft.com/pkiops/certs/Microsoft%20Windows%20Code%20Signing%20PCA%202024.crt
- Double-click the .crt file to open the Certificate window.
- Click โInstall Certificateโฆโ
- Choose โLocal Machineโ (you may need admin rights).
- Select โPlace all certificates in the following storeโ
- Click โBrowseโฆโ and choose: Trusted Root Certification Authorities. Click Next, then Finish.
- Copy the layout folder that you have just created to your offline device and run this command in the layout folder
โ Visual Studio Professional 2022 will be install offlinevs_professional.exe --noweb - Go to Help โ About Visual Studio โ License Status โ Click Unlock with a Product Key. Enter the Product Key and click Apply
- Visual Studio creates a request file containing your installation ID. Save this file and transfer it to an internet-accessed device.
- On a device with internet access, go to the Microsoft Licensing Activation site (provided in the Visual Studio activation dialog) โ Upload the request file โ Microsoft will generate a response file then transfer the response file back to the offline machine.
- In Visual Studioโs activation dialog, select Use Response File โ Browse to the file and apply it โ Visual Studio will confirm activation.
I hope that these instructions will be helpful! If you have any other questions, feel free to reach out, I'm here to help.
Happy holiday!
Yes, Visual Studio can be installed on an offline PC. To do this, you need to create an offline installer using the Visual Studio installer on a machine with internet access. You can follow these steps:
- Download the Visual Studio installer from the Visual Studio page.
- Use the command line to create an offline installer layout. For example:
"vs_professional.exe" --LayOut "C:\Temp\VS2022Offline" --Lang "en-US" - Copy the created offline installer folder to the target offline machine.
- Run the installer from the copied folder using an administrator command prompt.
- Follow the setup wizard to complete the installation.
Additionally, Visual Studio Professional and Enterprise editions support offline activation via a product key, while Visual Studio Community does not support offline activation.
References:
- Set up Visual Studio on an offline machine
- Install certificates required for Visual Studio offline installation
- SSIS Projects extension for Visual Studio 2022+ troubleshooting guide
If you want to do an offline update from VS17.12 to 17.13 , you can follow below steps:
- Update the layout to a specific version of the product.
- Go to the Visual Studio 2022 Release History page and download a particular fixed version bootstrapper(e.g vs_Enterprise17.13.0), copy it into your layout, and use it to update the layout to that exact version specified in the bootstrapper.
- Run the --layout command in an elevated prompt to download the latest packages into your layout.
vs_enterprise.exe --layout c:\VSLayout
- Update your Visual Studio 2022 by running the Visual Studio Installer > Update or you can also use the following command:
vs_enterprise.exe update --noWeb --quiet --installpath "C:\Program Files\Microsoft Visual Studio\2022\Enterprise"
Update
The easiest and fastest way to update your offline Visual Studio instances: using a minimal offline layout.
Do i have to download the entire VS Layout package everytime if there is an version update?
Unlike a full Visual Studio layout, a minimal layout only contains the updated packages, so it is always smaller and faster to generate and deploy.
1.Generating a minimal layout.
MinimalLayout.exe generate --targetLocation c:\VSLayout\ --productIds Microsoft.VisualStudio.Product.Enterprise --baseVersion 17.12.5 --targetVersion 17.13.0 --languages en-US
2.Update the Visual Studio Installer
vs_enterprise.exe --quiet --update --offline C:\VSLayout\vs_installer.opc
3.Update the Visual Studio application
vs_enterprise.exe update --noWeb --quiet --installpath "C:\Program Files\Microsoft Visual Studio\2022\Enterprise"
Docs Referred:
Update the layout to a specific version of the product
Update Visual Studio from a layout
Microsoft has a handy post that details what you need to do. Essentially, at the command line on the computer with internet access, execute:
vs_enterprise.exe --layout c:\localVSlayout
Replace c:\localVsLayout with where you want to dump the files. It's going to be big! You may need to change vs_enterprise.exe with the correct executable name for your version of Visual Studio.
Microsoft no longer offers offline installers such as .ISO images of Visual Studio -- instead they have instructions of placing the burden on you to create an offline installer. You need to use the --layout command line argument and then run the downloaded installer.
Download and Cache offline files:
vs_community.exe --layout f:\vslayout.2019 --lang en-USRun from the cached directory
f: cd \vslayout.2019 vs_community.exe --noWeb
NOTE: Change drive F to match a drive on your system that has ~35 GB of free space for MSVC 2019. See the instructions for command line arguments to select just C++, .NET, etc. options.
You can get help on the command line arguments for the installer via:
vs_community --help
The relevant layout commands are:
command-line option Description
--layout <dir> Specifies a directory to create an offline install cache.
--lang <locales> Used with --layout to prepare an offline install cache with resource packages with the specified language(s). See a full list of supported language-locales below.
--add <workload> One or more workload or component IDs to add. The required components of the artifact are installed, but not the recommended or optional components. You can control additional components globally using --includeRecommended and/or --includeOptional. For finer-grained control, you can append ;includeRecommended or ;includeOptional to the ID (for example, --add Workload1;includeRecommended or --add Workload2;includeOptional).
Note: If --add is used, only the specified workloads and components and their dependencies are downloaded. If --add is not specified, all workloads and components are downloaded to the layout.
--includeRecommended Includes the recommended components for any workloads that are installed, but not the optional components. The workloads are specified either with --allWorkloads or --add.
--includeOptional Includes the recommended and optional components for any workloads being included in the layout. The workloads are specified with --add.
--keepLayoutVersion Apply changes to the layout without updating the version of the layout.
--verify Verify the contents of a layout. Any corrupt or missing files are listed.
--fix Verify the contents of a layout. If any files are found to be corrupt or missing, they are redownloaded. Internet access is required to fix a layout.
--clean <paths to catalogs>
I have developed an application using VB.NET to dynamically generate batch (.bat) scripts that can be used to download Visual Studio 2017, 2019, and 2022. You can customize the script using the controls included in the application and download it to a targeted drive. You can download it here.
This is my contribution to the community.

I wan't to make an offline installer of visual studio community 2022 and put that on a usb stick and install it on a friend's laptop. Is it possible? And if so how?