Remove unnecessary statements

This commit is contained in:
Manuel Thalmann 2023-06-25 15:19:48 +02:00
parent 38a1e3a225
commit 2ebbf3b505

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;
}