I'm creating an installer for a C# project. It requires an unmanaged 3rd party C++ dll to connect to a hardware device. When I run the project from the debugger, or when I right click -> Run as Administrator on the installed program, everything works normally. However if I don't run this as administrator in some fashion, it crashes. So how do I set up the installer to not need admin rights to run? I know I can set the requestedExecutionLevel
in the app.manifest to requireAdministrator
, but I don't want the UAC prompt every time, and I'm not sure the end user's machines will be able to run anything as admin.
My current workaround is to just install it directly to the C:/, but I'd like to install it to the same Program Files directory all the other apps are installed to which don't have this setback.