2024-01-31 10:01:46 +00:00
|
|
|
!include "MUI2.nsh"
|
2024-01-30 20:41:25 +00:00
|
|
|
|
2024-01-31 10:01:46 +00:00
|
|
|
; The name and file name of the installer
|
|
|
|
Name "FreeData Server"
|
|
|
|
OutFile "FreeData_Server_Installer.exe"
|
2024-01-30 20:41:25 +00:00
|
|
|
|
|
|
|
; Default installation directory
|
2024-01-31 10:01:46 +00:00
|
|
|
InstallDir "$PROGRAMFILES\FreeData\freedata-server"
|
2024-01-30 20:41:25 +00:00
|
|
|
|
|
|
|
; Registry key to store the installation directory
|
2024-01-31 10:01:46 +00:00
|
|
|
InstallDirRegKey HKCU "Software\FreeData\freedata-server" "Install_Dir"
|
2024-01-30 20:41:25 +00:00
|
|
|
|
2024-01-31 10:01:46 +00:00
|
|
|
; Modern UI settings
|
|
|
|
!define MUI_ABORTWARNING
|
2024-01-30 20:41:25 +00:00
|
|
|
|
2024-01-31 10:01:46 +00:00
|
|
|
; 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."
|
2024-01-30 20:41:25 +00:00
|
|
|
|
2024-01-31 10:01:46 +00:00
|
|
|
; Pages
|
|
|
|
!insertmacro MUI_PAGE_WELCOME
|
|
|
|
!insertmacro MUI_PAGE_LICENSE "LICENSE"
|
|
|
|
!insertmacro MUI_PAGE_COMPONENTS
|
|
|
|
!insertmacro MUI_PAGE_DIRECTORY
|
|
|
|
!insertmacro MUI_PAGE_INSTFILES
|
|
|
|
!insertmacro MUI_PAGE_FINISH
|
2024-01-31 09:19:07 +00:00
|
|
|
|
2024-01-31 10:01:46 +00:00
|
|
|
; Uninstaller
|
|
|
|
!insertmacro MUI_UNPAGE_WELCOME
|
|
|
|
!insertmacro MUI_UNPAGE_CONFIRM
|
|
|
|
!insertmacro MUI_UNPAGE_INSTFILES
|
|
|
|
!insertmacro MUI_UNPAGE_FINISH
|
2024-01-31 09:19:07 +00:00
|
|
|
|
2024-01-31 10:01:46 +00:00
|
|
|
; Language (you can choose and configure the language(s) you want)
|
|
|
|
!insertmacro MUI_LANGUAGE "English"
|
2024-01-31 09:19:07 +00:00
|
|
|
|
2024-01-31 10:01:46 +00:00
|
|
|
; Installer Sections
|
|
|
|
Section "Install FreeData Server" SEC01
|
2024-01-30 20:41:25 +00:00
|
|
|
|
2024-01-31 10:01:46 +00:00
|
|
|
; Set output path to the installation directory
|
2024-01-30 20:41:25 +00:00
|
|
|
SetOutPath $INSTDIR
|
|
|
|
|
2024-01-31 10:01:46 +00:00
|
|
|
; Add your application files here
|
2024-01-31 09:21:54 +00:00
|
|
|
File /r "modem\server.dist\*.*"
|
2024-01-30 20:41:25 +00:00
|
|
|
|
2024-01-31 10:01:46 +00:00
|
|
|
; Additional installation commands here
|
2024-01-30 20:41:25 +00:00
|
|
|
|
2024-01-31 10:01:46 +00:00
|
|
|
; Create a shortcut in the user's desktop
|
2024-01-30 20:41:25 +00:00
|
|
|
CreateShortCut "$DESKTOP\FreeData Server.lnk" "$INSTDIR\freedata-server.exe"
|
|
|
|
|
2024-01-31 10:01:46 +00:00
|
|
|
; Create Uninstaller
|
|
|
|
WriteUninstaller "$INSTDIR\Uninstall.exe"
|
2024-01-30 20:41:25 +00:00
|
|
|
SectionEnd
|
|
|
|
|
2024-01-31 10:01:46 +00:00
|
|
|
; Uninstaller Section
|
2024-01-30 20:41:25 +00:00
|
|
|
Section "Uninstall"
|
|
|
|
|
2024-01-31 10:01:46 +00:00
|
|
|
; Delete files and directories
|
|
|
|
Delete $INSTDIR\freedata-server.exe
|
2024-01-30 20:41:25 +00:00
|
|
|
RMDir /r $INSTDIR
|
|
|
|
|
2024-01-31 10:01:46 +00:00
|
|
|
; Remove the shortcut
|
2024-01-30 20:41:25 +00:00
|
|
|
Delete "$DESKTOP\FreeData Server.lnk"
|
|
|
|
|
2024-01-31 10:01:46 +00:00
|
|
|
; Additional uninstallation commands here
|
|
|
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
|