[GH-ISSUE #11344] An internal error occurred during the installation of OllamaSetup.exe on Windows 11 (x64) #53996

Closed
opened 2026-04-29 05:04:34 -05:00 by GiteaMirror · 7 comments
Owner

Originally created by @winderlopezg on GitHub (Jul 9, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/11344

Originally assigned to: @dhiltgen on GitHub.

What is the issue?

An internal error occurred during the installation of OllamaSetup.exe on Windows 11 (x64)

Relevant log output

2025-07-09 08:47:12.018   Compatibility mode: Yes (DetectorsAppHealth)
2025-07-09 08:47:12.018   Windows version: 10.0.22631
2025-07-09 08:47:12.018   Windows architecture: x64 (64-bit)
2025-07-09 08:47:12.018   Machine types supported by system: x86 x64
2025-07-09 08:47:12.018   User privileges: None
2025-07-09 08:47:12.026   Administrative install mode: No
2025-07-09 08:47:12.026   Install mode root key: HKEY_CURRENT_USER
2025-07-09 08:47:12.026   64-bit install mode: Yes
2025-07-09 08:47:12.027   Created temporary directory:C:\Users\USER\AppData\Local\Temp\is-S105J.tmp
2025-07-09 08:47:12.171   VC Redist version: 14.44.35211.0
2025-07-09 08:47:12.249   Starting the installation process.
2025-07-09 08:47:12.251   VC Redist version: 14.44.35211.0
2025-07-09 08:47:12.263   Warning: SHGetFolderPath failed with code 0x80070003 on folder 0x8002
2025-07-09 08:47:12.274   Warning: SHGetFolderPath failed with code 0x80070003 on folder 0x8007
2025-07-09 08:47:12.276   Fatal exception during installation process (Exception):
                          Internal error: Failed to expand shell folder constant "userstartup"
2025-07-09 08:47:12.276   Exception message:
2025-07-09 08:47:12.276   Defaulting to OK for suppressed message box (OK):
                          Internal error: Failed to expand shell folder constant "userstartup"
2025-07-09 08:47:12.276   Defaulting to OK for suppressed message box (OK):
                          Setup was not completed.

                          Please correct the problem and run Setup again.
2025-07-09 08:47:12.276   Rolling back changes.
2025-07-09 08:47:12.284   Starting the uninstallation process.
2025-07-09 08:47:12.918   Uninstallation process succeeded.
2025-07-09 08:47:14.420   Deinitializing Setup.
2025-07-09 08:47:14.479   Log closed.

OS

Windows 11

GPU

Intel Iris Xe Graphics

CPU

Intel Core i7 1165G7

Ollama version

0.9.6

Originally created by @winderlopezg on GitHub (Jul 9, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/11344 Originally assigned to: @dhiltgen on GitHub. ### What is the issue? An internal error occurred during the installation of OllamaSetup.exe on Windows 11 (x64) ### Relevant log output ```shell 2025-07-09 08:47:12.018 Compatibility mode: Yes (DetectorsAppHealth) 2025-07-09 08:47:12.018 Windows version: 10.0.22631 2025-07-09 08:47:12.018 Windows architecture: x64 (64-bit) 2025-07-09 08:47:12.018 Machine types supported by system: x86 x64 2025-07-09 08:47:12.018 User privileges: None 2025-07-09 08:47:12.026 Administrative install mode: No 2025-07-09 08:47:12.026 Install mode root key: HKEY_CURRENT_USER 2025-07-09 08:47:12.026 64-bit install mode: Yes 2025-07-09 08:47:12.027 Created temporary directory:C:\Users\USER\AppData\Local\Temp\is-S105J.tmp 2025-07-09 08:47:12.171 VC Redist version: 14.44.35211.0 2025-07-09 08:47:12.249 Starting the installation process. 2025-07-09 08:47:12.251 VC Redist version: 14.44.35211.0 2025-07-09 08:47:12.263 Warning: SHGetFolderPath failed with code 0x80070003 on folder 0x8002 2025-07-09 08:47:12.274 Warning: SHGetFolderPath failed with code 0x80070003 on folder 0x8007 2025-07-09 08:47:12.276 Fatal exception during installation process (Exception): Internal error: Failed to expand shell folder constant "userstartup" 2025-07-09 08:47:12.276 Exception message: 2025-07-09 08:47:12.276 Defaulting to OK for suppressed message box (OK): Internal error: Failed to expand shell folder constant "userstartup" 2025-07-09 08:47:12.276 Defaulting to OK for suppressed message box (OK): Setup was not completed. Please correct the problem and run Setup again. 2025-07-09 08:47:12.276 Rolling back changes. 2025-07-09 08:47:12.284 Starting the uninstallation process. 2025-07-09 08:47:12.918 Uninstallation process succeeded. 2025-07-09 08:47:14.420 Deinitializing Setup. 2025-07-09 08:47:14.479 Log closed. ``` ### OS _Windows 11_ ### GPU _Intel Iris Xe Graphics_ ### CPU _Intel Core i7 1165G7_ ### Ollama version _0.9.6_
GiteaMirror added the installbugneeds more infowindows labels 2026-04-29 05:04:34 -05:00
Author
Owner

@dhiltgen commented on GitHub (Jul 10, 2025):

How were you running the installer?

<!-- gh-comment-id:3058350811 --> @dhiltgen commented on GitHub (Jul 10, 2025): How were you running the installer?
Author
Owner

@winderlopezg commented on GitHub (Jul 11, 2025):

How were you running the installer?

with the winget tool and also with the installer downloaded from the repo

<!-- gh-comment-id:3062083644 --> @winderlopezg commented on GitHub (Jul 11, 2025): > How were you running the installer? with the winget tool and also with the installer downloaded from the repo
Author
Owner

@dhiltgen commented on GitHub (Jul 11, 2025):

@winderlopezg to clarify, if you run the OllamaSetup.exe manually from explorer after downloading it, you're hitting this error? Is that correct?

If so, do you know if there's anything unusual about your account? I'm not sure why {userstartup} isn't expanding properly to %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup

<!-- gh-comment-id:3062748013 --> @dhiltgen commented on GitHub (Jul 11, 2025): @winderlopezg to clarify, if you run the OllamaSetup.exe manually from explorer after downloading it, you're hitting this error? Is that correct? If so, do you know if there's anything unusual about your account? I'm not sure why `{userstartup}` isn't expanding properly to `%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup`
Author
Owner

@winderlopezg commented on GitHub (Jul 12, 2025):

WinGet-Ollama.Ollama.0.9.6-2025-07-12-09-36-01.276.log

@dhiltgen These messages are given to me by the installer when I try to run it and then it closes

Image Image
<!-- gh-comment-id:3065444053 --> @winderlopezg commented on GitHub (Jul 12, 2025): [WinGet-Ollama.Ollama.0.9.6-2025-07-12-09-36-01.276.log](https://github.com/user-attachments/files/21196503/WinGet-Ollama.Ollama.0.9.6-2025-07-12-09-36-01.276.log) @dhiltgen These messages are given to me by the installer when I try to run it and then it closes <img width="1095" height="836" alt="Image" src="https://github.com/user-attachments/assets/7d6c7a05-b67e-4b7d-b4c5-4c988f1cb4a9" /> <img width="1095" height="836" alt="Image" src="https://github.com/user-attachments/assets/12420032-8c16-4536-9cc9-c88accc70f33" />
Author
Owner

@winderlopezg commented on GitHub (Jul 12, 2025):

I've already fixed the problem. I've created the %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup directories, and now I can install the application.

thanks @dhiltgen

<!-- gh-comment-id:3065485031 --> @winderlopezg commented on GitHub (Jul 12, 2025): I've already fixed the problem. I've created the %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup directories, and now I can install the application. thanks @dhiltgen
Author
Owner

@winderlopezg commented on GitHub (Jul 12, 2025):

fixed

<!-- gh-comment-id:3065485613 --> @winderlopezg commented on GitHub (Jul 12, 2025): fixed
Author
Owner

@liujingmao commented on GitHub (Nov 16, 2025):

I've already fixed the problem. I've created the %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup directories, and now I can install the application.

thanks @dhiltgen

How do this,I have also encounter this issue,but I am not good at win to create Startup. @winderlopezg

<!-- gh-comment-id:3538770738 --> @liujingmao commented on GitHub (Nov 16, 2025): > I've already fixed the problem. I've created the %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup directories, and now I can install the application. > > thanks [@dhiltgen](https://github.com/dhiltgen) How do this,I have also encounter this issue,but I am not good at win to create Startup. @winderlopezg
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#53996