mirror of
https://github.com/Anil-matcha/Open-Generative-AI.git
synced 2026-05-07 01:17:18 +00:00
fix(installer): configure custom NSIS installer path and force close
This commit is contained in:
parent
11679c387d
commit
0ed86f2d77
2 changed files with 12 additions and 0 deletions
7
build/installer.nsh
Normal file
7
build/installer.nsh
Normal file
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue