i read a text file and write that test file strings to a variable
Unicode True !include "CharToASCII.nsh" !include "Base64.nsh" !include x64.nsh Var X Section ClearErrors FileOpen $4 "C:\A.txt" r Read_Try: IfErrors Read_Try_Closed FileReadUTF16LE $4 $5 StrCpy $X $X$5 Goto Read_Try Read_Try_Closed: FileClose $4 MessageBox MB_Ok "$X" ;---------------------------- ClearErrors FileOpen $4 "C:\B.txt" w IfErrors done FileWriteUTF16LE $4 "$0" FileClose $4 done: SectionEnd
also i use the: nsis-3.03-strlen_8192.zip file but my string is larger than 8192 bytes
now i need read the all of the text file string in variable,how can do this?
is second question i want know is possible read a exe file informations with FileOpen in variable and after that create empty a exe file and write that variable string (exe bytes) to empty exe file ?
i do this work with FileOpen but after write in the new empty exe file,that exe file not runned!