cancel
Showing results for 
Search instead for 
Did you mean: 

Add-On-Registration fails

Former Member
0 Kudos

I can't register my add-on application using the SDK 6.5 wth Delphi 6 and Type Libraries.

I get the install path (AddOn Folder) from the first function call and the app file was copied into this folder.

But the registration always fails.

The function calls of RegisterAddOn always returns 0

Is this a known bug/problem in the SBO SDK ?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Lutz,

Thanks for your reply.

I'm a little bit confused because the documentation and the samples say the registration is successfull if the returned value is 1.

If RegisterAddOn = 1 Then

MsgBox "Add-On Was Registered Successfully"

Else

MsgBox "Failed To Register Add-On"

End If

The function call in my test app always returns 0 although I called GetInstallPath and the file was copied in the returned folder.

SBO therefore doesn't start my application.

I would appreciate any help or ideas.

I'm using Delphi by the way.

Thanks.

Regards,

Gerold

Former Member
0 Kudos

Hi Gerold,

I just checked and you are right. The RegisterAddon function returns a boolean. If it returns 0 (or any other integer except -1) it does in fact return false , at least in VB6 is does.

Maybe Delphi uses other boolean values? I do not know Delphi at all so I cannot tell.

You can check whether RegisterAddon actually did register the Addon by checking the registry.

The following key should exist after calling RegisterAddon.

HKLM/Software/SAP/SAP Manage/AddOns/YourCompanyName/YourAddonName

HTH Lutz Morrien

Former Member
0 Kudos

Hi Lutz,

I have a look at the registry.

Maybe I can solve the problem in another way.

Thanks anyway.

Regards,

Gerold

Former Member
0 Kudos

Hi all,

Finally I managed to register/unregister my add-on!

I made a stupid mistake:

I had added the path to the application file when generating the SLD file. But only the filename is obviously required.

The error message in SBO could be improved, e.g. "file not found".

The registration process creates a key in the registry and adds a valid (encyrpted) connection string.

Regards,

Gerold

Former Member
0 Kudos

Hi,

if a function returns the error code 0, that usually means "no error". You have registered your addon correctly.

Use the following in order to make it work

If RegisterAddOn <>0 then

'Your error handling

end if

HTH Lutz Morrien