bug fixes

This commit is contained in:
Chris Titus
2024-02-07 11:18:04 -06:00
parent d0aa396c2a
commit f39deab555
8 changed files with 15 additions and 141 deletions

View File

@ -37,7 +37,7 @@ function Invoke-WPFShortcut {
$Shortcut = $WshShell.CreateShortcut($FileBrowser.FileName)
$Shortcut.TargetPath = $SourceExe
$Shortcut.Arguments = $ArgumentsToSourceExe
if ($iconPath -ne $null) {
if ($null -ne $iconPath) {
$shortcut.IconLocation = $iconPath
}
$Shortcut.Save()