Using SCCM to create program/MSI Custom Installation Directory? Failing...

net1994 21 Reputation points
2022-04-07T14:47:50.467+00:00

Hi All – I’ve done installations using TeamViewer host installers in the past with SCCM where I specified a custom installation directory for TeamViewer Host MSI. Example would be “C:\Program Files x86)\Example-This-Program-Custom-Folder instead of “C:\Program Files x86)\TeamViewer. Fails every possible directory variable I've tried. With host client ver 15.10 it always worked. No dice with 15.22. I’ve contacted support and their not sure. In the Mass Deployment guide, there is no switch to define the path. This seems to be a Windows OS/MSI installer issue, and not necessarily the teamviewer host MSI file. Maybe. Below are the four possible ways I tried. Can anyone here see the issue or a way to make it work?

Msiexec.exe /i “TeamViewer_Host.msi” INSTALLFOLDER=” C:\Program Files (x86)\This-Program-Custom-Folder”

Msiexec.exe /i “TeamViewer_Host.msi” TARGETDIR=” C:\Program Files (x86)\This-Program-Custom-Folder”

Msiexec.exe /i “TeamViewer_Host.msi” INSTALLLOCATION=” C:\Program Files (x86)\This-Program-Custom-Folder”

Msiexec.exe /i “TeamViewer_Host.msi” INSTALLDIR= C:\Program Files (x86)\This-Program-Custom-Folder”

One thing I could do is to use the Microsoft Orca MSI editor. I used this to open up the MSI installer file and I DO see a variable to type in the path. But I really don’t want to do this as I think it will break the verified/trusted when. I think I could create a transform file and let SCCM apply it during installation. Maybe. But I'm worried it's too many moving parts at that point. We will also load this into our Intune Applications to target our AutoPilot systems.

Thoughts?

Microsoft Security | Intune | Configuration Manager | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AllenLiu-MSFT 49,311 Reputation points Microsoft External Staff
    2022-04-08T09:11:30.877+00:00

    Hi, @net1994

    Thank you for posting in Microsoft Q&A forum.

    Have we tried:
    msiexec.exe /i "C:\Program Files (x86)\This-Program-Custom-Folder\TeamViewer_Host.msi"


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.