Could you help me with creating Serial Check Function that bases on DLL file? Unfortunately I do not have Function Prototype.
What I have is NSIS version of the function:
SetOutPath $PLUGINSDIR
File "serialtest.dll"
System::Call "serialtest::_sn_serialtest(t r1) i .r2 ?u"
${If} $2 == 0
Messagebox MB_OK|MB_ICONSTOP \
"Invalid Serial Number!"
Abort
${Endif}
t
- text, string (LPCSTR, pointer to first character)
r1-r9
- these are $1-$9 for NSIS (can be input or output). In this case r1 is $1 and $1 is Serial Number with delimiters '-'.
i
- int (includes char, byte, short, handles, pointers and so on)
.
- means no input
u
- unload DLL
Additional info: NSIS Script is written in ANSI and I am using Unicode version of Inno Setup.
If possible, Serial Number should be imported from Edit Boxes - I have asked a question regarding Custom Serial Page here: CustomPage for Serial Number in Inno Setup