[GH-ISSUE #2776] Support custom install dir in Windows installer #48186

Closed
opened 2026-04-28 07:05:07 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @olexx on GitHub (Feb 27, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/2776

Originally assigned to: @dhiltgen on GitHub.

Hi,
Is there an option to install the windows app NOT on C:\ drive ?

e.g.: E:\Program Files.....

Originally created by @olexx on GitHub (Feb 27, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/2776 Originally assigned to: @dhiltgen on GitHub. Hi, Is there an option to install the windows app NOT on C:\ drive ? e.g.: E:\Program Files\.....
GiteaMirror added the feature requestwindows labels 2026-04-28 07:05:24 -05:00
Author
Owner

@eastsidejapan commented on GitHub (Mar 4, 2024):

i would like to install this another drive also. dont have enough space on c:
will instructions be added how to install to another drive? or option with the windows installer?

<!-- gh-comment-id:1975733287 --> @eastsidejapan commented on GitHub (Mar 4, 2024): i would like to install this another drive also. dont have enough space on c:\ will instructions be added how to install to another drive? or option with the windows installer?
Author
Owner

@dhiltgen commented on GitHub (Mar 11, 2024):

We don't offer support for system service install today. It always installs in your user home directly. After install, you can change where the models are stored by following the instructions here https://github.com/ollama/ollama/blob/main/docs/faq.md#where-are-models-stored

<!-- gh-comment-id:1989459288 --> @dhiltgen commented on GitHub (Mar 11, 2024): We don't offer support for system service install today. It always installs in your user home directly. After install, you can change where the models are stored by following the instructions here https://github.com/ollama/ollama/blob/main/docs/faq.md#where-are-models-stored
Author
Owner

@agonzalezm commented on GitHub (Aug 30, 2024):

can you add /silent mode to installer? and also add install method using powershell with iwr to download the script like you do for linux/mac with curl ?

<!-- gh-comment-id:2320544012 --> @agonzalezm commented on GitHub (Aug 30, 2024): can you add /silent mode to installer? and also add install method using powershell with iwr to download the script like you do for linux/mac with curl ?
Author
Owner

@nviraj commented on GitHub (Sep 6, 2024):

I have found 2 working methods so far, documenting it in case it helps somebody.

  • Locate the file directory and move it to your desired location and add the new directory to your system path so that the Ollama executable can be found.
  • Use winget to install (One time) and update Ollama (Every time you need to update). Make sure you use the location flag for both commands. If not, the update will reset to the default location.
    • winget install -i -e --id Ollama.Ollama --location D:\Apps\Ollama
    • Auto update works with your custom location but if you want to use winget for that as well don't forget location, if not it will shift back to default: winget upgrade -i -e --id Ollama.Ollama --location D:\Apps\Ollama

The second method is my preferred one. Please note that -i flag makes the installation interactive. Remove it for unattended installation.

<!-- gh-comment-id:2333360257 --> @nviraj commented on GitHub (Sep 6, 2024): I have found 2 working methods so far, documenting it in case it helps somebody. - Locate the file directory and move it to your desired location and add the new directory to your system path so that the Ollama executable can be found. - Use [winget](https://winget.run/) to install (One time) and update Ollama (Every time you need to update). Make sure you use the location flag for both commands. If not, the update will reset to the default location. - `winget install -i -e --id Ollama.Ollama --location D:\Apps\Ollama` - Auto update works with your custom location but if you want to use winget for that as well don't forget location, if not it will shift back to default: `winget upgrade -i -e --id Ollama.Ollama --location D:\Apps\Ollama` The second method is my preferred one. Please note that -i flag makes the installation interactive. Remove it for unattended installation.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#48186