Page 1 of 1

Microsoft Teams impossible to install

Published: June 22, 2017 - 2:17 PM
by fifoue71
Hello,

I've been trying for several days to create a package for Microsoft Teams, but when I run `build-upload`, the .exe file launches on my machine. This is the first time this has happened.
Furthermore, when I try to deploy it to the client machine, there are no error messages. According to the logs, Teams is installed, but I see nothing.

The .exe file is from the Microsoft website. I've tried both the 32-bit and 64-bit versions, but

Here is my setup.py:


# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

def install():
print('installing wapt-teams64')
run(r'"Teams_windows.exe" ')


I've tried with /VERYSILENT, then with -s, and with nothing, but still nothing.

It's important to note that this is a machine with a user account that doesn't have admin privileges; all other packages work (Skype, Skype for Business, Chrome, etc.).

Manual installation works fine; the user has a valid license.

In short, the installation is successful, but there's no trace of the software on the PC.

Client machine OS: Windows 7 Pro x64.

Any ideas?
Thanks.

Re: Microsoft Teams impossible to install

Published: June 22, 2017 - 4:57 PM
by agauvrit
Hello,

Microsoft Teams is software that installs in the user profile (in AppData), therefore it's not possible to install it permanently on a computer, as with most software that installs in Program Files.

Your installation was actually performed under a system account (the WAPT service runs under a system account) and nothing appears because it's outside the user's access.

To work around this problem, install this software in the user context using the session_setup feature (see https://doc.wapt.fr ).

For information on the silent arguments of Microsoft Teams: https://techcommunity.microsoft.com/t5/...td-p/32469

Hoping this helps!

Alexandre

Re: Microsoft Teams impossible to install

Published: June 22, 2017 - 5:33 PM
by fifoue71
Thanks for the reply.
Well, I understand better now; I did notice the %appdata%.
I've tried several things, but I can't find a solution.
The documentation doesn't offer anything except for creating a shortcut.

As a last resort, I tried this, but still nothing (I expected that ^^):

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

def install():
install_exe_if_needed("Teams.exe")

def session_setup():
install_exe_if_needed("Teams.exe" /VERYSILENT)

Re: Microsoft Teams impossible to install

Published: June 23, 2017 - 00:01
by sfonteneau
With session_setup, it is not possible to call files contained in the package.

To use files during uninstallation, copy/paste the files into a directory outside the package during package installation.

https://www.wapt.fr/fr/doc/CreationPaqu ... sion-setup

Code: Select all

def install():
      filecopyto("Teams_windows.exe",programfiles)

def session_setup():
      run(r'"%s/Teams_windows.exe" /VERYSILENT' % programfiles )
Note that the session setup is only executed when the session starts!