pascalabcnet/ReleaseGenerators/PascalABCNET_head.nsh

122 lines
3 KiB
Plaintext
Raw Permalink Normal View History

2015-05-14 22:35:07 +03:00
;RequestExecutionLevel admin
!include PascalABCNET_version.nsh
!define REGDIR "Software\PascalABC.NET"
!define INSTALLDIRREGKEY "Install Directory"
!define UninstLog "uninstall.log"
InstType $(DESC_Common)
InstType $(DESC_Minimal)
Var UninstLog
Var PABCWorkNETPath
!macro AddFile FileName
FileWrite $UninstLog "$OUTDIR\${FileName}$\r$\n"
!macroend
!define AddFile "!insertmacro AddFile"
!macro AddDirectory Path
FileWrite $UninstLog "${Path}$\r$\n"
!macroend
!define AddDirectory "!insertmacro AddDirectory"
!macro AddInstallerFile FileName
FileWrite $UninstLog "$INSTDIR\${FileName}$\r$\n"
!macroend
!define AddInstallerFile "!insertmacro AddInstallerFile"
;--------------------------------
;Definitions
!define SHCNE_ASSOCCHANGED 0x8000000
!define SHCNF_IDLIST 0
;--------------------------------
;--------------------------------
;Include Modern UI
!include "MUI2.nsh"
!include "PABCWorkNETDriveChoose.nsdinc"
;--------------------------------
;General
;Name and file
Name "PascalABC.NET v${VERSION}" "PascalABC.NET"
;Default installation folder
InstallDir "$PROGRAMFILES\PascalABC.NET"
;Get installation folder from registry if available
InstallDirRegKey HKCU ${REGDIR} ""
;--------------------------------
;Interface Settings
!define MUI_ABORTWARNING
!define MUI_COMPONENTSPAGE_SMALLDESC
!define MUI_LANGDLL_ALLLANGUAGES
;--------------------------------
;Language Selection Dialog Settings
;Remember the installer language
!define MUI_LANGDLL_REGISTRY_ROOT "HKCU"
!define MUI_LANGDLL_REGISTRY_KEY "Software\PascalABC.NET"
!define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language"
;--------------------------------
;Pages
2015-06-27 19:33:50 +03:00
;!insertmacro MUI_PAGE_LICENSE $(MUILicense)
2015-05-14 22:35:07 +03:00
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
Page custom fnc_PABCWorkNETDriveChoose_Show
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
;--------------------------------
;Languages
!insertmacro MUI_LANGUAGE "Russian"
!insertmacro MUI_LANGUAGE "English"
; !insertmacro MUI_LANGUAGE "German"
;--------------------------------
;Reserve Files
;If you are using solid compression, files that are required before
;the actual installation should be stored first in the data block,
;because this will make your installer start faster.
!insertmacro MUI_RESERVEFILE_LANGDLL
Section -openlogfile
CreateDirectory "$INSTDIR"
CreateDirectory "$PROGRAMFILES\..\PABCWork.NET"
IfFileExists "$INSTDIR\${UninstLog}" +3
FileOpen $UninstLog "$INSTDIR\${UninstLog}" w
Goto +4
SetFileAttributes "$INSTDIR\${UninstLog}" NORMAL
FileOpen $UninstLog "$INSTDIR\${UninstLog}" a
FileSeek $UninstLog 0 END
SectionEnd
Section
${AddDirectory} "$INSTDIR\LibSource"
${AddDirectory} "$INSTDIR\Lib"
${AddDirectory} "$INSTDIR\Highlighting"
${AddDirectory} "$INSTDIR\PT4"
${AddDirectory} "$INSTDIR\Ico"
2017-10-20 23:13:01 +03:00
${AddDirectory} "$INSTDIR\Doc"
Implement programming languages integration functionality (#3001) * Make standardModules Dictionary instead of LanguageId usage * Create new common string constants for pascal language * Add LanguagesData class template * Move some compiler directive string constants to Compiler project * Extract LanguagesData class to separate file Also extracted RuntimeServiceModule (IO-modules) management to new functions. * Fix pabcnetc crashing (KeyNotFoundException) * Make similar change in pabcnetc_clear * Return PABCExtensions in DomConverter.cs * Return compiler string constants to Tree Converter * Rename MoveSystemUnitForward method * Rename system unit variable * Add new parser load error (localized versions) * Fix pascal language name constant * Add system units property to parsers * Add LanguageKits directory with a test file * Implement language integrator Был реализован загрузчик комплектов дополнительных языков (всех кроме Pascal). Был пересмотрен подход к реализации ParsersController и этот класс сделан синглтоном. Добавлена загрузка стандартных модулей языков в CompilerOptions. * Squashed commit of the following: commit 8f9dc7e5a0dbe2516a2af44d8ef843b7c30e2292 Author: Mikhalkovich Stanislav <miks@math.sfedu.ru> Date: Mon Mar 11 20:33:13 2024 +0300 fix #3050 commit 90363ced454216ef44c4919bb694b1a2c786b4b5 Author: Mikhalkovich Stanislav <miks@math.sfedu.ru> Date: Sun Mar 3 21:37:25 2024 +0300 Недобитки при сортировке строк commit c9d7ba7758d1cb4f41348f5cc9095b0350e0c005 Author: Mikhalkovich Stanislav <miks@math.sfedu.ru> Date: Sat Mar 2 13:32:14 2024 +0300 Order и OrderDescending для строк с Ordinal commit 6fbc0200bf4b413940a459f8b5d96c4597f561f4 Author: AlexanderZemlyak <92867056+AlexanderZemlyak@users.noreply.github.com> Date: Tue Feb 27 23:21:26 2024 +0300 Fix interface loop dependency check (#3047) Tests for problematic case were added commit e4d63bfef9ef22c3a21375b542d5540a593916e5 Author: bormant <bormant@mail.ru> Date: Tue Feb 27 23:18:25 2024 +0300 Fix typo: C (ru) -> C (en) (#3042) commit 0d37232d21ce81d3443ad680b21b865a2b2fe017 Author: Mikhalkovich Stanislav <miks@math.sfedu.ru> Date: Tue Feb 27 19:15:08 2024 +0300 School - исправление пустого диапазона простых и IP-адресов commit 9fd4c7f3388b7e9b5cd6dbae1d619fa11827e30d Merge: 3cca2a89 6027083b Author: Ivan Bondarev <ibond84@googlemail.com> Date: Wed Feb 21 20:57:10 2024 +0100 Merge branch 'master' of https://github.com/pascalabcnet/pascalabcnet commit 3cca2a894940cf585772464d55ac5f4bcf8e01ae Author: Ivan Bondarev <ibond84@googlemail.com> Date: Wed Feb 21 20:56:49 2024 +0100 fix in formatter
2024-03-13 22:16:40 +03:00
${AddDirectory} "$INSTDIR\LanguageKits"
2015-05-14 22:35:07 +03:00
${AddInstallerFile} "Uninstall.exe"
SectionEnd