[RESOLVED] Custom TeamViewer Package

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
Smart
Messages: 45
Registration: July 2, 2018 - 11:11
Location: Laon

November 15, 2019 - 2:25 PM

WAPT 1.7.5 - CentOS Server - Windows Server 2016 Admin Client
--------------------------------------------------------------------------------------------------------------
Good morning,
I am unable to customize my TV client so that it has the settings filled in automatically (example: Password for remote connection, linked to the company account).

Code: Select all

def install():
    print('installing test-teamviewer-14-host')
    run(r'msiexec.exe /i "TeamViewer_Host.msi" /qn APITOKEN=**** CUSTOMCONFIGID=**** ASSIGNMENTOPTIONS="--P **** --alias %COMPUTERNAME%"')
Currently, the TV is installing but without any settings...

Do you have any idea?
Sincerely
Last edited by Futé on Nov 25, 2019 - 3:02 PM, edited 1 time.
User avatar
Gaetan
Messages: 169
Registration: August 8, 2019 - 10:16
Location: Toulouse

November 18, 2019 - 11:59

Hello,
have you tested the command outside of WAPT?
Smart
Messages: 45
Registration: July 2, 2018 - 11:11
Location: Laon

November 18, 2019 - 12:46

In CMD, the software installs without any settings. With PowerShell, it scrolls through the list of commands...
User avatar
Gaetan
Messages: 169
Registration: August 8, 2019 - 10:16
Location: Toulouse

November 18, 2019 - 2:39 PM

What is the exact command in the command prompt?
Smart
Messages: 45
Registration: July 2, 2018 - 11:11
Location: Laon

November 18, 2019 - 3:09 PM

Code: Select all

msiexec.exe /i "TeamViewer_Host.msi" /qn APITOKEN=**** CUSTOMCONFIGID=**** ASSIGNMENTOPTIONS="--P **** --alias %COMPUTERNAME%"
User avatar
Gaetan
Messages: 169
Registration: August 8, 2019 - 10:16
Location: Toulouse

November 18, 2019 - 3:23 PM

I think I see the problem; I had the same issue here:
viewtopic.php?f=9&t=1925&p=6154&hilit=kaspersky#p6154

Take a look at my code, and I can comment on it in more detail if needed.
:D
Smart
Messages: 45
Registration: July 2, 2018 - 11:11
Location: Laon

November 18, 2019 - 4:49 PM

Essay 1:

Code: Select all

uninstallkey = []

properties = {'APITOKEN=****','CUSTOMCONFIGID=****','ASSIGNMENTOPTIONS="--P **** --alias %COMPUTERNAME%"'}

def install():
    print('installing muller-teamviewer-14-host')
    install_msi_if_needed('TeamViewer_Host.msi', properties = properties)
Essay 2:

Code: Select all

uninstallkey = []

properties = {'APITOKEN':'****','CUSTOMCONFIGID':'****','ASSIGNMENTOPTIONS':'"--P **** --alias %COMPUTERNAME%"''}

def install():
    print('installing muller-teamviewer-14-host')
    install_msi_if_needed('TeamViewer_Host.msi', properties = properties)

I did that, but it didn't work... Thanks for the help, by the way :)
User avatar
Gaetan
Messages: 169
Registration: August 8, 2019 - 10:16
Location: Toulouse

November 19, 2019 - 3:45 PM

Good morning,

Try it like this:

Code: Select all

properties ={
            'APITOKEN':'****',
            'CUSTOMCONFIGID':'****',
            'ASSIGNMENTOPTIONS':'"--P **** --alias %COMPUTERNAME%"'
            }

def install():
    print('installing muller-teamviewer-14-host')
    install_msi_if_needed('TeamViewer_Host.msi', properties = properties)
Python is quite strict about tabs. And you had an extra single quote on your second attempt ;)
Smart
Messages: 45
Registration: July 2, 2018 - 11:11
Location: Laon

November 19, 2019 - 4:41 PM

Hello,
thank you again for your help. I used your code, but it still doesn't work...
I'll try importing a .reg file of the TV settings that I've previously exported.
Regards
User avatar
Gaetan
Messages: 169
Registration: August 8, 2019 - 10:16
Location: Toulouse

November 19, 2019 - 4:46 PM

When you test it locally on the machine, does it install?
Locked