XPstyle on
!include MUI2.nsh
Name "TestTXT"
OutFile TEST_Txt.exe
RequestExecutionLevel user
InstallDir "$EXEDIR\Test7z"
!insertmacro MUI_LANGUAGE English
!include "TextFunc.nsh"
Section "Test"
${LineFind} "$EXEDIR\MyText.txt" "" "9" "delines"
;IfErrors 0 +2
;MessageBox MB_OK "Error"
${LineFind} "$EXEDIR\MyText.txt" "" "9" "inlines"
;IfErrors 0 +2
;MessageBox MB_OK "Error"
SectionEnd
Function delines
StrCpy $0 SkipWrite
Push $0
FunctionEnd
Function inlines
FileWrite $R4 "Привет Kopejkin, это я, твоя изменённая строка..
$\n"
Push $0
FunctionEnd