sinfar-installer/sinfarInstaller.nsi
2025-04-20 08:56:39 -04:00

35 lines
855 B
NSIS

;!include "MUI2.nsh"
!include "nsDialogs.nsh"
!include "LogicLib.nsh"
Outfile "SinfarInstaller-v30.exe" ; Name of the output file
RequestExecutionLevel admin ; We need admin right just to be sure everything work smoothly, use can refuse anyway.
Icon "installerico.ico" ; Sinfar icon!!!
InstallDir "$PROGRAMFILES\DummyInstall"
Var INSTPATH
!include "Pages\page_select_path.nsi"
!include "Pages\page_download_files.nsi"
Page custom Page_SelectNWNPath Page_SelectNWNPath_Validation ; Custom page first
Page custom Page_DownloadContent "" ; Download page
Page InstFiles ; Then show Install progress
Section "Install Dummy Files" SEC01
; Create the install directory
SetOutPath "$INSTDIR"
; Write a simple Hello World text file
FileOpen $0 "$INSTDIR\hello.txt" w
FileWrite $0 "Hello World!"
FileClose $0
SectionEnd