For some reason, I must chop some file when install running.
so I write this script to do it, and it really work:
And my problem is: if I want to chop more than 64K (65535), the performance time for chop will become very slow.
!macro Chop SrcID TarID BeginOff EndOff
push $1
push $2
push $3
IntOP $3 ${EndOff} + 0
FileSeek ${SrcID} 0 Cur $2
push $2
FileSeek ${SrcID} ${BeginOff}
IntOP $2 ${BeginOff} - 1
IntOP $2 $2 + 1
FileReadByte ${SrcID} $1
FileWriteByte ${TarID} $1
StrCmp $2 $3 0 -3
pop $2
FileSeek ${SrcID} $2
pop $3
pop $2
pop $1
!macroend
I wished to do this chop by pure NSIS Script or NSIS Script + plugin.
Does anyone got any good idea?
Thank you very much.