Skip to content

Unrestricted Open-source alternative to AI video platforms — Free AI image & video generation studio with 600+ models (Flux, Midjourney, Kling, Sora, Veo). No content filters. Self-hosted, MIT licensed.

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

Jaya Prasad Kavuru0ed86f2d774c
diff --git a/build/installer.nsh b/build/installer.nsh
new file mode 100644
index 00000000..9ab863fa
--- /dev/null
+++ b/build/installer.nsh
@@ -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
diff --git a/package.json b/package.json
index c2cf579a..7f45c45e 100644
--- a/package.json
+++ b/package.json
@@ -60,6 +60,11 @@
}
]
},
+ "nsis": {
+ "oneClick": false,
+ "allowToChangeInstallationDirectory": true,
+ "include": "build/installer.nsh"
+ },
"linux": {
"icon": "public/banner.png",
"category": "Utility",