Skip to Content
author's profile photo Former Member
Former Member

SBO2004 - AddOnInstallAPI.EndInstall from InstallShield 10.5

Hello

It's possible to do the EndInstall notification from InstallScript. I try to do on "OnEnd" event and didn't work.

The parameters are right captured from SAP, and the DLL AddOnInstallAPI is right loaded, and no error is notify, but SBO seems not receive the addon's end installation.

This is my code in InstallShield script:

function OnEnd()

string wCMDLINE;

LIST listID;

STRING DLL_FILE;

INT nValue;

LONG nRC;

NUMBER nResult;

begin

if (CMDLINE != "") then

wCMDLINE = CMDLINE;

StrReplace (wCMDLINE, '"', '', 0);

listID = ListCreate (STRINGLIST);

if (StrGetTokens (listID, wCMDLINE, "|") > 0) then

MessageBox ("Parametros incorrectos.", SEVERE);

else

ListGetFirstString (listID, DLL_FILE);

ListGetNextString (listID, DLL_FILE);

MessageBox (DLL_FILE, INFORMATION);

endif;

ListDestroy (listID);

nResult = UseDLL (DLL_FILE);

if (nResult = 0) then

MessageBox ("AddOnInstallAPI.dll \ncargada correctamente", INFORMATION);

else

MessageBox ("No se ha podido cargar\nAddOnInstallAPI.dll", SEVERE);

abort;

endif;

if AddOnInstallAPI.EndInstall() > 0 then

MessageBox ("Error al registrar", SEVERE);

abort;

endif;

endif;

end;

Thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 07, 2005 at 10:40 PM

    Hi Blas

    Is your Installer working with this code.

    I am also trying to same thing and its not working.I am new in SAP Business One and Installer. If you give me some helpfull tips it wolud be greatful.

    In installshield Which project we have to select.

    Thanks

    Yashi

    mail2post@gmail.com

    Message was edited by: Yashi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 30, 2004 at 12:28 PM

    All its right...

    The problem was that I tried to run this setup in the server machine with Terminal Server in application mode. I have runned this setup in a client PC without problem.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.