Solved

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

Posted on 2016-09-14
7
58 Views
Last Modified: 2016-09-14
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.
0
Comment
Question by:Eduardo Fuerte
  • 4
  • 2
7 Comments
 
LVL 69

Assisted Solution

by:Éric Moreau
Éric Moreau earned 250 total points
ID: 41798531
register a DLL? are you still using COM objects? Because in the .Net world, we don't register components.
0
 

Author Comment

by:Eduardo Fuerte
ID: 41798544
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.
0
 
LVL 15

Expert Comment

by:WalkaboutTigger
ID: 41798560
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.)
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

Author Comment

by:Eduardo Fuerte
ID: 41798639
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
0
 
LVL 15

Accepted Solution

by:
WalkaboutTigger earned 250 total points
ID: 41798779
That sounds like an appropriate direction to take.  I would also recommend researching better key methods - 16 characters is just too short.

I noted Eric's article mentions it at the very end in tiny text, so will call it out here:

A Ready To Use Software Licensing Solution in C#
This uses a much better method of encryption for the registry keys.
0
 

Author Comment

by:Eduardo Fuerte
ID: 41798811
@WalkaboutTigger

I'm going to have a look now.
0
 

Author Closing Comment

by:Eduardo Fuerte
ID: 41798931
Thanks for suggestions and guidance!
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now