mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-14 14:45:52 -06:00
format update
This commit is contained in:
parent
7fe0f9a163
commit
9c0b0b8913
@ -15,8 +15,8 @@ function Install-WinUtilChoco {
|
|||||||
}
|
}
|
||||||
# Install logic taken from https://chocolatey.org/install#individual
|
# Install logic taken from https://chocolatey.org/install#individual
|
||||||
Write-Host "Seems Chocolatey is not installed, installing now."
|
Write-Host "Seems Chocolatey is not installed, installing now."
|
||||||
Set-ExecutionPolicy Bypass -Scope Process -Force;
|
Set-ExecutionPolicy Bypass -Scope Process -Force;
|
||||||
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;
|
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;
|
||||||
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
|
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
|
||||||
|
|
||||||
} catch {
|
} catch {
|
||||||
|
@ -10,9 +10,9 @@ function Invoke-WPFRunspace {
|
|||||||
|
|
||||||
.PARAMETER ArgumentList
|
.PARAMETER ArgumentList
|
||||||
A list of arguments to pass to the runspace
|
A list of arguments to pass to the runspace
|
||||||
|
|
||||||
.PARAMETER ParameterList
|
.PARAMETER ParameterList
|
||||||
A list of named parameters that should be provided.
|
A list of named parameters that should be provided.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
Invoke-WPFRunspace `
|
Invoke-WPFRunspace `
|
||||||
-ScriptBlock $sync.ScriptsInstallPrograms `
|
-ScriptBlock $sync.ScriptsInstallPrograms `
|
||||||
@ -37,8 +37,8 @@ function Invoke-WPFRunspace {
|
|||||||
# Add Scriptblock and Arguments to runspace
|
# Add Scriptblock and Arguments to runspace
|
||||||
$script:powershell.AddScript($ScriptBlock)
|
$script:powershell.AddScript($ScriptBlock)
|
||||||
$script:powershell.AddArgument($ArgumentList)
|
$script:powershell.AddArgument($ArgumentList)
|
||||||
|
|
||||||
foreach ($parameter in $ParameterList){
|
foreach ($parameter in $ParameterList) {
|
||||||
$script:powershell.AddParameter($parameter[0], $parameter[1])
|
$script:powershell.AddParameter($parameter[0], $parameter[1])
|
||||||
}
|
}
|
||||||
$script:powershell.AddArgument($DebugPreference) # Pass DebugPreference to the script block
|
$script:powershell.AddArgument($DebugPreference) # Pass DebugPreference to the script block
|
||||||
|
Loading…
Reference in New Issue
Block a user