Avatar of camoh
camoh
Flag for United States of America asked on

How can I hide Interop.xxx.dll reference files that I need to copy to the location of my exe to run my app without actually installing the application

I created a tool that has references to two interop files but it gives me message "Cannot load file or assembly..." unles I copy the interop files to the same location that I am running the exe from.

If I copy these file to the same location in clear view then users could possibly figure out what the tool is doing behind the scenes. This could pose as a policy violation at the organization that I am doing this for because this tool changes settings and creates files as per our policy. I can do this all manually but it we need to be able to send this exe to mobile staff to comply with our policies just by running this tool.

Now I need a way to hide these reference files regardless where I copy them to and yet but able to use them.

Maybe there is a better way to this...

Thanks
.NET ProgrammingVisual Basic.NETOperating Systems

Avatar of undefined
Last Comment
camoh

8/22/2022 - Mon
GMGenius

Does it work if you copy the dll's to the system32 folder?
 
Zhaolai

Yes, you can, but code changes are needed. Take a look at the solution in the following link:

https://www.experts-exchange.com/questions/26420790/vb-net-what-folder-in-the-object-explorer-does-a-dll-go-into.html

SOLUTION
Mike Tomlinson

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
camoh

ASKER
Hi,

I'm sorry that I have not replied to this earlier...

Zhaolai, your link was helpful in giving me more ideas that might work...

Idle_Mind, your option is just plain too expensive for us... thanks for the input though...

Do you all have any more ideas for me to try?

I would like to wrap up this thread soon...
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
ASKER CERTIFIED SOLUTION
Zhaolai

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
camoh

ASKER
Thanks to all of you for your input!

Zhaolai, Your last suggestion is my best solution because it gives me three options and detailed instructions of how to do it.

Idle_Mind, Your suggestion is not affordable at this this time but I am splitting points with you because you suggestion also has some helpful info.

Thanks again...