Difference between revisions of "Microsoft Teams"
(silent installer for the microsoft teams installer) |
(No difference)
|
Revision as of 23:38, 28 October 2020
Microsoft Teams
This is a silent installer for the teams all users installer.
Teams for all intents and purposes must run it's own installer for each individual user. Microsoft #1
The teams installer available from Microsoft only installs an installer that gets autorun for each user. https://docs.microsoft.com/en-us/microsoftteams/msi-deployment
There are people doing workarounds for this but it's long and involved.
The installers installer also seems to fork so the file version check (only way to see if it's there, it doesn't show up in uninstall list until it's installed for the user) so some creativity is needed to get around that. Thanks to the java wpkg package dev for the syntax to use powershell to get around it.
The &apos is vitally important and not a mistake don't delete or convert it
WPKG Package
Teams 1.3
<?xml version="1.0" encoding="UTF-8"?>
<packages:packages xmlns:packages="http://www.wpkg.org/packages"
xmlns:wpkg="http://www.wpkg.org/wpkg" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.wpkg.org/packages ../xsd/packages.xsd">
<package id="microsoft-teams" name="Microsoft Teams" revision="%PKG_VERSION%" reboot="false" priority="100">
<variable name="PKG_VERSION" value="1.3.00.21759" />
<check type="file" condition="versiongreaterorequal" path="C:\Program Files (x86)\Teams Installer\Teams.exe" value="%PKG_VERSION%" />
<!-- watch out for the $apos; it's important and can't be removed, the escaping arount the quotes is also important -->
<install cmd='powershell -executionpolicy bypass -noprofile -command "Start-Process C:\Windows\System32\msiexec.exe -ArgumentList '/q /i \"%SOFTWARE%\Teams\%PKG_VERSION%\Teams_windows_x64.msi\"'" -wait' />
<upgrade include='install' />
<remove cmd='powershell -executionpolicy bypass -noprofile -command "Start-Process C:\Windows\System32\msiexec.exe -ArgumentList '/q /x \"%SOFTWARE%\Teams\%PKG_VERSION%\Teams_windows_x64.msi"'" -wait' />
</package>
</packages:packages>