Click here to Skip to main content
15,614,766 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
So, Ive built my .Net Application. Put it into a Wix Installer. When I ise the compiled Installer to install on my machine, the installed application will not launch without using Admin Elevation. What could be the issue?

What I have tried:

all i have done is compile both the application and the installer.
Updated 11-Feb-22 23:36pm
Richard MacCutchan 12-Feb-22 4:42am    
"What could be the issue?"
Without more information it is i possible to guess. Please use the Improve question link above, and add more details.
clwprogrammer 12-Feb-22 11:02am    
Thanks for your input, but there wasnt much else to say, with that being said, see my reply to original Griff

1 solution

Installation requires elevation because it has to affect areas the "normal user" cannot write to: and your app is marked as doing the same.

At a guess - and without having your whole app that's all it can be from this instance - your app or one of its dependencies has this in it's manifest file:
<requestedExecutionLevel level="requireAdministrator"/>

This is often because someone thinks it's a good idea to store their cr@p in the registry which will require elevation.

As such, every time you run it, you will get UAC, and (very probably) your users patience will wear very thin ...
Share this answer
clwprogrammer 12-Feb-22 11:01am    
I believe I may have figured out the issue after thinking on it while taking a break. I actually feel quite dumb for even doing it really. I had to add a logger to the application and for some reason i thought it would be a good idea to write files to the program directory. I know better than this. I am going to change the code to write the logfile in the AppData directory. I do know I havent added the above in the Manifest File, I knew I had no reason to add it. Most likely I was just too tired to realize what i was doing.
OriginalGriff 12-Feb-22 11:19am    
Hey, we all make mistakes!

Here's how I pick a data location:

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900