i download zip, but you can use installer version.
To unpack you mast have zip or 7zip packages installed, using 7zip :
```
cd /d D:\
7z x <path_to_zip>\root_v6.30.04.win64.vc17.zip
```
This will install 64 bit root version 6.28/02 to D:\root directory. But you can use any directory which you prefer. ROOT is installed in _relocatable_ mode.
To use ROOT, you must set its environment sourcing the *thisroot.bat* script from
the ROOT installation directory:
`call D:\root\bin\thisroot.bat`
Visit http://root.cern.ch for more information about ROOT.
### Installing Geant4
You can download geant v11.2.1 installer ( or .zip file ) for Windows 10 , 64 bit compiled using Visual Studio 2022 from geant4 download page:
https://geant4.web.cern.ch/support/download
### Build Geant4 locally
Please, follow Geant4 "Installation Guide" to build geant4
in project install/MSVS subdirectory you can found build-geant4.bat with command i use to build geant4. The option -DGEANT4_BUILD_MULTITHREADED=ON default for geant4 v11.
You need setup compiler ant qt5 environment before build geant4.
You can use script *setup_env.bat* from `setup\MSVC` to setup compiler and qt in DOS Prompt.
You will see the ROOT demo bar and can run some demos by clicking on the demo menu.
You need to go from up to down in the menu, some demos depend on the previous demos results.
To quit ROOT type .q on the ROOT prompt
```
root [1] .q
Taking a break from ROOT? Hope to see you back!
>
```
## Tips ##
- Geant4
- You check the Geant4 datasets installation using the command:
`geant4-config --check-datasets`
- `geant4-config --help` also shows the Geant4 features (configuration options)
You can use geant4-config from `git-bash` prompt, to do so just start git-bash
from dos prompt windows where you already setup development environment for geant4. You also can use `git-bash` to execute `SetupForDevelopment.sh` script.
With help of *gent4-config.bat* wrapper you can execute gent4-config directly
from DOS prompt, as gent4-config is a posix shell script you need have
sh.exe and several other unix utilities to make it work. The two possible
solution was tested.
- use unix utilities from git installation. You will need add directory
`<git_install_die>\usr\bin` to you dos path
- use busybox installed with his aliases, i use `scoop install busybox`
to install the busybox.
# Geant4 Installation on Windows 11
<!--
For Geant4 version 11.2.0 you can also apply pathch win.path
which you can found in installg4/install/MSVC/ directory.
-->
[[_TOC_]]
Hire the instructions for native Geant4 installation with the Visual Studio C++ compiler on Windows.
## Windows Requirements
* A 64-bit Intel CPU
* Windows 10 or 11
* Microsoft Visual Studio C++ compiler
The installation tested with Windows 11 MSVC 2022 (v17.13.5) and Qt 5.12.2
## Development Environment
### Installing MSVC in Windows
The Visual Studio can be downloaded from Microsoft
https://visualstudio.microsoft.com/vs/
Community edition 2022 free for individuals and academic users.
The components:
- Visual Core editor
- Desktop development with C++
was necessarily to compile Geant4.
### CMake for Windows
The Visual Studio come with cmake program but without CMake GUI.
We use this cmake for compilation and installing Geant4.
You can download and install latest version directly from
https://cmake.org/download/ or use package installers like
[Scoop](https://scoop.sh) or
[Chocolatey](https://chocolatey.org/install)
### Installing Git
Git for Windows installer can be downloaded directly from Git site
https://git-scm.com/download/win
Step by step installation instruction can be found f.e.
i download zip, but you can use installer version.
To unpack you mast have zip or 7zip packages installed, using 7zip :
```
cd /d D:\
7z x <path_to_zip>\root_v6.34.06.win64.python311.vc17.relwithdebinfo.zip
```
This will install 64 bit root version 6.34/06 to D:\root directory. But you can use any directory which you prefer. ROOT is installed in _relocatable_ mode.
To use ROOT, you must set its environment sourcing the *thisroot.bat* script from
the ROOT installation directory:
`call D:\root\bin\thisroot.bat`
Visit http://root.cern.ch for more information about ROOT.
### Installing Geant4
You can download geant v11.3.1 installer ( or .zip file ) for Windows 10 , 64 bit compiled using Visual Studio 2022 from geant4 download page:
https://geant4.web.cern.ch/download/11.3.1.html
### Build Geant4 locally
Please, follow Geant4 "Installation Guide" to build geant4
in project install/MSVS subdirectory you can found build-geant4.bat with command i use to build geant4. The option -DGEANT4_BUILD_MULTITHREADED=ON default for geant4 v11.
You need setup compiler ant qt5 environment before build geant4.
You can use script *setup_env.bat* from `setup\MSVC` to setup compiler and qt in DOS Prompt.
You will see the ROOT demo bar and can run some demos by clicking on the demo menu.
You need to go from up to down in the menu, some demos depend on the previous demos results.
To quit ROOT type .q on the ROOT prompt
```
root [1] .q
Taking a break from ROOT? Hope to see you back!
>
```
## Tips ##
- Geant4
- You check the Geant4 datasets installation using the command:
`geant4-config --check-datasets`
- `geant4-config --help` also shows the Geant4 features (configuration options)
You can use geant4-config from `git-bash` prompt, to do so just start git-bash
from dos prompt windows where you already setup development environment for geant4. You also can use `git-bash` to execute `SetupForDevelopment.sh` script.
With help of *gent4-config.bat* wrapper you can execute gent4-config directly
from DOS prompt, as gent4-config is a posix shell script you need have
sh.exe and several other unix utilities to make it work. The two possible
solution was tested.
- use unix utilities from git installation. You will need add directory
`<git_install_die>\usr\bin` to you dos path
- use busybox installed with his aliases, i use `scoop install busybox`
to install the busybox.
- The md5sum command from busybox not support *--tag* option. To allow
geant4-config --install-datasets work correctly you need to install