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

MS Installer for .NET and SBO Add-ON - Example wanted

Hi all,

I need some help from you .NET - SBO wizards out there.

I wonder if anyone has an example or maybe some ideas of where to direct me for getting info on how to get the deployment of a VB.NET-based Add-On to work.

I'm using Visual Studio .NET 2003 and with that comes the Windows Installer 2.0 which differs from the examples provided in chapter 4 - "Installing and Registering an Add-on" of the pdf "SDK API - Standards and Guidelines". Well, so I think at least but maybe someone knows better.

The ideal would of course be if someone had a skeleton .NET project that he/she would share, which has the Business One-specific deployment instructions already in place.



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 05, 2004 at 08:07 PM

    we sample of register an add-n in VB. I do not know about to this sample.

    You right that it is not in VB.Net. I will check if we can migrate this sample to .Net.

    This VB project is just for registring the add-on no mater in which langugae is written.

    We have a lot of sample in the 6.5 installation of different project in VB.Net.


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I think you need to pass a string with a fixed size for the resulting path, and you need to pass the size of that string in the last variable. When this is returned, you must extract the string from the buffer.

      Here is the front-end funtion that I wrote for this:

      Public Function GetInstallPath(sRegFile As String) As String

      '// Use this version of function to get the path name returned

      '// as a variable length string

      Dim sLong As String * 128

      Dim iLen As Long, iRet As Long

      iLen = Len(sLong)

      iRet = GetInstallPathA(sRegFile, sLong, iLen)

      GetInstallPath = StringFromBuffer(sLong)

      End Function

      StringFromBuffer() is defined in Common.bas in VB6's setup1 project. It basically finds the first null character (vbNullChar) and returns all the characters before that as a string.

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.