How to download root on windows

Hi,
I am total newbie at this and I need to download ROOTCERN on my Windows10 Laptop for a project I’m working on but I have no idea where to start. I have a few questions:

  1. Will downloading this require me to format my laptop first?
  2. Which version should I download? I have seen a couple of youtube videos but they weren’t very clear.
  3. I’ve heard that the installation process is complicated can anyone clarify that please?

Thanks guys

ROOT Version: Release 5.34/36 - 2016-04-05
Platform: Windows 10

No

Take the latest one Release 6.20/04 - 2020-04-01

Well, the problem is that you have to download and install Visual Studio as well, and you might have to build ROOT from source, which could be a bit complicated if you are a beginner with Visual Studio and Windows…

If possible, can you give me a detailed guide of how to download it?

It should work, even if it might print some warnings when starting ROOT

I have the Proffessional Version of Visual Studio that should work as well right?

I hope so!

Could you explain what sort of warnings?

Those error messages:

In file included from input_line_3:38:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\\include\cassert:9:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\assert.h:12:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h:142:12: error: redefinition of '_CrtEnableIf<true, _Ty>'
    struct _CrtEnableIf<true, _Ty>
           ^~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h:142:12: note: previous definition is here
    struct _CrtEnableIf<true, _Ty>
           ^
In file included from input_line_3:38:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\\include\cassert:9:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\assert.h:12:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h:517:16: error: redefinition of '__crt_locale_data_public'
typedef struct __crt_locale_data_public
               ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\crtdefs.h:10:10: note: 'C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h' included multiple times, additional include
      site here
         ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\assert.h:12:10: note: 'C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h' included multiple times, additional include
      site here
         ^
In file included from input_line_3:38:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\\include\cassert:9:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\assert.h:12:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h:524:16: error: redefinition of '__crt_locale_pointers'
typedef struct __crt_locale_pointers
               ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\crtdefs.h:10:10: note: 'C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h' included multiple times, additional include
      site here
         ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\assert.h:12:10: note: 'C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h' included multiple times, additional include
      site here
         ^
In file included from input_line_3:38:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\\include\cassert:9:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\assert.h:12:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h:532:16: error: redefinition of '_Mbstatet'
typedef struct _Mbstatet
               ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\crtdefs.h:10:10: note: 'C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h' included multiple times, additional include
      site here
         ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\assert.h:12:10: note: 'C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\corecrt.h' included multiple times, additional include
      site here
         ^

There is a pending pull request solving this issue

I watched a youtube video where it said launching the ROOT from the start menu would be mistake. Is that so?
If not, what is the right way to launch the application?

I would advise to open a x86 Native Tools Command Prompt for VS 2019, go to your preferred directory and run from there. And depending the way you installed ROOT, you might have to call root\bin\thisroot.bat to properly set-up the environment variables, valid for the current session only. Otherwise, you can set the ROOTSYS environment variable and add %ROOTSYS%\bin in your PATH in your Windows settings, so you won’t have to call thisroot.bat every time

What exactly do you mean by how you downloaded ROOT>
Also what is the difference between downloading it by .exe method and zip file?

I said how you installed ROOT. if you download the zip file, you unzip it somewhere and then you have to set the environment yourself, otherwise, the exe will install it and set the environment variables. It is like many other packages. The advantage with the zip file is that it is easy to have several versions on the same computer

How do I run it exactly? Could you give me an example of what I would have to do?

**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.4.6
** Copyright (c) 2019 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x86'

C:\Users\bellenot>build\release\bin\thisroot.bat

C:\Users\bellenot>root
   ------------------------------------------------------------------
  | Welcome to ROOT 6.21/01                        https://root.cern |
  | (c) 1995-2020, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for win32 on May 16 2020, 18:49:06                         |
  | From heads/master@v6-19-01-4159-g2bdae46e19                      |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q'       |
   ------------------------------------------------------------------

root [0]

This is what I need to type out when I start it right?

I don;t understand what I need to write out

No, this is what is printed when starting a x86 Native Tools Command Prompt for VS 2019. Why don’t you simply try?

Again, it depends how and where you install ROOT…

So what I have done is installed it in a folder in my downloaded folder. Using the exe. one.

I have simply downloaed the exe. file have not done anything else with it. It is in a folder within the Downloads folder on my laptop.

So now you can execute it to install root