diff --git a/installer.ifp b/installer.ifp deleted file mode 100644 index ae1d4c2..0000000 Binary files a/installer.ifp and /dev/null differ diff --git a/scripts/NovetusInstaller.nsi b/scripts/NovetusInstaller.nsi new file mode 100644 index 0000000..c7a6230 --- /dev/null +++ b/scripts/NovetusInstaller.nsi @@ -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 \ No newline at end of file diff --git a/scripts/batch/dev_menu.bat b/scripts/batch/dev_menu.bat index 96e550e..b0b30bd 100644 --- a/scripts/batch/dev_menu.bat +++ b/scripts/batch/dev_menu.bat @@ -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 diff --git a/scripts/batch/github_sync.bat b/scripts/batch/github_sync.bat index 5386bd5..24b2dff 100644 --- a/scripts/batch/github_sync.bat +++ b/scripts/batch/github_sync.bat @@ -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