Per http://forums.winamp.com/showthread.php?
postid=1775227#post1775227 , logging bug.
If the /nonfatal switch (for the command: File) is
activated or invoked (no files found), the line will not be
seen as a run-time instruction and will not be counted
by Relative Jumps.
Compile the below code with and without test.txt in the
local nsi directory, and you will see.
Thanks so much.
Jnuw
Name "FileNonfatal"
OutFile FileNonfatal.exe
ShowInstDetails show
Section ""
MessageBox MB_OK "Start of Section"
Goto +2
File /nonfatal /oname=$PLUGINSDIR\test.txt "test.txt"
MessageBox MB_OK "1 line after File /nonfatal...
command"
MessageBox MB_OK "2 lines after File /nonfatal...
command"
SectionEnd
Logged In: YES
user_id=584402
Thanks, fixed.
I can't say it's the ideal solution, but I've made it add a
NOP opcode if no files were found. This way, it'll always
have something to skip.