Plugin not registering
I have a plugin that I pass a serial number to and it returns on the stack 1 for valid, 0 for invalid, or -1 for failure. It doesn't seem to be calling into the DLL, as it leaves the parameter being passed in on the stack. Below is my code, the log output that seems to indicate the problem, and a skeleton of my C code attached that is a modification of exdll.c. I had commented some things out, that I'm not sure whether they are necessary. I had a hard time getting that exdll.c to complete under Visual Studio. I remember having to recreate the whole project and solution.
Var /GLOBAL _TBaseline_TFLSerialNumberVerifier_Result
::IsValidSerialNumber /NOUNLOAD "$TBaseline_SerialNumber"
TFlSerialNumberVerifier
Pop $_TBaseline_TFLSerialNumberVerifier_Result
${If} $_TBaseline_TFLSerialNumberVerifier_Result = 0
MessageBox MB_ICONEXCLAMATION|MB_OK "The serial number does not appear to be valid."
Goto cancelLeave
${ElseIf} $_TBaseline_TFLSerialNumberVerifier_Result = -1
Goto cancelLeave
${EndIf}
Pop $0 ; restore 0
Goto done;always skip the Abort statement, only some type of "GOTO cancelleave" can get here
cancelLeave:
Pop $0 ; restore 0
;TODO: Log error if silent
Abort ;stay on this page
done:
File: overwriteflag=1, allowskipfilesflag=2, name="C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nsd3A.tmp\TFlSerialNumberVerifier.dll"
File: wrote 13824 to "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nsd3A.tmp\TFlSerialNumberVerifier.dll"
Error registering DLL: Could not load C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nsd3A.tmp\TFlSerialNumberVerifier.dll