fix(installer): configure custom NSIS installer path and force close

This commit is contained in:
Jaya Prasad Kavuru 2026-04-24 10:04:18 +05:30
commit 0ed86f2d77
2 changed files with 12 additions and 0 deletions

7
build/installer.nsh Normal file
View 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

View file

@ -60,6 +60,11 @@
}
]
},
"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": true,
"include": "build/installer.nsh"
},
"linux": {
"icon": "public/banner.png",
"category": "Utility",