none
Using Dll's located in ProgramFiles (x86) RRS feed

  • Question

  • Alright I've searched for a while off and on over the past 2 months  and I figured it was time to ask this here. I have a combination of DLLs that are trying to be loaded from a ProgramFiles sub folder. These include .net dlls, as well as C dll's that are being loaded via DLLImport inside some of these .net dlls.

    My issue is it seems to me that they need to be registered as some sort of System file or running with administrative permissions or something because if My app tries to use them directly from said location it always complains that the file(s) and/or their dependancies could not be loaded. HOWEVER If I put all the above files directly into root there is no problem. I've looked into GACUtils as it seems to be the only relevant thing, but upon lots of looking around it seems that you must have some development tools from win7/.net 4.0 SDK in order to use GACUtils(which on the runtime users pc isnt going to cut it)

    I understand the dll files could always be imported with each project made, but its apart of a collection me and a few friends are trying to put together as an installable framework. If anyone could point us in the right direction to solving this issue(of not being usable while in ProgramFiles) wed be very grateful!

    Thursday, August 6, 2015 12:46 AM

Answers

  • Hi Ancient,

    >>I've looked into GACUtils as it seems to be the only relevant thing, but upon lots of looking around it seems that you must have some development tools from win7/.net 4.0 SDK in order to use GACUtils(which on the runtime users pc isn't going to cut it)

    From my point of view, there is not worth to put a combination of DLLs to GAC. It seems something extra.

    As you said  when you put all the above files directly into root there is no problem. So I agree with your friends, my suggestion is also that add the EXE and DLL to project when you deploy.

    Please refer to the following link about add the EXE and DLL to the project and specify where they should be installed on the target computer

    How to: Deploy a Setup and Deployment Project

    Best regards,

    Kristin


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, August 7, 2015 3:21 AM