mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
adjusted nsis installer
This commit is contained in:
parent
b2f6464645
commit
dbd0081cf6
2 changed files with 11 additions and 3 deletions
|
@ -8,7 +8,9 @@ Name "FreeData Server"
|
||||||
OutFile "FreeData-Server-Installer.exe"
|
OutFile "FreeData-Server-Installer.exe"
|
||||||
|
|
||||||
; Default installation directory
|
; 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
|
; Registry key to store the installation directory
|
||||||
InstallDirRegKey HKCU "Software\FreeData\freedata-server" "Install_Dir"
|
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 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_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
|
; Pages
|
||||||
!insertmacro MUI_PAGE_WELCOME
|
!insertmacro MUI_PAGE_WELCOME
|
||||||
!insertmacro MUI_PAGE_LICENSE "LICENSE"
|
!insertmacro MUI_PAGE_LICENSE "LICENSE"
|
||||||
!insertmacro MUI_PAGE_COMPONENTS
|
;!insertmacro MUI_PAGE_COMPONENTS
|
||||||
!insertmacro MUI_PAGE_DIRECTORY
|
!insertmacro MUI_PAGE_DIRECTORY
|
||||||
!insertmacro MUI_PAGE_INSTFILES
|
!insertmacro MUI_PAGE_INSTFILES
|
||||||
!insertmacro MUI_PAGE_FINISH
|
!insertmacro MUI_PAGE_FINISH
|
||||||
|
|
|
@ -2,6 +2,7 @@ from flask import Flask, request, jsonify, make_response, abort, Response
|
||||||
from flask_sock import Sock
|
from flask_sock import Sock
|
||||||
from flask_cors import CORS
|
from flask_cors import CORS
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
import serial_ports
|
import serial_ports
|
||||||
from config import CONFIG
|
from config import CONFIG
|
||||||
import audio
|
import audio
|
||||||
|
@ -39,7 +40,7 @@ def set_config():
|
||||||
print(f"Using config from {config_file}")
|
print(f"Using config from {config_file}")
|
||||||
else:
|
else:
|
||||||
print(f"Config file '{config_file}' not found. Exiting.")
|
print(f"Config file '{config_file}' not found. Exiting.")
|
||||||
exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
return config_file
|
return config_file
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue