Page 1 of 1

Inclusion of Basic dll into installer package

Posted: Sun 26. Sep 2010, 19:20
by p.erasmus
Dear peak Team

I know this is a visual studio topic however I hope you can help me out !
I have created an application in VB.Net using the Basic API,
I am not sure when I create the installer in Visual studio does this now include the Basic dll and
will the installer install the dll automatically in the win32 sys folder of the target computer.
or how can I make sure that the dll gets installed on the target pc ,or is this a separate installer package,
as in developer is a DIST package with an installer that installs the CanApi2 dll automatically
I am really consused how to do this :?

Please help with this
would highly appreciate it
Best Regards
Peter

Re: Inclusion of Basic dll into installer package

Posted: Mon 27. Sep 2010, 11:00
by K.Wagner
Hello Peter,

first of all you shouldn't assume that files needed by a program will be automatically added by Visual-Studio (VS) Setup projects. VS can recognize dependencies from used assamblies but not from imported dlls (PCANBasic.dll is not an assambly).

You have to include the PCANBASIC.DLL file explicitly in your Setup project, and also set the target where the dll should be copied/installed. You can choose to install the Dll in the Windows/System32 (if you want to have global access to the dll in a system), or you can just copy the dll to the folder where is(are) the executable(s) that uses the dll.

:!: It is not a problem if the dll is installed several times in different places on a computer, but take in account that if you install the file in Windows/System32, you have to take care of the reference counting of the DLL to avoid deinstalling the file while another programs, that need the file, are still installed on a system. To do this, enable the property "SharedLegacyFile" of the dll into the VS-Setup. more info under SharedLegacy Property.

Regards,
Keneth

Re: Inclusion of Basic dll into installer package

Posted: Mon 27. Sep 2010, 12:54
by p.erasmus
Hello Keneth

Thank you very much for your help !!
I have to try and make an installer for my project and see if I can achieve this !!
Once again thank you very much :D

Best Regards
Peter