Hello,
I need to set up a silent install config for SourceTree Enterprise and I'm currently attempting to use this as my install command:
msiexec.exe /i SourcetreeEnterpriseSetup_3.4.18.msi ACCEPTEULA=1 INSTALLDIR="C:\Program Files\SourceTree" /quiet
This didn't work but I found out that it will work if I remove the space in "Program Files" I thought having the directory path in a string would make it treat it as a string instead of a literal. My command gets treated as
msiexec.exe /i SourcetreeEnterpriseSetup_3.4.18.msi ACCEPTEULA=1 INSTALLDIR=C:\Program Files\SourceTree /quiet
Where Files\SourceTree is treated as a MSI flag and crashes the install. How can I include a space for the silent install within the INSTALLDIR flag? I double checked and it does work when I do not have a space but I have to install it to Program Files given the circumstances.
The escape character in PowerShell is the grave-accent(`), so try this:
msiexec.exe /i SourcetreeEnterpriseSetup_3.4.18.msi ACCEPTEULA=1 INSTALLDIR=`"C:\Program Files\SourceTree`" /quiet
Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.