Skip to Content
avatar image
Former Member

Error when installing addon: "Uninstaller can't be found"


because I [opened the thread|; in the wrong forum, I copied the more important parts below this post.

Best regards,


Christof Rueß wrote on 10/7/2008:


I'm sorry for the wrong location for the thread but there seems to be no function to move it to

the other forum...

the programming language I'm using is C# (.NET 2.0).

Regarding the endinstall.exe: i've added a dummy for the file but it never gets executed during


However, the problem seems to be the call of "EndInstallEx" - the installer runs and in the same

moment as I call EndInstallEx the error message pops up in sap.

I have to add that the call to the dll is not made from the installer itself - calling dlls in

NSIS is a little bit tricky (especially when they are in special folders), so i made an

"addoninstallhelper.exe" which is making the call.

but that shouldn't be the reason for the failure, imo.

jimmy michael wrote on 10/02/2008


your question is referring to SDK. Post it to the SDK forum.

Nevertheless, I will explain briefly the solution.

What is the programming language are you using to develop the addon ? it should have the

application (exe file) and endinstall file (endinstall.exe file). I am not sure that it will

be correct if the installer maker application can provide it but better to use installer that

is not provide endistall.

The application file, endinstall file, and so on are used in the installer application list

window when we want to make the addon installer.

when creating ard file, you must prepare the addon installer and the application exe file. The

addon installer e.g. setup.exe will use either in the endinstall path and install path in the

ard generation tool.

Christof Rueß wrote on 10/2/08:


I'm trying to build an installer for a addon (with NSIS).

The Install routines run as i expect but when i try to make the call to EndInstallEx("",

true), SAP shows up a message saying "Uninstaller for Add-on can't be found" (german:

"Uninstaller für Add-on konnte nicht gefunden werden").

When pressing ok, the installer continues and, when finished, SAP says "Installation failed".

Whatever, when I try to re-run the installation, SAP shows "Installation successfully

finished" and the addon works...

The question is: Why does SAP miss the uninstaller when nothing is set in the ard-file and

where have i to put the uninstaller?

NSIS creates an uninstaller in the installation directory (addons/namespace/addon-name) but

the application also complains when I integrate the previously created uninstaller in the


What I'm also wondering about: why does SAP say that the installation failed when i call

EndInstallEx("", true)? (return value of EndInstallEx is -2 iirc)

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 08, 2008 at 07:34 AM

    Hallo Christoph,

    you can speak german but for the other people here i write it in english :/

    didn't try Nullsoft Install System so far, but you can try to analyze

    the Setup Installer from the SDK sample directory.

    C:ProgrammeSAPSAP Business One SDKSamplesCOM UICSharp14.AddOnInstaller

    there you see what calls SAP makes and what results are expected.

    it's a good sample - i used it to make my own installer and it works great.

    btw - falls Du ICQ hast können wir Deutsch plaudern 😊

    lg David

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 09, 2008 at 06:45 AM

    Hello Chris,

    Beside the sdk sample mentioned by David, you also can create the installer with in B1 AddOn installer wizard in B1DE. Detailed information you can refer to the online help of B1DE after installing B1DE.: Start=>All Programs =>SAP Business One=>Development Tools=>Help File

    Topic: Simple Installer / Professional Installer


    Kind Regards


    Add comment
    10|10000 characters needed characters exceeded