mirror of
https://github.com/Anil-matcha/Open-Generative-AI.git
synced 2026-08-31 01:40:10 +08:00
fix(installer): configure custom NSIS installer path and force close
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
!macro customInit
|
||||
; Override default installation directory to be directly in LocalAppData
|
||||
StrCpy $INSTDIR "$LOCALAPPDATA\Open Generative AI"
|
||||
|
||||
; Forcefully kill the app if it's running to prevent installation failure
|
||||
nsExec::ExecToStack 'taskkill /F /IM "Open Generative AI.exe"'
|
||||
!macroend
|
||||
@@ -60,6 +60,11 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"nsis": {
|
||||
"oneClick": false,
|
||||
"allowToChangeInstallationDirectory": true,
|
||||
"include": "build/installer.nsh"
|
||||
},
|
||||
"linux": {
|
||||
"icon": "public/banner.png",
|
||||
"category": "Utility",
|
||||
|
||||
Reference in New Issue
Block a user