Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (19 sloc) 1.426 kb
$here = Split-Path -Parent $MyInvocation.MyCommand.Definition
$src = Join-Path (Split-Path $here) 'src'
$script = Join-Path $src 'chocolatey.ps1'
$functionRenames = Join-Path $here '_FunctionRenameActuals.ps1'
$setup = Join-Path $here '_Setup.ps1'
$initializeVariables = Join-Path $here '_Initialize-Variables.ps1'
$installModule = Join-Path (Join-Path $src 'helpers') 'chocolateyInstaller.psm1'
Import-Module $installModule -Function Start-ChocolateyProcessAsAdmin, Install-ChocolateyPackage, Install-ChocolateyZipPackage, Install-ChocolateyPowershellCommand, Get-ChocolateyWebFile, Install-ChocolateyInstallPackage, Get-ChocolateyUnzip, Write-ChocolateySuccess, Write-ChocolateyFailure, Install-ChocolateyPath, Install-ChocolateyDesktopLink, Install-ChocolateyPinnedTaskBarItem, Install-ChocolateyExplorerMenuItem, Install-ChocolateyFileAssociation, Install-ChocolateyEnvironmentVariable
if(Get-Module chocolatey){Remove-Module chocolatey}
Import-Module $script
if(Get-Module _FunctionRenameActuals){Remove-Module _FunctionRenameActuals}
Import-Module $functionRenames
# grab functions from files
Resolve-Path $here\functions\*.ps1 | % { . $_.ProviderPath }
Resolve-Path $here\helpers\*.ps1 | % { . $_.ProviderPath }
if(Get-Module _Setup){Remove-Module _Setup}
Import-Module $setup
if(Get-Module _Initialize-Variables){Remove-Module _Initialize-Variables}
Import-Module $initializeVariables
Jump to Line
Something went wrong with that request. Please try again.