full_path stringlengths 31 232 | filename stringlengths 4 167 | content stringlengths 0 48.3M |
|---|---|---|
PowerShellCorpus/Github/episource_my-chocolatey/pip/python3-pip-jedi/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
. $PSScriptRoot/../pip-common.ps1
$pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name
New-AutoPip |
PowerShellCorpus/Github/episource_my-chocolatey/pip/python2-pip-colorama/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
. $PSScriptRoot/../pip-common.ps1
$pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name
New-AutoPip |
PowerShellCorpus/Github/episource_my-chocolatey/pip/python2-pip-packaging/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
. $PSScriptRoot/../pip-common.ps1
$pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name
New-AutoPip |
PowerShellCorpus/Github/episource_my-chocolatey/pip/python3-pip-decorator/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
. $PSScriptRoot/../pip-common.ps1
$pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name
New-AutoPip |
PowerShellCorpus/Github/episource_my-chocolatey/pip/python3-pip-traitlets/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
. $PSScriptRoot/../pip-common.ps1
$pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name
New-AutoPip |
PowerShellCorpus/Github/episource_my-chocolatey/pip/python3-pip-simplegeneric/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
. $PSScriptRoot/../pip-common.ps1
$pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name
New-AutoPip |
PowerShellCorpus/Github/episource_my-chocolatey/pip/python2-pip-pathlib2/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
. $PSScriptRoot/../pip-common.ps1
$pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name
New-AutoPip |
PowerShellCorpus/Github/episource_my-chocolatey/pip/python3-pip-setuptools/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
. $PSScriptRoot/../pip-common.ps1
$pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name
New-AutoPip |
PowerShellCorpus/Github/episource_my-chocolatey/pip/python3-pip-six/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
. $PSScriptRoot/../pip-common.ps1
$pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name
New-AutoPip |
PowerShellCorpus/Github/episource_my-chocolatey/pip/python2-pip-setuptools/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
. $PSScriptRoot/../pip-common.ps1
$pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name
New-AutoPip |
PowerShellCorpus/Github/episource_my-chocolatey/pip/python3-pip-sip/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
. $PSScriptRoot/../pip-common.ps1
$pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name
New-AutoPip |
PowerShellCorpus/Github/episource_my-chocolatey/pip/python2-pip-backports.shutil-get-terminal-size/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
. $PSScriptRoot/../pip-common.ps1
$pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name
New-AutoPip |
PowerShellCorpus/Github/episource_my-chocolatey/pip/python3-pip-pygments/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
. $PSScriptRoot/../pip-common.ps1
$pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name
New-AutoPip |
PowerShellCorpus/Github/episource_my-chocolatey/pip/python2-pip-enum34/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
. $PSScriptRoot/../pip-common.ps1
$pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name
New-AutoPip |
PowerShellCorpus/Github/episource_my-chocolatey/pip/python2-pip-win-unicode-console/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
. $PSScriptRoot/../pip-common.ps1
$pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name
New-AutoPip |
PowerShellCorpus/Github/episource_my-chocolatey/pip/python2-pip-ipython/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
. $PSScriptRoot/../pip-common.ps1
$pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name
$additionalDependencies = @(
@{ Id = "startmenu.extension"; Version="[1.1.1,)" }
@{ ID = "shimgen.extension"; Version="[2.0.2,)" }
)
$postInsta... |
PowerShellCorpus/Github/episource_my-chocolatey/pip/python2-pip-python-qt5/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
. $PSScriptRoot/../pip-common.ps1
$pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name
New-AutoPip |
PowerShellCorpus/Github/episource_my-chocolatey/pip/python2-pip-scandir/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
. $PSScriptRoot/../pip-common.ps1
$pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name
$additionalDependencies = @(
@{ Id = "vcpython27"; Version="[9.0.0,)" }
)
New-AutoPip |
PowerShellCorpus/Github/episource_my-chocolatey/pip/python2-pip-pygments/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
. $PSScriptRoot/../pip-common.ps1
$pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name
New-AutoPip |
PowerShellCorpus/Github/episource_my-chocolatey/pip/python2-pip-decorator/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
. $PSScriptRoot/../pip-common.ps1
$pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name
New-AutoPip |
PowerShellCorpus/Github/episource_my-chocolatey/pip/python2-pip-simplegeneric/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
. $PSScriptRoot/../pip-common.ps1
$pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name
New-AutoPip |
PowerShellCorpus/Github/episource_my-chocolatey/pip/python3-pip-wcwidth/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
. $PSScriptRoot/../pip-common.ps1
$pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name
New-AutoPip |
PowerShellCorpus/Github/episource_my-chocolatey/pip/python2-pip-pickleshare/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
. $PSScriptRoot/../pip-common.ps1
$pkgId = $(Get-Item $MyInvocation.MyCommand.Definition).Directory.Name
New-AutoPip |
PowerShellCorpus/Github/episource_my-chocolatey/chocolatey/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
#
# This script downloads a prebuild nupkg from the chocolatey galery
#
# Determine latest version
$versions = Invoke-Webrequest -UseBasicParsing `
"https://chocolatey.org/api/v... |
PowerShellCorpus/Github/episource_my-chocolatey/freecad/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
Set-StrictMode -Version latest
$ErrorAction = "Stop"
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
Get-VersionInfoFromGithub -Repo "FreeCAD/FreeCAD" -File "FreeCAD-(?<VERSION>\d+\.\d+\.\d+).*-WIN-x64_Installer.*\.exe" -EnableRegex... |
PowerShellCorpus/Github/episource_my-chocolatey/freecad/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | Set-StrictMode -Version latest
$ErrorAction = "Stop"
$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"
$installerExe = Get-Item "$toolsDir/*.exe"
Get-ChocolateyUnzip -FileFullPath $installerExe.FullName -Destination $toolsDir
Remove-Item $installerExe
Remove-Item "$toolsDir/uninstall.exe"... |
PowerShellCorpus/Github/episource_my-chocolatey/greenshot/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
Set-StrictMode -Version latest
$ErrorAction = "Stop"
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
# Query github API to get url and version of the latest release
$repo = 'greenshot/greenshot'
$distfile = "Greenshot-NO-INSTALLER... |
PowerShellCorpus/Github/episource_my-chocolatey/greenshot/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | Set-StrictMode -Version latest
$ErrorAction = "Stop"
$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"
# Enable per-user configuration
Remove-Item "$toolsDir/greenshot.ini"
# Start Menu
$exe = Get-Item "$toolsDir/Greenshot.exe"
Install-StartMenuLink -LinkName "Greenshot" -TargetPath ... |
PowerShellCorpus/Github/episource_my-chocolatey/notepadplusplus-config/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
New-Package |
PowerShellCorpus/Github/episource_my-chocolatey/notepadplusplus-config/tools/chocolateyCommon.ps1 | chocolateyCommon.ps1 | Set-StrictMode -Version latest
$ErrorActionPreference = "Stop"
$destdir = $(Split-Path -parent $MyInvocation.MyCommand.Definition)
$nppdir = Join-Path $destdir "../../notepadplusplus/tools"
$configModel = Join-Path $nppdir "config.model.xml"
$configModelBackup = "$configModel.bak"
$stylersModel ... |
PowerShellCorpus/Github/episource_my-chocolatey/notepadplusplus-config/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | . $PSScriptRoot/chocolateyCommon.ps1
function Update-Config($xml, $xpath, $config) {
ForEach ($configKey in $config.Keys) {
$configValue = $config.$configKey
$node = ($xml | Select-Xml $xpath).Node
$node.$configKey = $configValue
}
}
# Revert previous modific... |
PowerShellCorpus/Github/episource_my-chocolatey/notepadplusplus-config/tools/chocolateyUninstall.ps1 | chocolateyUninstall.ps1 | . $PSScriptRoot/chocolateyCommon.ps1
# Restore backup
If (Test-Path -Path $configModelBackup) {
Move-item $configModelBackup $configModel -Force
}
If (Test-Path -Path $stylersModelBackup) {
Move-item $stylersModelBackup $stylersModel -Force
}
If (Test-Path -Path $shortcutsBackup) {
Move-item $sho... |
PowerShellCorpus/Github/episource_my-chocolatey/7plus-taskbar-tweaker/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
$fileUrl = "http://rammichael.com/downloads/7tt_setup.exe"
$infoUrl = "${fileUrl}?version&changelog=0.0"
$infoResponse = Invoke-WebRequest -UseBasicParsing $infoUrl
$versionAndChan... |
PowerShellCorpus/Github/episource_my-chocolatey/7plus-taskbar-tweaker/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | $toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"
Set-Location $toolsDir
$installer = Get-Item "7tt_setup.exe"
Get-ChocolateyUnzip -FileFullPath $installer.FullName -Destination $toolsDir
Move-Item -Force "bin/64/7+ Taskbar Tweaker.ex2" "$toolsDir/7+ Taskbar Tweaker.exe"
Move-Item -Force "bi... |
PowerShellCorpus/Github/episource_my-chocolatey/gesturesign/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
function Normalize-Version($versionString) {
$versionParts = $versionString.
TrimStart("v").
Split(".", [StringSplitOptions]::RemoveEmptyEntries)
Fo... |
PowerShellCorpus/Github/episource_my-chocolatey/gesturesign/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | Set-StrictMode -Version latest
$ErrorActionPreference = "Stop"
$destdir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"
$startMenu = @{ LinkName="GestureSign"; TargetPath="$destdir\GestureSign.exe" }
# Extract GestureSign
Set-Location $destdir
$setupExe = Get-Item "GestureSignSetup-*.exe"
Get-... |
PowerShellCorpus/Github/episource_my-chocolatey/gesturesign/tools/chocolateyUninstall.ps1 | chocolateyUninstall.ps1 | Set-StrictMode -Version latest
$ErrorActionPreference = "Stop"
Unregister-ScheduledTask -TaskName "GestureSignAutoRunTask" `
-ErrorAction Continue | Out-Null |
PowerShellCorpus/Github/episource_my-chocolatey/processhacker/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
# Query github API to get url and version of the latest release
$repo = "processhacker2/processhacker2"
$filename = "ProcessHacker-[0-9\.]+-bin\.zip"
# Export the package (subject to ... |
PowerShellCorpus/Github/episource_my-chocolatey/processhacker/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | Set-StrictMode -Version latest
$ErrorActionPreference = "Stop"
$destdir = Split-Path -parent $MyInvocation.MyCommand.Definition
$arch = "x64"
If (Get-OSArchitectureWidth -Compare 32) {
$arch = "x86"
}
$appname = "ProcessHacker"
$exename = "$appname.exe"
$startname = "$appname ($arch)"
$x86... |
PowerShellCorpus/Github/episource_my-chocolatey/processhacker/tools/chocolateyUninstall.ps1 | chocolateyUninstall.ps1 | Set-StrictMode -Version latest
$ErrorActionPreference = "Stop"
$destdir = Split-Path -parent $MyInvocation.MyCommand.Definition
$drvname = "kprocesshacker.sys"
$x64dir = Join-Path $destDir "x64"
$drvsys = Join-Path $x64dir $drvname
# Try to stop KProcessHacker service (otherwise kprocesshacker.sys... |
PowerShellCorpus/Github/episource_my-chocolatey/hashcheck-config/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
New-Package |
PowerShellCorpus/Github/episource_my-chocolatey/hashcheck-config/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | $myConfig = @{
"SOFTWARE\HashCheck" = @{
# Configuration of the HashCheck context menu entry
# -> show HashCheck entry only in extend context menu (shift +
# right click). Possible options are:
# => https://github.com/gurnec/HashCheck/blob/v2.4.0/CHashCheck.cpp#L111
... |
PowerShellCorpus/Github/episource_my-chocolatey/cdburnerxp/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
Set-StrictMode -Version latest
$ErrorAction = "Stop"
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
# Determine latest version + file url
$dlIndexUrl = "https://cdburnerxp.se/en/download"
$dlIndexRaw = Invoke-WebRequest -UseBasicPa... |
PowerShellCorpus/Github/episource_my-chocolatey/cdburnerxp/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | Set-StrictMode -Version latest
$ErrorAction = "Stop"
$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"
$withShim = @( "cdbxpcmd.exe", "cdbxpp.exe" )
Set-AutoShim -Pattern $withShim -Invert -Mode Ignore | Out-Null
Install-StartMenuLink -LinkName "CDBurnerXP" -TargetPath "$toolsDir/cdbxpp.... |
PowerShellCorpus/Github/episource_my-chocolatey/npcap/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
Set-StrictMode -Version latest
$ErrorAction = "Stop"
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
$apiArgs = @{ ApiEndpoint = "/repos/nmap/npcap/releases/latest" }
$apiToken = Get-Variable "CFGithubToken" -ErrorAction SilentlyCo... |
PowerShellCorpus/Github/episource_my-chocolatey/npcap/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | Set-StrictMode -Version latest
$ErrorAction = "Stop"
$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"
$exeInstaller = Get-Item "$toolsDir/npcap-*.exe"
# /S : silent install
# npf_startup=yes : start driver at boot time
# loopback_support=yes : capture loopback traffic
# dlt_null=yes : d... |
PowerShellCorpus/Github/episource_my-chocolatey/nirsoft-regdllview/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
Set-StrictMode -Version latest
$ErrorAction = "Stop"
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
$startTitle = "RegDllView (x64)"
$exeName = "RegDllView.exe"
$zipUrl = "http://www.nirsoft.net/utils/regdllview-x64.zip"
$chan... |
PowerShellCorpus/Github/episource_my-chocolatey/gesturesign-config/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
New-Package |
PowerShellCorpus/Github/episource_my-chocolatey/gesturesign-config/tools/chocolateyCommon.ps1 | chocolateyCommon.ps1 | Set-StrictMode -Version latest
$ErrorActionPreference = "Stop"
$toolsDir = Split-Path -Parent $MyInvocation.MyCommand.Definition
$gestureSignDir = Join-Path $toolsDir "../../gesturesign/tools" |
PowerShellCorpus/Github/episource_my-chocolatey/gesturesign-config/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | . $PSScriptRoot/chocolateyCommon.ps1
Set-Location $gestureSignDir
Rename-Item "Defaults" "Defaults.old" | Out-Null
Copy-Item -Recurse "$toolsDir/Defaults" "Defaults" | Out-Null |
PowerShellCorpus/Github/episource_my-chocolatey/gesturesign-config/tools/chocolateyUninstall.ps1 | chocolateyUninstall.ps1 | . $PSScriptRoot/chocolateyCommon.ps1
Set-Location $gestureSignDir
If (Test-Path -Type Container "Defaults.old") {
Remove-Item -Recurse "Defaults" | Out-Null
Rename-Item "Defaults.old" "Defaults" | Out-Null
}
|
PowerShellCorpus/Github/episource_my-chocolatey/python3-x86/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
Set-StrictMode -Version latest
$ErrorAction = "Stop"
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
Select-BuildDependency -Name "wix" -Version "3.11" | Out-Null
$dlIndexUrl = "https://www.python.org/downloads/windows/"
$dlInde... |
PowerShellCorpus/Github/episource_my-chocolatey/python3-x86/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | Set-StrictMode -Version latest
$ErrorAction = "Stop"
$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"
$setupDir = Join-Path $toolsDir "_setup"
# 1. Extract Features
# See also:
# -> https://docs.python.org/3/using/windows.html
# -> https://github.com/python/cpython/tree/master/Tools/msi/b... |
PowerShellCorpus/Github/episource_my-chocolatey/python3-x86/tools/chocolateyUninstall.ps1 | chocolateyUninstall.ps1 | Set-StrictMode -Version latest
$ErrorAction = "Stop"
$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"
Start-Process -Wait -WindowStyle Hidden "$toolsDir\python.exe" `
@( "-E", "-s", "-B", "-m", "ensurepip._uninstall" ) |
PowerShellCorpus/Github/episource_my-chocolatey/notepadplusplus/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
function _Resolve-Uri($pageUri, $linkUri) {
return New-object -TypeName System.Uri -ArgumentList `
@([System.Uri]$pageUri, $linkUri) | `
Select-Object -ExpandProperty "A... |
PowerShellCorpus/Github/episource_my-chocolatey/notepadplusplus/tools/chocolateyCommon.ps1 | chocolateyCommon.ps1 | Set-StrictMode -Version latest
$ErrorActionPreference = "Stop"
$destdir = $(Split-Path -parent $MyInvocation.MyCommand.Definition)
$startPath = Join-Path `
([Environment]::GetFolderPath([Environment+SpecialFolder]::Programs)) `
"Chocolatey"
$exe = Join-Path $destDir "notepad++.exe"
$startNa... |
PowerShellCorpus/Github/episource_my-chocolatey/notepadplusplus/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | . $PSScriptRoot/chocolateyCommon.ps1
# Enable per-user configuration
Remove-Item -Path "$destDir/doLocalConf.xml"
# Install start menu shortcut
Install-StartMenuLink -LinkName $startName -TargetPath $exe
# Install context menu entry
$menuCmdKey = "$menuKey/Command"
If (-not (Test-Path -LiteralPath $men... |
PowerShellCorpus/Github/episource_my-chocolatey/notepadplusplus/tools/chocolateyUninstall.ps1 | chocolateyUninstall.ps1 | . $PSScriptRoot/chocolateyCommon.ps1
# Uninstall context menu entry
If (Test-Path -LiteralPath $menuKey) {
Remove-Item -Force -Recurse -LiteralPath $menuKey
} |
PowerShellCorpus/Github/episource_my-chocolatey/ilspy/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
Set-StrictMode -Version latest
$ErrorAction = "Stop"
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
# Query github API to get url and version of the latest release
$repo = 'icsharpcode/ILSpy'
$filename = "ILSpy_Master_\d+(\.\d+){... |
PowerShellCorpus/Github/episource_my-chocolatey/ilspy/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | Set-StrictMode -Version latest
$ErrorAction = "Stop"
$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"
$exe = Join-Path $toolsDir "ILSpy.exe"
Install-StartMenuLink -LinkName "ILSpy" -TargetPath $exe |
PowerShellCorpus/Github/episource_my-chocolatey/7zip-config/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
New-Package |
PowerShellCorpus/Github/episource_my-chocolatey/7zip-config/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | $myConfig = @{
"SOFTWARE\7-Zip\Options" = @{
# Configuration of the 7-Zip Context Menu:
# => HKEY_CURRENT_USER\SOFTWARE\7-Zip\Options\ContextMenu
# - Default value is 80003f77
# - Default value is used if registry entry is missing
# - MSI installer does not create regis... |
PowerShellCorpus/Github/episource_my-chocolatey/paint.net/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
Set-StrictMode -Version latest
$ErrorAction = "Stop"
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
$dlIndexUrl = "http://www.getpaint.net/updates/versions.8.1000.0.x64.en.txt"
$dlIndexRaw = Invoke-WebRequest -UseBasicParsing $dlI... |
PowerShellCorpus/Github/episource_my-chocolatey/paint.net/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | Set-StrictMode -Version latest
$ErrorAction = "Stop"
$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"
$tmpDir = Join-Path $toolsDir "tmp"
# 1. Extract Installer
$instExe = Get-Item "$toolsDir\paint.net*install.exe"
Get-ChocolateyUnzip -FileFullPath $instExe.FullName -Destination $tmpDi... |
PowerShellCorpus/Github/episource_my-chocolatey/sysinternals-dbgview/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
Set-StrictMode -Version latest
$ErrorAction = "Stop"
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
$startTitle = "DebugView"
$exeName = "Dbgview.exe"
New-Package -VersionInfo @{
Version = "file:tools/$exeName"
} -Prepa... |
PowerShellCorpus/Github/episource_my-chocolatey/oraclejdk/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
Set-StrictMode -Version latest
$ErrorAction = "Stop"
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
# Retrieve version + url
$dlIndexUrl = "http://www.oracle.com/technetwork/java/javase/downloads/index.html"
$dlIndexRaw = Invok... |
PowerShellCorpus/Github/episource_my-chocolatey/oraclejdk/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | Set-StrictMode -Version latest
$ErrorAction = "Stop"
$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"
$tmpDir = Join-Path $toolsDir "tmp"
# Extract tools.zip
# Credits: https://techtavern.wordpress.com/2014/03/25/portable-java-8-sdk-on-windows/
$installerExe = Get-Item "$toolsDir/jdk-*... |
PowerShellCorpus/Github/episource_my-chocolatey/oraclejdk/tools/chocolateyUninstall.ps1 | chocolateyUninstall.ps1 | Set-StrictMode -Version latest
$ErrorAction = "Stop"
$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"
# Uninstall JAVA_HOME
Uninstall-ChocolateyEnvironmentVariable `
-VariableType 'Machine' -VariableName 'JAVA_HOME'
|
PowerShellCorpus/Github/episource_my-chocolatey/_template/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
Set-StrictMode -Version latest
$ErrorAction = "Stop"
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
# Note: this file should be encoded as "UTF8 with BOM"
Throw "Not implemented"
$versionInfo = # TODO
New-Package -VersionInfo ... |
PowerShellCorpus/Github/episource_my-chocolatey/_template/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | Set-StrictMode -Version latest
$ErrorAction = "Stop"
$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"
# Note: this file should be encoded as "UTF8 with BOM"
Throw "Not implemented" |
PowerShellCorpus/Github/episource_my-chocolatey/powershell/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
New-Package @{
Version = "5.0.10586.494"
FileUrl = @()
Checksum = @()
ReleaseNotes = @"
v5.0.10586.494 - Initial package version based on powershell for wi... |
PowerShellCorpus/Github/episource_my-chocolatey/powershell/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | # Note: this package does not install powershell. It simply checks whether a
# compatible version is already installed.
$wantedVersion = [Version]$env:chocolateyPackageVersion.Split("+-")[0]
$installedVersion = [Version]$PSVersionTable.PSVersion
If ($installedVersion -lt $wantedVersion) {
Throw "The insta... |
PowerShellCorpus/Github/episource_my-chocolatey/hashcheck/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
# Query github API to get url and version of the latest release
$repo = 'gurnec/HashCheck'
$filename = "HashCheckSetup-v[0-9\.]+\.exe"
$hashfile = "HashCheckSetup-v[0-9\.]+\.exe\.sha256"
... |
PowerShellCorpus/Github/episource_my-chocolatey/hashcheck/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | $packageName = 'HashCheck Shell Extension'
$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"
$fileLocation = Get-ChildItem "$toolsDir/HashCheckSetup-v*.exe"
$installerType = 'exe'
$silentArgs = '/S'
$validExitCodes = @( 0 )
Install-ChocolateyInstallPackage - PackageName "$packageName" `
... |
PowerShellCorpus/Github/episource_my-chocolatey/hashcheck/tools/chocolateyUninstall.ps1 | chocolateyUninstall.ps1 | # stop on all errors
$ErrorActionPreference = 'Stop';
$packageName = 'HashCheck Shell Extension'
$installerType = 'exe'
$silentArgs = '/s /u /i /n C:\Windows\System32\ShellExt\HashCheck.dll'
$validExitCodes = @(0)
if (Test-Path 'C:\Windows\SysWOW64\ShellExt\HashCheck.dll') {
$exeToRun = 'C:\Windows\SysW... |
PowerShellCorpus/Github/episource_my-chocolatey/imgburn/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
Set-StrictMode -Version latest
$ErrorAction = "Stop"
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
Select-BuildDependency -Name "7zip" -Version "16.4.0" | Out-Null
$dlIndexUrl = "http://www.imgburn.com/index.php?act=download"
$d... |
PowerShellCorpus/Github/episource_my-chocolatey/imgburn/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | Set-StrictMode -Version latest
$ErrorAction = "Stop"
$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"
Set-AutoShim -Pattern "ImgBurn.exe" -Invert -Mode Ignore | Out-Null
Install-StartMenuLink -LinkName "ImgBurn" -TargetPath "$toolsDir\ImgBurn.exe"
|
PowerShellCorpus/Github/episource_my-chocolatey/velocity/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
Set-StrictMode -Version latest
$ErrorAction = "Stop"
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
# Query download page
$downloadPageUrl = "http://velocity.silverlakesoftware.com/"
$response = Invoke-WebRequest -UseBasicParsing... |
PowerShellCorpus/Github/episource_my-chocolatey/velocity/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | Set-StrictMode -Version latest
$ErrorAction = "Stop"
# Extract msi
$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"
$msi = Get-Item "$toolsDir\VelocitySetup*.msi"
$pkg = Move-Item $msi "$toolsDir\.." -PassThru
Start-Process -Wait msiexec @(
"/a", $pkg, "/passive", "/qn",... |
PowerShellCorpus/Github/episource_my-chocolatey/sysinternals-procmon/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
Set-StrictMode -Version latest
$ErrorAction = "Stop"
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
$startTitle = "Process Monitor"
$exeName = "Procmon.exe"
New-Package -VersionInfo @{
Version = "file:tools/$exeName"
} ... |
PowerShellCorpus/Github/episource_my-chocolatey/nirsoft-regscanner/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
Set-StrictMode -Version latest
$ErrorAction = "Stop"
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
$startTitle = "RegScanner"
$exeName = "RegScanner.exe"
$zipUrl = "http://www.nirsoft.net/utils/regscanner-x64.zip"
$changelogU... |
PowerShellCorpus/Github/episource_my-chocolatey/virustotaluploader/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
Set-StrictMode -Version latest
$ErrorAction = "Stop"
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
$dlIndexUrl = "https://www.virustotal.com/de/documentation/desktop-applications/virustotal-uploader"
$dlIndexRaw = Invoke-WebReque... |
PowerShellCorpus/Github/episource_my-chocolatey/virustotaluploader/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | Set-StrictMode -Version latest
$ErrorAction = "Stop"
$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"
$installerExe = Get-Item "$toolsDir/*.exe"
Get-ChocolateyUnzip -FileFullPath $installerExe.FullName -Destination $toolsDir
Remove-Item $installerExe
Remove-Item "$toolsDir/uninstall.exe"
... |
PowerShellCorpus/Github/episource_my-chocolatey/nirsoft-appcrashview/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
Set-StrictMode -Version latest
$ErrorAction = "Stop"
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
$startTitle = "AppCrashView"
$exeName = "AppCrashView.exe"
$zipUrl = "http://www.nirsoft.net/utils/appcrashview.zip"
$changelo... |
PowerShellCorpus/Github/episource_my-chocolatey/treesizepro/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
$changesUrl = "https://www.jam-software.de/treesize/changes.shtml"
$downloadLoginUrl = "https://www.jam-software.de/customers/directDownload.php"
$downloadUrl = "https://www.jam-s... |
PowerShellCorpus/Github/episource_my-chocolatey/treesizepro/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | $toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"
$installerExe = Join-Path $toolsDir "TreeSize-x64-Full.exe"
$restartExitCode = 3010
$installerArgs = "/verysilent /norestart /restartexitcode=$restartExitCode"
$validExitCodes = @(
0, # all ok
$restartExitCode #r... |
PowerShellCorpus/Github/episource_my-chocolatey/treesizepro/tools/chocolateyUninstall.ps1 | chocolateyUninstall.ps1 | $instDir = (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\TreeSize_is1').InstallLocation
Location
$restartExitCode = 3010
$uninstallArgs = "/verysilent /norestart /suppressmsgboxes /restartexitcode=$restartExitCode"
$uninstallExe = Join-Path $instDir "unins000.exe"
$val... |
PowerShellCorpus/Github/episource_my-chocolatey/speedcrunch/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
Set-StrictMode -Version latest
$ErrorAction = "Stop"
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
$dlIndexUrl = "http://speedcrunch.org/download.html"
$dlIndexRaw = Invoke-WebRequest -UseBasicParsing $dlIndexUrl
# don't use t... |
PowerShellCorpus/Github/episource_my-chocolatey/speedcrunch/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | Set-StrictMode -Version latest
$ErrorAction = "Stop"
$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"
$installerExe = Get-Item "$toolsDir/SpeedCrunch*.exe"
Get-ChocolateyUnzip -FileFullPath $installerExe.FullName -Destination $toolsDir
# Remove installer + installer internals that hav... |
PowerShellCorpus/Github/episource_my-chocolatey/conemu-task-putty/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
New-Package |
PowerShellCorpus/Github/episource_my-chocolatey/conemu-task-putty/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | $toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"
$puttyExe = Join-Path $toolsDir "../../putty/tools/PUTTY.EXE"
@(
@{
"_SortKey" = "210"
"Active" = 0x00000000
"Cmd1" = "$puttyExe"
"Count" = 0x00000001
"Flags" = 0x00000000
... |
PowerShellCorpus/Github/episource_my-chocolatey/nirsoft-whatishang-x86/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
Set-StrictMode -Version latest
$ErrorAction = "Stop"
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
$startTitle = "WhatIsHang (x86)"
$exeName = "WhatIsHang.exe"
$zipUrl = "http://www.nirsoft.net/utils/whatishang.zip"
$changelo... |
PowerShellCorpus/Github/episource_my-chocolatey/sysinternals-autoruns/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
Set-StrictMode -Version latest
$ErrorAction = "Stop"
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
$startTitle = "Autoruns"
$exeName = "autoruns.exe"
New-Package -VersionInfo @{
Version = "file:tools/$exeName"
} -Prepa... |
PowerShellCorpus/Github/episource_my-chocolatey/nirsoft-regfromapp-x86/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
Set-StrictMode -Version latest
$ErrorAction = "Stop"
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
$startTitle = "RegFromApp (x86)"
$exeName = "RegFromApp.exe"
$zipUrl = "http://www.nirsoft.net/utils/regfromapp.zip"
$changelo... |
PowerShellCorpus/Github/episource_my-chocolatey/x64dbg-ollydumpex/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
Set-StrictMode -Version latest
$ErrorAction = "Stop"
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
$dlIndexRaw = Invoke-WebRequest -UseBasicParsing "http://low-priority.appspot.com/ollydumpex/"
$dlIndexRaw -match "(?si)<a href=""... |
PowerShellCorpus/Github/episource_my-chocolatey/x64dbg-ollydumpex/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | Set-StrictMode -Version latest
$ErrorAction = "Stop"
$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"
$x64dbgDir = Join-Path $toolsDir "../../x64dbg/tools"
New-Item -Type Directory "$x64dbgDir/release/x64/plugins" -ErrorAction SilentlyContinue
Copy-Item "$toolsDir/*/OllyDumpEx_X64Dbg.dp... |
PowerShellCorpus/Github/episource_my-chocolatey/x64dbg-ollydumpex/tools/chocolateyUninstall.ps1 | chocolateyUninstall.ps1 | Set-StrictMode -Version latest
$ErrorAction = "Stop"
$toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"
$x64dbgDir = Join-Path $toolsDir "../../x64dbg/tools"
Remove-Item "$x64dbgDir/release/x64/plugins/OllyDumpEx_X64Dbg.dp64"
Remove-Item "$x64dbgDir/release/x32/plugins/OllyDumpEx_X64Dbg.d... |
PowerShellCorpus/Github/episource_my-chocolatey/tortoisegit/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
# Find download url + version
$downloadPageUrl = "https://tortoisegit.org/download/"
$downloadPageContent = Invoke-WebRequest -UseBasicParsing -Uri $downloadPageUrl
$msiUrl = $Downl... |
PowerShellCorpus/Github/episource_my-chocolatey/tortoisegit/tools/chocolateyInstall.ps1 | chocolateyInstall.ps1 | $toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"
Set-Location $toolsDir
$msiArgs = '/quiet /qn /norestart REBOOT=ReallySupress ADDLOCAL=ALL REMOVE=CrashReporter,ProtocolAssocGithub,ProtocolAssocSmartgit'
$validExitCodes = @(
# https://msdn.microsoft.com/en-us/library/windows/desktop/a... |
PowerShellCorpus/Github/episource_my-chocolatey/wix/_build.ps1 | _build.ps1 | # Enable common parameters
[CmdletBinding()] Param()
Set-StrictMode -Version latest
$ErrorAction = "Stop"
# Import my-chocolatey config & modules
. $PSScriptRoot/../_root.ps1
$cache = @{ changes = "" }
$vi = Get-VersionInfoFromGithub `
-Repo "wixtoolset/wix3" -File "wix\d+-binaries.zip" -EnableRegex... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.