Skip to Content
avatar image
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.

Regards

Robert

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    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.

    Gali

    Add 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.