Solved

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

Posted on 2016-09-14
7
55 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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
I have been scripting applications way too long and can never remember how to create an ISS file.  So I decided to write this article to act as my own knowledge base for future reference, and hope you will also benefit. An ISS file is a response …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

743 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

10 Experts available now in Live!

Get 1:1 Help Now