Skip to content

Commit

Permalink
Merge pull request #176 from michael-franck/master
Browse files Browse the repository at this point in the history
SystemWide Meeting Add-in Installation
  • Loading branch information
flcdrg authored May 8, 2024
2 parents 45043a8 + e3f1521 commit d6be1c8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ When TeamsBootstrapper is run on a computer:

Users who have installed a different Teams version will have their version replaced with the provisioned version.

### Package Parameters

- `/VDI` - The package will install the Teams Meeting Add-in for all users

### Package Specific

Note that TeamsBootstrapper.exe will cause the the latest Teams MSIX package to be installed from Microsoft. Once Teams is installed it is self-updating. As such there's likely no need to install updates of this Chocolatey package.
Expand Down
17 changes: 16 additions & 1 deletion microsoft-teams-new-bootstrapper/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ if ([Version] $osVersion -lt [version] $minimumOsVersion) {
}

$checksum32 = '42DAC6D247B4138AD9ED858892FB608C3A8A2FD5F49E55D61E0C3D700AA3A369'

$downloadPath = Join-Path $toolsDir "teamsbootstrapper.exe"

$pp = Get-PackageParameters

$packageArgs = @{
packageName = $env:ChocolateyPackageName
softwareName = 'microsoft-teams-new-bootstrapper*'
Expand All @@ -25,3 +26,17 @@ $packageArgs = @{
Get-ChocolateyWebFile @packageArgs

& $downloadPath -p

if($pp['VDI']){
$teamsVersion = Get-AppXPackage -Name "*msteams*" | Select-Object -ExpandProperty Version
$meetingInstaller = "$($env:ProgramFiles)\WINDOWSAPPS\MSTEAMS_$($teamsVersion)_X64__8WEKYB3D8BBWE\MICROSOFTTEAMSMEETINGADDININSTALLER.MSI"
$meetingVersion = (Get-AppLockerFileInformation -Path $meetingInstaller | Select-Object -ExpandProperty Publisher | Select-Object -ExpandProperty BinaryVersion).ToString()
$packageArgsMeeting =@{
packageName = $env:ChocolateyPackageName +"_MeetingAddIn"
fileType = "msi"
file = $meetingInstaller
SilentArgs = "/qn /norestart ALLUSERS=1 TARGETDIR=`"$($env:ProgramFiles)\Microsoft\TeamsMeetingAdd-in\$($meetingVersion)\`" /l*v `"$($env:TEMP)\$($packageName).meetingAddin_$($meetingVersion).MsiInstall.log`""
}

Install-ChocolateyInstallPackage @packageArgsMeeting
}

0 comments on commit d6be1c8

Please sign in to comment.