Fixed GUI stuff
This commit is contained in:
@@ -1,4 +1,12 @@
|
|||||||
# Chocolatey-tools Release History
|
# Chocolatey-tools Release History
|
||||||
|
## 0.4.9 - 7/11/2019
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
* In Start-ChocoRemoteMgmt package installs and upgrades were not working due to an accidental deletion of -ArgumentList in Invoke-CommandAs.
|
||||||
|
|
||||||
|
* Fixed output for list and outdated buttons so that if a package is selected it does not display.
|
||||||
|
|
||||||
## 0.4.8 - 7/11/2019
|
## 0.4.8 - 7/11/2019
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -111,9 +111,10 @@ function Start-ChocoRemoteMgmt {
|
|||||||
Write-output "Installing"
|
Write-output "Installing"
|
||||||
$chocoutput = Invoke-CommandAs -AsSystem -ComputerName $ComputerList.Text -ScriptBlock {
|
$chocoutput = Invoke-CommandAs -AsSystem -ComputerName $ComputerList.Text -ScriptBlock {
|
||||||
choco install $args[0] -y -r
|
choco install $args[0] -y -r
|
||||||
|
} -ArgumentList $PackageList.SelectedItem
|
||||||
Write-output "Done"
|
Write-output "Done"
|
||||||
$outputBox.Text = $chocoutput
|
$outputBox.Text = $chocoutput
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
$Outdatepackage = New-Object system.windows.Forms.Button
|
$Outdatepackage = New-Object system.windows.Forms.Button
|
||||||
@@ -125,7 +126,7 @@ function Start-ChocoRemoteMgmt {
|
|||||||
$Form.controls.Add($Outdatepackage)
|
$Form.controls.Add($Outdatepackage)
|
||||||
$Outdatepackage.add_Click({
|
$Outdatepackage.add_Click({
|
||||||
$outputBox.Text = ""
|
$outputBox.Text = ""
|
||||||
$outputBox.Text = ("Finding outdated packages" + $PackageList.SelectedItem + " on " + $ComputerList.Text)
|
$outputBox.Text = ("Finding outdated packages on " + $ComputerList.Text)
|
||||||
Write-output "Listing installed packages"
|
Write-output "Listing installed packages"
|
||||||
$chocoutput = Invoke-CommandAs -AsSystem -ComputerName $ComputerList.Text -ScriptBlock {
|
$chocoutput = Invoke-CommandAs -AsSystem -ComputerName $ComputerList.Text -ScriptBlock {
|
||||||
choco outdated -r --ignore-unfound --ignore-pinned | Out-String
|
choco outdated -r --ignore-unfound --ignore-pinned | Out-String
|
||||||
@@ -143,7 +144,7 @@ function Start-ChocoRemoteMgmt {
|
|||||||
$Form.controls.Add($listPackage)
|
$Form.controls.Add($listPackage)
|
||||||
$ListPackage.add_Click({
|
$ListPackage.add_Click({
|
||||||
$outputBox.Text = ""
|
$outputBox.Text = ""
|
||||||
$outputBox.Text = ("Finding installed packages" + $PackageList.SelectedItem + " on " + $ComputerList.Text)
|
$outputBox.Text = ("Finding installed packages on " + $ComputerList.Text)
|
||||||
Write-output "Listing installed packages"
|
Write-output "Listing installed packages"
|
||||||
$chocoutput = Invoke-CommandAs -AsSystem -ComputerName $ComputerList.Text -ScriptBlock {
|
$chocoutput = Invoke-CommandAs -AsSystem -ComputerName $ComputerList.Text -ScriptBlock {
|
||||||
choco list -lo -r | Out-String }
|
choco list -lo -r | Out-String }
|
||||||
@@ -164,7 +165,7 @@ function Start-ChocoRemoteMgmt {
|
|||||||
Write-output "Installing"
|
Write-output "Installing"
|
||||||
$chocoutput = Invoke-CommandAs -AsSystem -ComputerName $ComputerList.Text -ScriptBlock {
|
$chocoutput = Invoke-CommandAs -AsSystem -ComputerName $ComputerList.Text -ScriptBlock {
|
||||||
choco upgrade $args[0] -y -r
|
choco upgrade $args[0] -y -r
|
||||||
}
|
} -ArgumentList $PackageList.SelectedItem
|
||||||
Write-output "Done"
|
Write-output "Done"
|
||||||
$outputBox.Text = $chocoutput
|
$outputBox.Text = $chocoutput
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user