cancel
Showing results for 
Search instead for 
Did you mean: 

Create a Setup Program, someone who have created a setup PGM in C# (VB)?

Former Member
0 Kudos

Hi,

Are there someone who have created a setup program in C# (VB)

Thank you,

Rune

The program look like this...

'EndInstall - Signals SBO that the installation is complete.

Declare Function EndInstall Lib "AddOnInstallAPI.dll" () As Int32

'SetAddOnFolder - Use it if you want to change the installation folder.

Declare Function SetAddOnFolder Lib "AddOnInstallAPI.dll" (ByVal srrPath As String) As Int32

'RestartNeeded - Use it if your installation requires a restart, it will cause B1 application to close itself after the installation is complete.

Declare Function RestartNeeded Lib "AddOnInstallAPI.dll" () As Int32

Accepted Solutions (1)

Accepted Solutions (1)

Nussi
Active Contributor
0 Kudos

if you want to create a setup program i recommend you to have a look at the samples

C:\Programme\SAP\SAP Business One SDK\Samples\COM UI\CSharp\14.AddOnInstaller

its not perfect but the frmInstall.cs is helpful.

thats where i started from

Former Member
0 Kudos

Hi David,

Thank you very much for your feedback.

Could you please forward your code so I could start where you are now?

I do not understand why not SAP provides the code or we could have a place to share common code.

My email address RBrattas @ Forgestik . com

Thank you very much for help and support.

Rune

Nussi
Active Contributor
0 Kudos

Hi Rune,

i can't send you the code from my company. but its very similar to the frminstall.cs

if you don't want to programm a setup exe you should try this:b1 development environment.

i've never tried it because i develop everything on my own but i heard that it is possible to create very easy setup programms with it.

https://www.sdn.sap.com/irj/sdn/businessone-tools

Answers (1)

Answers (1)

Former Member
0 Kudos

Thank you,

Rune