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

AddOn Install failure.

When trying to install a newly created add-on I get the error, "Error: Cannot create a file when that file already exists."

Additionally when I click OK then this error pops up, "EndInstallEx returned -2"

I've made sure that I am not duplicating any files that I've added to the Installer project, as well as deleted out any files leftover from a previous version of my Add-On, but I still get the same error message. I tried recreating the installer project and I still get the same error.

What else could cause this error?

I'm running Windows 7, SAP 8.8 PL 15, SQL Server 2008, and VS2010

Edited by: Brett Flake on Oct 13, 2010 5:39 PM

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2010 at 04:38 PM

    I figured out my problem. In addition to adding the SAPbobsCOM and SAPbouiCOM paths in the normal fields of the AddOnInstaller .NET Wizard, I also had included them in the Additional Files fields.

    To fix my installer I removed the SAPbobsCOM and SAPbouiCOM entries in the following lines of the new() function of the AddOnInstallInfo.vb file:

    ExtraFiles = New String() {...

    ExtraDirectories = New String() {...

    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.