nsis installer

This commit is contained in:
Bitl 2024-01-08 20:00:17 -07:00
parent 539a3e462c
commit a9a5b1c051
4 changed files with 75 additions and 1 deletions

Binary file not shown.

View File

@ -0,0 +1,74 @@
; Script generated by the HM NIS Edit Script Wizard.
; HM NIS Edit Wizard helper defines
!define PRODUCT_NAME "Novetus"
!define PRODUCT_VERSION "2.0"
!define PRODUCT_PUBLISHER "Bitl Development Studio"
!define PRODUCT_WEB_SITE "http://home.bitl.dev/"
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\NovetusBootstrapper.exe"
!define PRODUCT_STARTMENU_REGVAL "NSIS:StartMenuDir"
; MUI 1.67 compatible ------
!include "MUI.nsh"
; MUI Settings
!define MUI_ABORTWARNING
!define MUI_ICON "G:\Projects\GitHub\Novetus\Novetus_src\Graphics\NovetusIcon.ico"
; Welcome page
!insertmacro MUI_PAGE_WELCOME
; Components page
!insertmacro MUI_PAGE_COMPONENTS
; Directory page
!insertmacro MUI_PAGE_DIRECTORY
; Start menu page
var ICONS_GROUP
!define MUI_STARTMENUPAGE_NODISABLE
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "Novetus"
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "${PRODUCT_STARTMENU_REGVAL}"
!insertmacro MUI_PAGE_STARTMENU Application $ICONS_GROUP
; Instfiles page
!insertmacro MUI_PAGE_INSTFILES
; Finish page
!define MUI_FINISHPAGE_RUN "$INSTDIR\NovetusBootstrapper.exe"
!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\README-AND-CREDITS.TXT"
!insertmacro MUI_PAGE_FINISH
; Language files
!insertmacro MUI_LANGUAGE "English"
; MUI end ------
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "Novetus_Setup.exe"
InstallDir "$PROGRAMFILES\Novetus"
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
ShowInstDetails show
Section "Novetus" SEC01
DetailPrint "Copying Novetus files...."
File /r "Novetus\*"
DetailPrint "Installing .NET Framework 4.5.1..."
ExecWait '"$INSTDIR\_redist\NET Framework\NDP451-KB2858728-x86-x64-AllOS-ENU.exe" /q /norestart'
DetailPrint "Installing .NET Framework 2.0..."
ExecWait '"$INSTDIR\_redist\NET Framework\NetFx20SP2_x86.exe" /q'
ExecWait '"$INSTDIR\_redist\NET Framework\NetFx20SP2_x64.exe" /q'
DetailPrint "Installing Visual C++ 2005 Redistributables"
ExecWait '"$INSTDIR\_redist\Visual C++ Redistributables\vcredist2005_x86.exe" /q /r:n'
DetailPrint "Installing Visual C++ 2008 Redistributables"
ExecWait '"$INSTDIR\_redist\Visual C++ Redistributables\vcredist2008_x86.exe" /q /norestart'
; Shortcuts
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
CreateDirectory "$SMPROGRAMS\$ICONS_GROUP"
CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\Novetus.lnk" "$INSTDIR\NovetusBootstrapper.exe"
CreateShortCut "$DESKTOP\Novetus.lnk" "$INSTDIR\NovetusBootstrapper.exe"
!insertmacro MUI_STARTMENU_WRITE_END
SectionEnd
; Section descriptions
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${SEC01} ""
!insertmacro MUI_FUNCTION_DESCRIPTION_END

View File

@ -47,7 +47,6 @@ SET oldcd=%CD%
cd %CD%/Novetus
call clean_junk.bat
cd %oldcd%
echo %CD%
echo Junk files cleaned. Updating GitHub scripts.
call github_sync.bat
IF %cleanupval%==1 GOTO POSTCLEANUP

View File

@ -144,6 +144,7 @@ XCOPY "%cd%\dev_menu.bat" "%scriptsdir%\batch" /y
XCOPY "%cd%\Novetus\clean_junk.bat" "%scriptsdir%\batch" /y
XCOPY "%cd%\github_sync.bat" "%scriptsdir%\batch" /y
XCOPY "%cd%\assetfixer_gauntlet.lua" "%scriptsdir%" /y
XCOPY "%cd%\NovetusInstaller.nsi" "%scriptsdir%" /y
XCOPY "%cd%\Novetus\Novetus_dependency_installer.bat" "%scriptsdir%\batch" /y
XCOPY "%cd%\Novetus\misc\documentation.txt" "%dest%" /y
XCOPY "%cd%\Novetus\misc\consolehelp.txt" "%dest%" /y