OneDrive for Business app – silent install

I was struggling with this topic for a while and since there are literally ZERO resources on it on Uncle Google, I thought I will share what I came up with.

What I needed:

  • I needed to deploy OneDrive for Business sync app to multiple clients, using automatic approach such as SCCM or group policy, possible as seamless as possible. Users should not have to do anything at all.
  • My users are using Office 2010 and there was no way I could have just installed Office 2013 for all of them. I needed to retain Office 2010 but add OneDrive for Business 2013.

What did not work:

  • Standalone OneDrive for Business client available for download from Microsoft site is useless, it is not silent install and it would require users to install it themselves
  • Creating a custom Office 2013 installation using Office customisation tool that only installs OneDrive was very sketchy. At some point I thought it will work as a silent way. But soon I realised that it was breaking Office 2013 install (e.g. Outlook was not working anymore). Users had to “Repair” Office 2010.

What worked:

  • Using Office Deployment Tool with custom configuration xml file, you need to first download GrooveRetail files then you can run it. Detailed steps below.

Steps to create silent installation package for OneDrive for Business

  1. Download Office Deployment Tool http://www.microsoft.com/en-us/download/details.aspx?id=36778 
  2. Unpack exe file, you will end up with a folder with some files, most important is setup.exe and configuration.xml file
  3. Edit configuration file
<Configuration> 
  <Add SourcePath="\\server\share\officedeploy\" OfficeClientEdition="32"> 
   <Product ID="GrooveRetail" > 
     <Language ID="en-us" />      
   </Product> 
  </Add> 
</Configuration>
  1. Product ID should be GrooveRetail – that is OneDrive for Business (previously SkyDrive for Business, previously SharePoint Workspace 2010, previously Groove 2007…) ClientEdition would be either 32 or 64. If you have Office 2010 32 bit, you need to install OneDrive 32 bit, 64 bit will fail to install.
  2. Source Path should be a path to your OCT folder, at this stage it does not need to be a network share, it can be just d:\officedeploy\ I will come back to importance of permissions in next steps
  3. Open command prompt or powershell window as Administrator
  4. Navigate to the location of your setup.exe file
  5. Run command: setup.exe /download d:\share\officedeploy\configuration.xml
  6. Now, Russian roulette starts here, the program will actually not give you any progress or indication anything is happening. Check out sources folder, it should start getting filled with some dlls and other files. Files are being downloaded from the internet. You need to have a Internet connection for this to work. If you are behind a proxy or firewall, e.g. you are in corporate network, something may be blocking this download. You may have to bypass corporate proxy or use Internet connection at home. Expected behaviour will be that the program finishes successfully and you will find at list a gigabyte of files in your office deploy folder. That is a half of success.
  7. Create a network share for your officedeploy files location.
  8. Add necessary permissions for network share – it is important to add everyone to be able to Read the folder. Also, “domain computers” account have to be able to access this share (Read and Execute permissions), because installer actually uses computer account to copy files across during installation.
  9. Run \\server\share\officedeploy\setup.exe /configure \\server\share\officedeploy\configuration.xml on the machine you want to install OneDrive for Business. This will install OneDrive for Business, you will notice some Office popup in a notification area if you are installing when being on the machine
  10. If something fails, check %temp% for some installation log files
  11. After that finishes you can check if you have OneDrive for Business in Add/Remove programs. You will notice that there is your old Office 2010 intact and new Office 2013 in Programs. This is normal as OneDrive for Business is part of Office 2013.

 

 

17 Responses to “OneDrive for Business app – silent install”

  1. Stefan

    Thanks for posting this! I’ve been looking for a way to deploy this in our environment. Haven’t tested it yet but looks like a foolproof method.

    Reply
  2. Anders

    Thanks a bunch! Was very helpfull. I am rolling OneDrive out from SCCM 2012. Found out that if I set SourcePath=”” it just uses current directory.

    /Anders

    Reply
  3. Hamilton

    Excellent!!

    Reply
  4. Prestige

    Thank you so much for this post, it helps me a lot for my deployment.
    I will test and see if it works for me.

    Reply
  5. Rob Baker

    This appears to work quite well, the only difference I have noticed and im not sure if it is related, is that with this method, in your documents you get ‘Onedrive for business’. In the stub based installer you download from Microsoft, I have noticed the documents folder is named Onedrive @ .

    I have to wonder if MS is going to release an offline/deployable version of this sometime in the near future?

    Reply
  6. Allan Chambers

    Thank you so much for this post! We asked Microsoft our selves for a standalone solution to push to 5000 computers using LANDesk (similar to SCCM).
    Their answer was to just push out the 500KB setup client… then let it download the components from the internet. 5000 users all over the Net… I don’t think so… can you imagine the amount of complaints from users saying that their Facebook is going slow!?

    This is a brilliant solution, thank you!

    Kind regards
    Allan

    Reply
  7. Hariharan

    Well Written. I followed your steps and it helped our organization to deploy One Drive for Business 2013.

    Reply
  8. oxb

    Thank you very much for this article. Microsoft is really getting cloudy these days. about this kind of information…

    Reply
  9. Kevin

    Great info. The only issue i have is that i need a french version of the download but was unable to get it by changing the language ID to “fr-ca” for french-Canada.
    Anybody got any idea how to get a download of a different language ?

    I downloaded the english version and was able to install it without problemes but when i do a right click in explorer and go to the onedrive menu, all the options are in english and that`s unacceptable for our french university environement.

    Reply
    • Kevin

      Nevermind…found my own solution. instead of “fr-ca” i needed to have “fr-fr” in my configuration file.

      Reply
  10. Peter

    The web is full of gold nuggets and this is one to cherish. I have hounded M.S about an offline installer and was told “its impossible” well I guess the impossible just got done. I have just used this to deploy 10 OneDrive for Buis clients to local PC’s, no just 2,500 left to do.
    Peter

    Reply
  11. Srikanth

    For Uninstall you need the following command inside the CMD file:

    “%programfiles%\Microsoft Office 15\ClientX64\OfficeClickToRun.exe” scenario=install baseurl=”%programfiles%\Microsoft Office 15″ platform=x86 version=15.0.4631.1002 culture=en-us productstoremove=GrooveRetail_en-us_x-none DisplayLevel=False

    Also for Configuration file in

    Make the Add sourcePath as Empty. Much thanks for the post! I completed it at last.

    Reply
  12. Rich

    So in step 9 what is the source of the setup.exe file?

    Reply
    • admin

      Hi Rich,
      setup.exe comes with office deployment tool download.

      Reply
  13. PackGeek

    This is great!!! Works like a charm….but….but….how are we going to patch laptops\desktops when new updates are released for OneDrive? I dont see it can be done from WSUS-SCCM if this package is used. Any thoughts?

    Reply
  14. Michael Vester

    Fantastisk! As we Nordecs say. We’ve faced the same issues and are happyly following in your footsteps.

    Reply
  15. Ted

    Wow this worked perfectly with SCCM R2. Installs as app for device, SourcePath=””. Thanks!

    Reply

Leave a Reply to Anders

Click here to cancel reply.