SourceTree Deployable Installer
Asked by Dave:

Hi,

Is there an offline installer of this I can use to deploy organization wide?

Thanks


Answers:
author: Dentsu Aegis Network - Isobar
body: We distribute .NET 4.5 via SCCM asynchronous to startup / login (ie. in the background of the user session), so giving a computer this and .NET 4.5 together will inherently fail, as the installer hangs and has a cry when it doesn't have its prereqs.

Extracting the installer, I was able to merge the cab into the msi inside, creating an installer which will install without .NET 4.5 present. When you try to run it it will still prompt for .NET, but in most cases it will have already been installed by SCCM.

As background - after extracting the installer to get the .msi and the .cab, I did as we would usually do and attempted to script it to run from a unc path with the cab in the same directory but to no avail. Only merging the cab into the msi worked.

Not sure why you didn't just provide the MSI in the first place? Was it only for the .NET check?

Additionally, i'm trying to find a way now to easily script the git location and username. These seem to be stored in the user profile under folders named with random strings - not very scriptable. Can you advise the best way to go about this so the user isn't prompted at first run?

Thanks

comments: author: stevestreeting
body: Yes, we needed the wrapper exe for the bootstrap procedure to make sure people are prompted to install .Net 4.5 if they don't have it. The assumption is that sysadmins who want to bypass this can extract the MSI if they need to anyway (you guys know what you're doing :)) and the default for everyone else should be the simplest, one-stop process. I've had some feedback from a sysadmin who deployed it across 100+ machines that way after extracting. He didn't mention it still prompting for .Net 4.5 but maybe he'd automatically deployed that already too - you'd need to to run the app.

About scripting the rest: SourceTree will detect a system-installed git from [git-scm.com](http://git-scm.com/), so long as it's either on the path ('where git') or in the default location (Program Files (x86)\\Git). Then you won't get prompted to download an embedded git version.

The git user name \& email can be scripted - just populate %USERPROFILE%\\.gitconfig with user settings, SourceTree will pick those up.


author: stevestreeting
body: Yes, we needed the wrapper exe for the bootstrap procedure to make sure people are prompted to install .Net 4.5 if they don't have it. The assumption is that sysadmins who want to bypass this can extract the MSI if they need to anyway (you guys know what you're doing :)) and the default for everyone else should be the simplest, one-stop process. I've had some feedback from a sysadmin who deployed it across 100+ machines that way after extracting. He didn't mention it still prompting for .Net 4.5 but maybe he'd automatically deployed that already too - you'd need to to run the app.

About scripting the rest: SourceTree will detect a system-installed git from [git-scm.com](http://git-scm.com/), so long as it's either on the path ('where git') or in the default location (Program Files (x86)\\Git). Then you won't get prompted to download an embedded git version.

The git user name \& email can be scripted - just populate %USERPROFILE%\\.gitconfig with user settings, SourceTree will pick those up.


author: stevestreeting
body: There's actually a better option for you now, we've introduced a new installer than can be used to deploy in bulk if you like: <http://blog.sourcetreeapp.com/2013/05/13/new-installer-updater-for-sourcetree-for-windows/>


author: KieranA
body: Hi there,

Yes there is now, please see the following link and read Steve's answer carefully to understand why we don't recommend this: [https://answers.atlassian.com/questions/149591/is-there-an-offline-installer-for-windows-version-of-sourcetree](/questions/149591/is-there-an-offline-installer-for-windows-version-of-sourcetree)

Cheers