mirror of
https://github.com/ntdevlabs/tiny11builder.git
synced 2025-12-18 09:24:12 +00:00
Merge c29e24df5d into 00e7d8a151
This commit is contained in:
commit
6e2754f533
2 changed files with 4 additions and 2 deletions
|
|
@ -19,7 +19,7 @@ if (! $myWindowsPrincipal.IsInRole($adminRole))
|
|||
{
|
||||
Write-Host "Restarting Tiny11 image creator as admin in a new window, you can close this one."
|
||||
$newProcess = new-object System.Diagnostics.ProcessStartInfo "PowerShell";
|
||||
$newProcess.Arguments = $myInvocation.MyCommand.Definition;
|
||||
$newProcess.Arguments = "-NoProfile -ExecutionPolicy Bypass -NoExit -File `"$($myInvocation.MyCommand.Definition)`"";
|
||||
$newProcess.Verb = "runas";
|
||||
[System.Diagnostics.Process]::Start($newProcess);
|
||||
exit
|
||||
|
|
@ -577,3 +577,4 @@ elseif ($input -eq 'n') {
|
|||
else {
|
||||
Write-Host "Invalid input. Please enter 'y' to continue or 'n' to exit."
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ if (! $myWindowsPrincipal.IsInRole($adminRole))
|
|||
{
|
||||
Write-Output "Restarting Tiny11 image creator as admin in a new window, you can close this one."
|
||||
$newProcess = new-object System.Diagnostics.ProcessStartInfo "PowerShell";
|
||||
$newProcess.Arguments = $myInvocation.MyCommand.Definition;
|
||||
$newProcess.Arguments = "-NoProfile -ExecutionPolicy Bypass -NoExit -File `"$($myInvocation.MyCommand.Definition)`"";
|
||||
$newProcess.Verb = "runas";
|
||||
[System.Diagnostics.Process]::Start($newProcess);
|
||||
exit
|
||||
|
|
@ -533,3 +533,4 @@ Stop-Transcript
|
|||
|
||||
exit
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue