Prevent TeamViewer opening after installation

expand collapsive

Hi all, We are trying to silently install TeamViewer pkg on our endpoints without disrupting our organization workflow as most of our employees handle time sensitive tasks & client calls. However, due to some reasons the setup wizard pops up after the installation process which disrupts the workflow. What we need is a silent installation, is there any workaround available for this?
Installation wizard abrupt pop-up during installing application.png.png

All Replies

  • Participant

    Rebecca

    Participant

    Okay that’s cool, we did the same. However, when we hit the issue of the auto launch of the application, we tried to find some documentation related to this issue from team viewer side, but there wasn’t any.

    That’s when we tried to check the pkg file using Suspicion Package app used for inspecting macOS installer packages. It showed that the package contained a script named function that was sourced by a postinstall script.

    It seems that the restartService function present in that script decides whether to open the application or not depending on the presence of $pathToAppPath.

    TeamViewer pkg inside scripts2

    Also, have a look here. $(pathToAppPath) points to a temp location. So, to achieve silent installation you just need to ensure that /tmp/tvPath exists before installing. I guess this should work.

    TeamViewer pkg inside scripts3

  • Hey @nancy, thanks for reaching out to us.
    Thank you so much @rebecca for the help! As Rebecca pointed out it’s due to the postinstall script present. Make sure to pass the script given below before installation to achieve silent installation.

    Feel free to reach out to us in case of any queries.
    Regards,
    Carl Hughes
    Hexnode UEM