cancel
Showing results for 
Search instead for 
Did you mean: 

Error when trying to reg. addon in 6.5

Former Member
0 Kudos

I've created an *.ard File for my application, but when i call GetInstallPath() from the SBOAddonReg.dll i always get "14643334513426430" as result. ILen is then zero, and &outStr contains nothing.

Any ideas?

Regards

Clemens

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Miky, I have the next two doubts:

1) How can I get this new "AddOnRegDataGen.exe" tool for generate my file *.ard, can you pass me some link to get it?

2) We will not use anymore the SBOAddonReg.dll to register our Add On on SBO 2004?

Best Regards since Mexico.

Trinidad
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hola Rafael,

1) The AddOnRegDataGen.exe is included into your SDK installation (Program Files\SAP Manage\SAP Business One SDK\Tools\AddOnRegDataGen\).

2) You wouldn't use the SBOAddOnReg.dll, you must use AddOnInstallAPI.dll instead (located directly into the SAP Business One directory). You can find an explanation of the new mechanism into the UI API help files section "Package and Installation".

Regards

Trinidad.

Former Member
0 Kudos

Thanks very much for your help. The problem was I Had not the Complete SDK files.

Best Regards.

former_member185703
Active Contributor
0 Kudos

Hi,

please note that AddOnRegDatGen is batch capable!!!

Here you go:

Calling convention (cmdline parameters):

AddOnRegDataGen.exe <raw xml> <InstallerVersion> <Installer> <Uninstaller> <Add-On-Exe>

Sample:

AddOnRegDataGen.exe MySampleAddOn.xml 1.0 SampleSetup.exe SampleSetup.exe MySampleAddOn.exe

The „<raw xml>“:

<AddOnInfo partnernmsp="<Your Namespace>" contdata="my cont data" addonname="My Add-On" addongroup="M" esttime="300" instparams="" uncmdarg="" partnername="My Comp" />

Regards,

Frank

Former Member
0 Kudos

Hi,

How can you set estimated uninstall time?

Is it possible to name the output ard file?

What exactly is addongroup and what values does it take?

How do you set the mandatory property?

Best regards,

Jakob

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Miky, I have the next two doubts:

1) How can I get this new "AddOnRegDataGen.exe" tool for generate my file *.ard, can you pass me some link to get it?

2) We will not use anymore the SBOAddonReg.dll to register our Add On on SBO 2004?

Best Regards since Mexico.

Former Member
0 Kudos

Hi Clemens

The Add-On registration process has beem changed between versions 6.5 and 2004.

If you are working on version 6.5 than you should create an sld file (with the old "AddOnRegDataGen.exe" file) and than use the methods provided in SBOAddonReg.dll for registering the Add-On.

If you are working on version 2004 than please do the following steps:

1. Create an *.ard file with the

updated "AddOnRegDataGen.exe" tool for version 2004.

2. Use the Add-On administrator forms

(Choose: "Administration -> Add-Ons -> Add-On

administration" in SAP Business One menu). for

registering the Add-on

You shouldn't use the SBOAddonReg.dll for version 2004, the GetInstallPath and the other functions are relevant only for version 6.2 and 6.5.

Please refer to the Addon Administration section in the UI API documentation.

Best Regards

Miki