marcel-slip
26th February 2009, 08:36
Hello,
I have a library. Dll file that has the function of checking the key in the registry. Library returns the value true or false. Can this somehow be supported by NSIS?
Here is an code with InstallShield:
prototype BOOL werk.werk();
prototype NUMBER werk.WriteToReg(POINTER, POINTER, POINTER);
prototype NUMBER werk.CreateRegKey();
function BOOL VerifySerial()
STRING szFileName;
  NUMBER nResult;
  BOOL bVerified;
begin 
  szFileName = SUPPORTDIR ^ "some.dll";
  nResult = UseDLL(szFileName);
  if (nResult=0) then
   bVerified = some.some();
  else         
   bVerified = FALSE;
   MessageBox(@MSG_DLLERROR, INFORMATION);
  endif;
  nResult = UnUseDLL(szFileName);
 
  return bVerified;
end;
I have a library. Dll file that has the function of checking the key in the registry. Library returns the value true or false. Can this somehow be supported by NSIS?
Here is an code with InstallShield:
prototype BOOL werk.werk();
prototype NUMBER werk.WriteToReg(POINTER, POINTER, POINTER);
prototype NUMBER werk.CreateRegKey();
function BOOL VerifySerial()
STRING szFileName;
  NUMBER nResult;
  BOOL bVerified;
begin 
  szFileName = SUPPORTDIR ^ "some.dll";
  nResult = UseDLL(szFileName);
  if (nResult=0) then
   bVerified = some.some();
  else         
   bVerified = FALSE;
   MessageBox(@MSG_DLLERROR, INFORMATION);
  endif;
  nResult = UnUseDLL(szFileName);
 
  return bVerified;
end;