Solved

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

Posted on 2010-09-09
6
606 Views
Last Modified: 2013-11-07
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
0
Comment
Question by:camoh
6 Comments
 
LVL 12

Expert Comment

by:GMGenius
ID: 33637393
Does it work if you copy the dll's to the system32 folder?
 
0
 
LVL 17

Expert Comment

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

http://www.experts-exchange.com/Programming/Languages/.NET/Visual_Basic.NET/Q_26420790.html

0
 
LVL 85

Assisted Solution

by:Mike Tomlinson
Mike Tomlinson earned 100 total points
ID: 33637861
If you have the $$$ ($6,000+) to spend then you can package the external DLL's INSIDE the EXE itself using tools such as ThinApp:
http://www.vmware.com/products/thinapp/

From the website:

    Key Benefits for Developers:

    Package your applications in standard EXE and MSI files
    Deliver a zero-footprint application that doesn’t need an install
    Convert traditional applications to virtualized applications quickly and easily
    Streamline your regression testing with sandboxing and snapshot capabilities
    Package or link any runtime you want directly with your application
    Eliminate risks and conflicts with other applications on the endpoint

Not an option for everyone but many don't realize this kind of thing can even be done.
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

Author Comment

by:camoh
ID: 33661967
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...
0
 
LVL 17

Accepted Solution

by:
Zhaolai earned 400 total points
ID: 33662064
The following link offers you 3 ways to achieve it (one of them is already in my earlier link):

http://support.microsoft.com/kb/837908

0
 

Author Closing Comment

by:camoh
ID: 33673501
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...
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Many people tend to confuse the function of a virus with the one of adware, this misunderstanding of the basic of what each software is and how it operates causes users and organizations to take the wrong security measures that would protect them ag…
#Citrix #POC #XenDesktop #vCenter #VMware #ESX
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

838 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