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 Exchange
🌐
Microsoft Learn
learn.microsoft.com › en-us › visualstudio › install › create-an-offline-installation-of-visual-studio
Create an offline installation - Visual Studio (Windows) | Microsoft Learn
Create an offline installation package to install Visual Studio offline when you have an unreliable internet connection or low bandwidth.
🌐
Microsoft Learn
learn.microsoft.com › en-us › troubleshoot › developer › visualstudio › installation › set-up-vs-professional-2022-offline-machine
Set Up Visual Studio on an Offline Machine - Visual Studio | Microsoft Learn
Launch the Visual Studio shortcut as an administrator. On the menu bar, select Help > Register Product. Select the Unlock with a Product Key link. Enter the 25-digit product key, and then select Apply.
🌐
GitHub
github.com › carsten-riedel › Visual-Studio-Offline
GitHub - carsten-riedel/Visual-Studio-Offline: The one and only offline approach. Wrapping visual studio installation files in an offline installer with inno setup.
To create the offline installer, follow these steps: Install Inno Setup on your machine. Launch the ISS file. Modify the following variables in the ISS file as needed: GETINSTALLLOCATION: Specifies the location for the installation of Visual ...
Starred by 10 users
Forked by 4 users
Languages   Inno Setup
🌐
Medium
bw861987.medium.com › how-i-install-and-updatevisualstudio-2022-with-an-offline-installer-for-asp-net-core-c50c68c4d6b8
How I install and updateVisualStudio 2022 with an offline installer for ASP.NET CORE | by Bjego | Medium
August 1, 2022 - You can easily download the latest VS install clis from the official docs for offline installations. In my case I am using VS_PROFESSIONAL and stored it in C:\VisualStudio
🌐
Scott Hanselman's Blog
hanselman.com › blog › how-to-make-an-offline-installer-for-vs2017
How to make an offline installer for VS2017 - Scott Hanselman's Blog
Sometimes you'll end up with a file like vs_community__198521760.1486960229.exe and you'll want to rename it to vs_community.exe for offline to work. Before you run the installer, you'll want to install the root certificates in the \certificates folder. From the team: They are the root certs needed to verify the setup application (the stuff installed under ProgramFiles\Visual Studio\2017\Installer) and the catalog (a json file that lists of all the VS components that could be installed by setup).
Top answer
1 of 2
3

If you want to do an offline update from VS17.12 to 17.13 , you can follow below steps:

  1. 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
  1. 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

2 of 2
1

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.

🌐
Trailhead Technology Partners
trailheadtechnology.com › home › creating a visual studio offline installer
Creating a Visual Studio Offline Installer - Trailhead Technology Partners
April 24, 2024 - Step by step instructions to create a Visual Studio offline installer to make a faster development enviroment configuration.
Find elsewhere
🌐
Poshtools
docs.poshtools.com › powershell-pro-tools-documentation › installation-and-configuration › visual-studio-offline-installation
Visual Studio Offline Installation | PowerShell Pro Tools
You will now need to download the PowerShell Tools VSIX file from the Visual Studio Marketplace. On a machine with an internet connection, double click the VSIX file. The online machine will install the certificate to the local machine. After the VSIX installer opens, click the Digital Signature link to view more information about the certificate.
🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 921225 › how-can-i-download-an-offline-install-file-of-visu
how can i download an offline install file of Visual studio - Microsoft Q&A
The process of installing, configuring, ... ... Welcome to Microsoft Q&A! You can refer to: Download the Visual Studio bootstrapper and do an offline installation of VS2022....
🌐
FreeCode Spot
freecodespot.com › free code › how do i install visual studio offline?
How do I install Visual Studio offline? | FreeCode Spot
August 8, 2025 - The latest version of Visual Studio removed the availability to download an offline installer. Instead, they offer to download a layout of the installer if you have unreliable network environments or no internet at all.
🌐
GitHub
gist.github.com › AliMD › a20c31732fbb1c190acb9127c4465468
Create an offline installation of Visual Studio · GitHub
cd C:\VisualStudioOffline vs_Enterprise.exe --layout C:\VisualStudioOffline\layout --add Microsoft.VisualStudio.Workload.NetWeb --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetCrossPlat --includeRecommended --includeOptional --lang en-US
Top answer
1 of 2
48

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.

  1. Download and Cache offline files:

    vs_community.exe --layout f:\vslayout.2019 --lang en-US
    
  2. Run 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>
2 of 2
27

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.

🌐
Firehouse Mouse
firehousemouse.com › how-to-make-an-offline-installer-visual-studio-2022
How To Make An Offline Installer Visual Studio 2022 - Firehouse Mouse
February 6, 2024 - This guide will show you the steps to create an offline installer for Microsoft Visual Studio 2022.
Call   8555066873
Address   PO Box 202, 14036, Corfu
🌐
Reddit
reddit.com › r/dotnet › is the vs 2022 offline installer available?
r/dotnet on Reddit: Is the VS 2022 offline installer available?
February 21, 2025 -

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

🌐
Itmastersltd
itmastersltd.com › kb › software › microsoft › visual-studio › create-an-offline-installation-of-visual-studio
Create an offline installation of Visual Studio – IT Masters LTD
Do not use the “Download all, ... an offline cache that you intend to transfer to another computer. It’s not designed to work that way. After you download a small bootstrapper, use the command line to create a local cache. Then, use the local cache to install Visual Studio...
🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 5611529 › how-to-install-visual-studio-2022-offline
How to install Visual Studio 2022 offline ? - Microsoft Q&A
Download the Visual Studio Installer: Start by downloading the Visual Studio installer from the Visual Studio page. Create an Offline Installer: Use the command line to create an offline installer.