Explorar o código

Clean up old files when installing on Windows (#5645)

* app: always clean up install dir; force close applications

* remove wildcard

* revert `CloseApplications`

* whitespace

* update `LOCALAPPDATA` var
Jeffrey Morgan hai 9 meses
pai
achega
179737feb7
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      app/ollama.iss

+ 3 - 0
app/ollama.iss

@@ -127,6 +127,9 @@ Type: filesandordirs; Name: "{%USERPROFILE}\.ollama\models"
 Type: filesandordirs; Name: "{%USERPROFILE}\.ollama\history"
 Type: filesandordirs; Name: "{%USERPROFILE}\.ollama\history"
 ; NOTE: if the user has a custom OLLAMA_MODELS it will be preserved
 ; NOTE: if the user has a custom OLLAMA_MODELS it will be preserved
 
 
+[InstallDelete]
+Type: filesandordirs; Name: "{%LOCALAPPDATA}\Programs\Ollama"
+
 [Messages]
 [Messages]
 WizardReady=Ollama Windows Preview
 WizardReady=Ollama Windows Preview
 ReadyLabel1=%nLet's get you up and running with your own large language models.
 ReadyLabel1=%nLet's get you up and running with your own large language models.