[GH-ISSUE #4828] Ability to choose different installation location in Windows #49563

Closed
opened 2026-04-28 12:16:29 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @nviraj on GitHub (Jun 5, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/4828

Originally assigned to: @dhiltgen on GitHub.

Hi,
It would be good if we could change the installation path while installing using the Windows Installer. If it's already available in some way, please let me know.
Thanks!

Originally created by @nviraj on GitHub (Jun 5, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/4828 Originally assigned to: @dhiltgen on GitHub. Hi, It would be good if we could change the installation path while installing using the Windows Installer. If it's already available in some way, please let me know. Thanks!
GiteaMirror added the feature requestwindows labels 2026-04-28 12:16:29 -05:00
Author
Owner

@SYTBOTW commented on GitHub (Jun 7, 2024):

After installing Ollama, locate the file directory and move the entire Ollama file to the target directory. Then, find the variable value of Ollama in the system environment variable and change it to the full path after the move. That's it

<!-- gh-comment-id:2153878848 --> @SYTBOTW commented on GitHub (Jun 7, 2024): After installing Ollama, locate the file directory and move the entire Ollama file to the target directory. Then, find the variable value of Ollama in the system environment variable and change it to the full path after the move. That's it
Author
Owner

@nviraj commented on GitHub (Jul 13, 2024):

Although, SYTBOTW alluded to the presence of an environment variable that points to the Ollama installation location, I couldn't really find any such variable. OLLAMA_MODELS exists, but it is to control where model blobs are placed.

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
    • 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:2226862255 --> @nviraj commented on GitHub (Jul 13, 2024): Although, SYTBOTW alluded to the presence of an environment variable that points to the Ollama installation location, I couldn't really find any such variable. `OLLAMA_MODELS` exists, but it is to control where model blobs are placed. 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` - `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.
Author
Owner

@dhiltgen commented on GitHub (Sep 5, 2024):

Tracked via #2776

<!-- gh-comment-id:2332733134 --> @dhiltgen commented on GitHub (Sep 5, 2024): Tracked via #2776
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#49563