# Ocaml installation on different disk

**URL:** <https://discuss.ocaml.org/t/ocaml-installation-on-different-disk/12621>\
**Category:** Learning\
**Created:** [July 16, 2023, 12:16am UTC](https://discuss.ocaml.org/t/ocaml-installation-on-different-disk/12621 "2023-07-16T00:16:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nice\_Try\_M9](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/nice_try_m9/32/4563_2.png) [@Nice\_Try\_M9](https://discuss.ocaml.org/u/Nice_Try_M9)\
**Post date:** [July 16, 2023, 12:16am UTC](https://discuss.ocaml.org/t/ocaml-installation-on-different-disk/12621/1 "2023-07-16T00:16:49Z")

</div>

Hello everyone!

I’m trying to install OCaml on Windows using diskuv installer, but the installer install everything in the C disk by default. As i don’t hav enough space in it, i wanted to know if it’s possible to install it on a different Disk like the (D disk) ?

---

<div class="post-metadata">

**Author:** ![jbeckford](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/jbeckford/32/3027_2.png) [@jbeckford](https://discuss.ocaml.org/u/jbeckford)\
**Post date:** [July 16, 2023, 12:31am UTC](https://discuss.ocaml.org/t/ocaml-installation-on-different-disk/12621/2 "2023-07-16T00:31:59Z")

</div>

You can use a different location by using the `--verbose --prefix D:\blahblah` command line option of the installer. That and other options are available with `--help`.

If that isn’t working for you, file an issue at [https://github.com/diskuv/dkml-installer-ocaml/issues/new](https://github.com/diskuv/dkml-installer-ocaml/issues/new)

---

<div class="post-metadata">

**Author:** ![Nice\_Try\_M9](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/nice_try_m9/32/4563_2.png) [@Nice\_Try\_M9](https://discuss.ocaml.org/u/Nice_Try_M9)\
**Post date:** [July 16, 2023, 10:53am UTC](https://discuss.ocaml.org/t/ocaml-installation-on-different-disk/12621/3 "2023-07-16T10:53:31Z")

</div>

Where can i use this different location command line, because the installer (exe) runs directly without giving any chance to type anything.

---

<div class="post-metadata">

**Author:** ![jbeckford](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/jbeckford/32/3027_2.png) [@jbeckford](https://discuss.ocaml.org/u/jbeckford)\
**Post date:** [July 16, 2023, 3:50pm UTC](https://discuss.ocaml.org/t/ocaml-installation-on-different-disk/12621/4 "2023-07-16T15:50:10Z")

</div>

We are having a communication difficulty. Can you categorize yourself into one of the following two categories?

### Category 1

You are familiar with the terms “change directory” and “directory listing”.

The following makes sense to you:

- Run the Command Prompt, PowerShell or Windows Terminal to get a command line.
- Change directory (`cd`) to your browser’s download folder
- Do a directory listing (`dir`) to find the specific filename you downloaded
- Run `setup-X.Y.Z.exe --verbose --prefix D:\blahblah` from that directory, replacing `setup-X.Y.Z.exe` with the specific filename you found in the last step, and `D:\blahblah` with a suitable directory on your D drive

### Category 2

You are _not_ familiar with the terms “change directory” and “directory listing”. That’s fine! Since day-to-day use of OCaml requires familiarity with those terms (more generally, the “command line”), you should pause briefly and find some material before completing the installation.

I don’t know the best material for that though, so please respond if you are in Category 2 and perhaps one of the professors or teachers on this discuss forum can point you to material they use with their students.

---

<div class="post-metadata">

**Author:** ![Nice\_Try\_M9](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/nice_try_m9/32/4563_2.png) [@Nice\_Try\_M9](https://discuss.ocaml.org/u/Nice_Try_M9)\
**Post date:** [July 16, 2023, 5:40pm UTC](https://discuss.ocaml.org/t/ocaml-installation-on-different-disk/12621/5 "2023-07-16T17:40:40Z")

</div>

Thank you so much for your detailed response!

I ran the command setup-diskuv-ocaml-windows\_x86\_64-1.2.0 --verbose --prefix D:\OCaml

 ![Sans titre](https://us1.discourse-cdn.com/flex020/uploads/ocaml/original/2X/e/e20812623c17bcce5134603032ee179ef6b37308.png)

but it is still being installed in the wrong drive and not in the one i have specified in the command you have just given me.

I have only the uninstall.exe and app.ico files that are being installed in the D:\OCaml folder.

---

<div class="post-metadata">

**Author:** ![jbeckford](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/jbeckford/32/3027_2.png) [@jbeckford](https://discuss.ocaml.org/u/jbeckford)\
**Post date:** [July 16, 2023, 6:08pm UTC](https://discuss.ocaml.org/t/ocaml-installation-on-different-disk/12621/6 "2023-07-16T18:08:12Z")

</div>

If you let it continue you’ll see that OCaml is installed in your D: drive but the prerequisites (Visual Studio and Git) have their own installers that install to default locations (C:).

Can you make an issue? Not for your benefit but for every other first-time user. 90+% of them ask+search questions in the Issues ([Issues · diskuv/dkml-installer-ocaml · GitHub](https://github.com/diskuv/dkml-installer-ocaml/issues)) because that is what the installer tells them to do.

---

<div class="post-metadata">

**Author:** ![Nice\_Try\_M9](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/nice_try_m9/32/4563_2.png) [@Nice\_Try\_M9](https://discuss.ocaml.org/u/Nice_Try_M9)\
**Post date:** [July 16, 2023, 6:14pm UTC](https://discuss.ocaml.org/t/ocaml-installation-on-different-disk/12621/7 "2023-07-16T18:14:16Z")

</div>

I have another folder called DiskuvOcaml that is roughly 2.5 Go that is being installed in C.

If i have already (Git and VS), is it gonna install them again, if that’s not the case, can i install VS on its own and then install the OCaml Windows installer?
