We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3d76f5e + c1c1eac commit e3c2e5dCopy full SHA for e3c2e5d
automatic/keepass-plugin-keeautoexec/tools/chocolateyInstall.ps1
@@ -11,8 +11,9 @@ if ([array]$key = Get-UninstallRegistryKey -SoftwareName $packageSearch) {
11
}
12
13
if ([string]::IsNullOrEmpty($installPath)) {
14
- Write-Verbose "Searching '$env:ChocolateyBinRoot' for portable install..."
15
- $portPath = Join-Path -Path $env:ChocolateyBinRoot -ChildPath "keepass"
+ $portableInstallPath = Get-ToolsLocation
+ Write-Verbose "Searching '$($portableInstallPath)' for portable install..."
16
+ $portPath = Join-Path -Path $portableInstallPath -ChildPath "keepass"
17
$installPath = Get-ChildItem -Directory "$portPath*" -ErrorAction SilentlyContinue
18
19
0 commit comments