I have a C# application and a WiX project to install this application in the ProgramFilesFolder. My application has a viewer element that uses a dll file. If i start the application with normal user rights i get an error and the viewer element in my application does not load with the error message that my viewer element has no access to the dll file. As an admin user it works fine. In my WiX project i set the property perMachine and i have several other dll files used within my application and i dont get such error.
If i install my application outside the ProgramFilesFolder there is no problem. What should i do? In VS2010 i can set Build Action and Copy to output directory for each file, do i have to set something special? Or is there in the File element of WiX an option to set access properties?