Skip to content

LeaDevelop/chocolatey-offline-installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

Chocolatey offline installer

This repository serves as my reference when working in environments that lack configuration management or require offline installation. It's based on official documentation: Completely offline install.

  1. Prerequisites are present on Windows machine:

    1.1. Official download links for offline prerequisites:

  2. Downloaded install.ps1 script from https://community.chocolatey.org/install.ps1
    Locate into your preferred directory, for this example I used C:\OfflineInstaller

  3. Download Chocolatey package you intend to install, locate it to same directory as install.ps1 in previous step.

  4. In install.ps1 file I edited value for $ChocolateyDownloadUrl =. Do check the script and adjust it to your liking❕

[CmdletBinding(DefaultParameterSetName = 'Default')]
param(
    # The URL to download Chocolatey from. This defaults to the value of
    # $env:chocolateyDownloadUrl, if it is set, and otherwise falls back to the
    # official Chocolatey community repository to download the Chocolatey package.
    # Can be used for offline installation by providing a path to a Chocolatey.nupkg.
    [Parameter(Mandatory = $false)]
    [string]
    $ChocolateyDownloadUrl = 'file:C:\OfflineInstaller\chocolatey.2.7.1.nupkg',
  1. Open up PowerShell and run install.ps1

This project includes content derived from the official Chocolatey documentation.
Portions of this documentation are modifications based on work created and shared by the Chocolatey community.
Official Chocolatey Documentation :: Official License Apache License 2.0

About

Chocolatey offline installer

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors