Link to home
Start Free TrialLog in
Avatar of Eduardo Fuerte
Eduardo FuerteFlag for Brazil

asked on

How to install and register a DLL on users machine needed to app runs?

Hi Experts


I need to install and register a DLL on users machine needed to run a C# app I'm distributing.

I'm using NSISW installer.

Could you point the better way on doing that ?

Programatically?  when the app starts it check if instalation is needed?
NSISW has a feature to do this?

Thanks in advance.
SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Eduardo Fuerte

ASKER

Hi

I need to use a  component  very specific to read a .DBF via Oledb  file, just one time when the app starts, to authenticate the user.

 lcConnectionString =
                        "Provider=vfpoledb.1;Data Source="
                            + "c:\\xxx\\xxx\\B_xxx.DBF;Collating Sequence=Machine;";

Open in new window


So vfpoledb.dll is the DLL that must be registered.
Unrelated comment:  You're hard-coding the database location as opposed to a registry entry or an XML/INI file?

Non-administrative users cannot register DLLs, so unless your application specifically requires local administrative access, your application may not work if the DLL truly needs to be registered.

Have you looked at Registration-Free COM objects?
(NOTE: If you are using Chrome, you may need to open this link in an incognito tab.)
Really.

I'm tryed to reuse an old authentication strategy.

I must to use another approach.

So...It's time to use:  
http://emoreau.com/Entries/Articles/2015/11/Licensing-a-Net-application--2015-edition.aspx
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
@WalkaboutTigger

I'm going to have a look now.
Thanks for suggestions and guidance!