Skip to content

Commit

Permalink
Working on the bulk installation feature. Not ready yet.
Browse files Browse the repository at this point in the history
  • Loading branch information
DrewNaylor committed Oct 25, 2020
1 parent d8b34ff commit 191a59b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions libguinget/PackageTools.vb
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,26 @@ Public Class PackageTools
End Using

End Sub

Public Shared Sub BulkInstallPkg(PackageIDs As List(Of String), PackageVersions As List(Of String), Optional InstallInteractively As Boolean = False)
' Define process variables to store winget's stuff.
' CMD will be kept open with /k.

Using proc As New Process

proc.StartInfo.FileName = "cmd"

' Define interactive install flag.
Dim InteractiveFlag As String = String.Empty
If InstallInteractively = True Then
InteractiveFlag = " -i"
End If

' Define CMD args by going through the list of packages.
' Be sure to only add && if there are packages left to add.
Dim BulkInstallCommandList As String = String.Empty
End Using
End Sub
#End Region

#Region "Get package details from YAML"
Expand Down

0 comments on commit 191a59b

Please sign in to comment.