[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2016-09-14
7
Medium Priority
?
87 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 70

Assisted Solution

by:Éric Moreau
Éric Moreau earned 1000 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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 1000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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.
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

872 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