diff --git a/New-ToastNotification.ps1 b/New-ToastNotification.ps1 index 2c033e5..c77b117 100644 --- a/New-ToastNotification.ps1 +++ b/New-ToastNotification.ps1 @@ -811,7 +811,7 @@ function Write-CustomActionRegistry() { New-Item "HKCU:\Software\Classes\$($ActionType)\shell\open\command" -Force -ErrorAction SilentlyContinue | Out-Null New-ItemProperty -LiteralPath "HKCU:\Software\Classes\$($ActionType)" -Name 'URL Protocol' -Value '' -PropertyType String -Force -ErrorAction SilentlyContinue | Out-Null New-ItemProperty -LiteralPath "HKCU:\Software\Classes\$($ActionType)" -Name '(default)' -Value "URL:$($ActionType) Protocol" -PropertyType String -Force -ErrorAction SilentlyContinue | Out-Null - $RegCommandValue = $RegCommandPath + '\' + "$($ActionType).cmd" + $RegCommandValue = $RegCommandPath + '\' + "$($ActionType).cmd %1" New-ItemProperty -LiteralPath "HKCU:\Software\Classes\$($ActionType)\shell\open\command" -Name '(default)' -Value $RegCommandValue -PropertyType String -Force -ErrorAction SilentlyContinue | Out-Null } catch {