This existing question on SO is probably exactly what I need, but it wasn't answered. ;)
I hadn't realized this in my initial testing of my WiX installer, but my application doesn't work properly on Windows 7 after it's been installed. Various assemblies need to read/write files in my installation folder, but access is denied at runtime.
If I then run the application as an administrator, it works perfectly. I can also change the properties of the application manually so that it always runs as an administrator. However, I don't want the user to have to click Yes to the UAC prompt every time.
The part I don't get is that if I run my executable from my source code folder, I don't have to run it as an administrator and it works perfectly.
Can anyone explain why: 1. My executable, when run from my bin/Debug folder, doesn't need to be run as an administrator and works? 2. How I can get WiX to install the executable so it works exactly the same way? (i.e. doesn't require right-click + Run as Administrator)
Thanks!