18 lines
557 B
PowerShell
18 lines
557 B
PowerShell
function Remove-AllInvalidComponentInstallerPath {
|
|
<#
|
|
.SYNOPSIS
|
|
Due to a legacy issue where a space was inadvertently missing in an installer path, some systems have a bad path present.
|
|
This function will remove that if found.
|
|
#>
|
|
[CmdletBinding()]
|
|
[OutputType([void])]
|
|
param (
|
|
)
|
|
|
|
$alkamiPDPath = (Join-Path -Path $env:ProgramData -ChildPath "Alkami")
|
|
$installerPath = (Join-Path -Path $alkamiPDPath -ChildPath "Installer-ChildPath")
|
|
|
|
if (Test-Path $installerPath) {
|
|
Remove-Item -Path $installerPath -Force
|
|
}
|
|
} |