Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am thecakeisnaoh on github.
  • I am thecakeisnaoh (https://keybase.io/thecakeisnaoh) on keybase.
  • I have a public key ASBo3IdMqeC7AAaRYrmy2IpQMEiqUoZNgDQsGc84Xw_l7Qo

To claim this, I am signing this object:

@TheCakeIsNaOH
TheCakeIsNaOH / override-installdir.ps1
Created June 24, 2020 22:08
Use a packages.config with the chocolatey global directory override.
param(
[parameter(Mandatory=$false, Position=1)][string]$installDir = 'C:\',
[parameter(Mandatory=$false, Position=0)][string]$pkgConfigPath = (Join-Path "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" 'install.config')
)
if (!(Test-Path $installDir)) {
Throw 'did not find override directory'
}
if (!(Test-Path $pkgConfigPath)) {
-----BEGIN CERTIFICATE-----
MIIE0DCCA7igAwIBAgIBBzANBgkqhkiG9w0BAQsFADCBgzELMAkGA1UEBhMCVVMx
EDAOBgNVBAgTB0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2RhbGUxGjAYBgNVBAoT
EUdvRGFkZHkuY29tLCBJbmMuMTEwLwYDVQQDEyhHbyBEYWRkeSBSb290IENlcnRp
ZmljYXRlIEF1dGhvcml0eSAtIEcyMB4XDTExMDUwMzA3MDAwMFoXDTMxMDUwMzA3
MDAwMFowgbQxCzAJBgNVBAYTAlVTMRAwDgYDVQQIEwdBcml6b25hMRMwEQYDVQQH
EwpTY290dHNkYWxlMRowGAYDVQQKExFHb0RhZGR5LmNvbSwgSW5jLjEtMCsGA1UE
CxMkaHR0cDovL2NlcnRzLmdvZGFkZHkuY29tL3JlcG9zaXRvcnkvMTMwMQYDVQQD
EypHbyBEYWRkeSBTZWN1cmUgQ2VydGlmaWNhdGUgQXV0aG9yaXR5IC0gRzIwggEi
MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC54MsQ1K92vdSTYuswZLiBCGzD
@TheCakeIsNaOH
TheCakeIsNaOH / Update-AUPackages.md
Last active November 3, 2024 18:04
Update-AUPackages Report #powershell #chocolatey