From acc2973fd946ea62eb2fe96ed9a1ff1de2328d8c Mon Sep 17 00:00:00 2001 From: ondrejs4 Date: Tue, 19 Jan 2021 12:19:01 +0100 Subject: [PATCH] bugfix --- New-ToastNotification.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {