Microsoft Teams impossible to install

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
fifoue71
Messages: 2
Registration: June 22, 2017 - 11:31

June 22, 2017 - 2:17 PM

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.
User avatar
agauvrit
WAPT Expert
Messages: 238
Registration: Nov 17, 2016 - 10:25
Location: Nantes
Contact :

June 22, 2017 - 4:57 PM

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
fifoue71
Messages: 2
Registration: June 22, 2017 - 11:31

June 22, 2017 - 5:33 PM

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)
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

June 23, 2017 - 00:01

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!
Locked