Link to home
Start Free TrialLog in
Avatar of camoh
camohFlag 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
Avatar of GMGenius
GMGenius
Flag of United Kingdom of Great Britain and Northern Ireland image

Does it work if you copy the dll's to the system32 folder?
 
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
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America 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 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...
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
Avatar of 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...