cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

Hi,

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

Best regards,

Chris

Christof Rueß wrote on 10/7/2008:

Hi,

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

installation.

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

Hi,

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:

Hi,

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

ard-file.

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)

Accepted Solutions (1)

Accepted Solutions (1)

Nussi
Active Contributor
0 Kudos

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

Answers (1)

Answers (1)

YatseaLi
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

Thanks.

Kind Regards

-Yatsea

Former Member
0 Kudos

Hi,

thanks for the hint,

I've installed B1DE recently and i was wondering why nothing in VS happened...

Does anybody know when B1DE will support Visual Studio 2008?

Regards,

Chris

YatseaLi
Product and Topic Expert
Product and Topic Expert
0 Kudos

Unfortunately, VS 2008 is not supported. Try it with VS 2003 or 2005.

Kind Regards

-Yatsea

Nussi
Active Contributor
0 Kudos

Hi Christof,

ich werd am Montag in Berlin TechEd nachfragen - vlt bekomm ich genaueres heraus.

wenn ich zurück in Wien bin meld poste ich hier !

lg David

Former Member
0 Kudos

Hi David,

ich wollte fragen, ob du etwas neues bzgl. der VS2008-Addins weißt.

Viele Grüße

Chris

Nussi
Active Contributor
0 Kudos

Hi Christof,

erst mal sorry für die späte Antwort und nun die traurige Nachricht:

die TechEd ist vieles aber nicht auf "Business One" ausgelegt. ich war dort

der einzige wirkliche Vertreter im Business One SDK Bereich und konnte daher

keine Antwort finden.

habe mir persönlich auch mehr erwartet und ich wünschte ich hätte

Dir eine andere Antwort geben können

lg David

Former Member
0 Kudos

Hi All,

Any news about visual studio 2008 and B1DE? Does anyone know if VS2008 works with B1DE or when will be?

Regards

Hmg