adjusted nsis installer

This commit is contained in:
DJ2LS 2024-02-04 13:44:03 +01:00
parent b2f6464645
commit dbd0081cf6
2 changed files with 11 additions and 3 deletions

View file

@ -8,7 +8,9 @@ Name "FreeData Server"
OutFile "FreeData-Server-Installer.exe"
; Default installation directory
InstallDir "$PROGRAMFILES\FreeData\freedata-server"
; InstallDir "$PROGRAMFILES\FreeData\freedata-server"
InstallDir "$LOCALAPPDATA\FreeData\freedata-server"
; Registry key to store the installation directory
InstallDirRegKey HKCU "Software\FreeData\freedata-server" "Install_Dir"
@ -23,11 +25,16 @@ InstallDirRegKey HKCU "Software\FreeData\freedata-server" "Install_Dir"
; Define the welcome page text
!define MUI_WELCOMEPAGE_TEXT "Welcome to the FreeData Server Setup Wizard. This wizard will guide you through the installation process."
!define MUI_FINISHPAGE_TEXT "Folder: $INSTDIR"
!define MUI_DIRECTORYPAGE_TEXT_TOP "Please select the installation folder. Its recommended using the suggested one for avoiding permission problems."
; Pages
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "LICENSE"
!insertmacro MUI_PAGE_COMPONENTS
;!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH

View file

@ -2,6 +2,7 @@ from flask import Flask, request, jsonify, make_response, abort, Response
from flask_sock import Sock
from flask_cors import CORS
import os
import sys
import serial_ports
from config import CONFIG
import audio
@ -39,7 +40,7 @@ def set_config():
print(f"Using config from {config_file}")
else:
print(f"Config file '{config_file}' not found. Exiting.")
exit(1)
sys.exit(1)
return config_file