Remove unnecessary statements

This commit is contained in:
Manuel Thalmann 2023-06-25 15:19:48 +02:00
parent 4780cd7f09
commit 3852c361e1

View file

@ -11,7 +11,6 @@ function Invoke-Upgrade([Context] $context)
{
Write-Information "A Reboot is Required!";
Write-Information "Windows will reboot now and the installation will be continued automatically.";
$null = New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\RunOnce" -Name "PortValhalla" -Value "pwsh `"$($context.EntryPoint)`"" -PropertyType ExpandString;
$context.Reboot();
exit;
}