Skip to content

Commit

Permalink
WAIT
Browse files Browse the repository at this point in the history
  • Loading branch information
zebulonsmith committed Mar 25, 2022
1 parent 8dbdaaa commit 45168b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WingetToMECM.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -372,12 +372,12 @@ Function Get-WingetMECMApplicationParameters {
#>

$AppParams.InstallCommand = @'
echo start-process -filepath "$((Get-AppxPackage -AllUsers -Name Microsoft.DesktopAppInstaller).installlocation)\winget.exe"
cmd /c echo start-process -wait -filepath "$((Get-AppxPackage -AllUsers -Name Microsoft.DesktopAppInstaller).installlocation)\winget.exe"
'@
$AppParams.InstallCommand += " -argumentlist 'install --id $PackageID --silent --accept-package-agreements --accept-source-agreements' | powershell.exe -command -"

$AppParams.UninstallCommand = @'
echo start-process -filepath "$((Get-AppxPackage -AllUsers -Name Microsoft.DesktopAppInstaller).installlocation)\winget.exe"
cmd /c echo start-process -wait -filepath "$((Get-AppxPackage -AllUsers -Name Microsoft.DesktopAppInstaller).installlocation)\winget.exe"
'@
$AppParams.UninstallCommand += " -argumentlist 'uninstall --id $PackageID --silent --accept-source-agreements' | powershell.exe -command -"

Expand Down

0 comments on commit 45168b2

Please sign in to comment.