mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-06-28 00:54:47 -05:00
Remove force install of Winget + Small improvements (#2083)
* Compile Winutil * Add Run switch to Run winutil automatically after compilation * Remove Winutil ForceInstall and unnecessary loading bar --------- Co-authored-by: Marterich <Marterich@users.noreply.github.com>
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
param (
|
||||
[switch]$Debug
|
||||
[switch]$Debug,
|
||||
[switch]$Run
|
||||
)
|
||||
$OFS = "`r`n"
|
||||
$scriptname = "winutil.ps1"
|
||||
@ -106,4 +107,8 @@ else {
|
||||
}
|
||||
|
||||
Set-Content -Path $scriptname -Value ($script_content -join "`r`n") -Encoding ascii
|
||||
Write-Progress -Activity "Compiling" -Completed
|
||||
Write-Progress -Activity "Compiling" -Completed
|
||||
|
||||
if ($run){
|
||||
Start-Process -FilePath "powershell" -ArgumentList ".\$scriptname"
|
||||
}
|
Reference in New Issue
Block a user