Fix the resolving of the entry point
This commit is contained in:
parent
b7db441579
commit
ac58dd6b56
1 changed files with 4 additions and 1 deletions
|
@ -1,10 +1,13 @@
|
|||
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Prerequisites.ps1";
|
||||
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Context.ps1";
|
||||
|
||||
$entryPoint = "$($MyInvocation.MyCommand.Path)";
|
||||
|
||||
$null = New-Module {
|
||||
Write-Host "Starting Restoration of Windows";
|
||||
. "$PSScriptRoot/../../../scripts/Windows/OS/Install.ps1";
|
||||
[Context]$context = [Context]::new();
|
||||
$context.EntryPoint = "$($MyInvocation.MyCommand.Path)";
|
||||
Write-Host "Setting entry point to $entryPoint";
|
||||
$context.EntryPoint = "$entryPoint";
|
||||
Invoke-WindowsInstallation $context;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue