Page 2 of 2

Re: Custom TeamViewer Package

Published: November 20, 2019 - 7:27 AM
by Smart
Just the software, not the settings.

Re: Custom TeamViewer Package

Published: November 20, 2019 - 09:43
by Gaetan
I found this page, it might help you:

https://community.teamviewer.com/t5/Kno ... ta-p/39639

Re: Custom TeamViewer Package

Published: November 25, 2019 - 7:54 AM
by Smart
Good morning,
I did this:

Code: Select all

destdir = makepath('C:\\','TeamViewer')
msifile = makepath(destdir,'TeamViewer_Host.msi')

def install():
    print('installing muller-teamviewer-14-host')
    mkdirs(destdir)
    copytree2(r'Config',destdir)
    run(r'msiexec.exe /i "C:\TeamViewer\TeamViewer_Host.msi" /qn CUSTOMCONFIGID=****APITOKEN=**** ASSIGNMENTOPTIONS="--reassign --alias %COMPUTERNAME%"')
For now, I've managed to link it to the company account but haven't been able to set a password. I'm continuing to work on it and will keep you updated.

Re: Custom TeamViewer Package

Published: November 25, 2019 - 3:01 PM
by Smart
FINAL CODE:

Code: Select all

destdir = makepath('C:\\','TeamViewer')
msifile = makepath(destdir,'TeamViewer_Host.msi')

def install():
    print('installing muller-teamviewer-14-host')
    mkdirs(destdir)
    copytree2(r'Config',destdir)
    run(r'msiexec.exe /i "C:\TeamViewer\TeamViewer_Host.msi" /qn CUSTOMCONFIGID=****APITOKEN=**** ASSIGNMENTOPTIONS="--grant-easy-access --reassign --alias %COMPUTERNAME%"')
    
 def uninstall():
    killalltasks('TeamViewer.exe')
    remove_file(exefile)
    remove_tree(destdir)
    run(r'"C:\Program Files (x86)\TeamViewer\uninstall.exe"')
 
I can't set a custom password, but that's normal. With the option

Code: Select all

--grant-easy-access
I can take control without knowing the password.

Re: [SOLVED] Custom TeamViewer Package

Published: November 25, 2019 - 3:07 PM
by Gaetan
Very good then ;)

Re: [SOLVED] Custom TeamViewer Package

Published: March 28, 2020 - 8:11 PM
by TheMax
Hello everyone, as I'm new to the forum and to using WAPT, I wanted to try my hand at a small script for a custom installation of TeamViewer Host as an .exe file


Code: Select all

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

uninstallkey = []

def install():
    install_exe_if_needed("host.exe",'/S',key='',min_version='15.4.4445.0')
    run(r'"C:\Program Files (x86)\TeamViewer\Teamviewer.exe" assign --api-token 1122-ZBDHZKBDDD --alias %COMPUTERNAME% --grant-easy-access')
I'm having trouble with this code; I can't uninstall it using uninstallkey. Does anyone have any ideas?



Sincerely,

The Max