-2

I have created a deployment project for my C# WinForms application. After installing the exe of this deployed project, I am able to run it only as administrator. How do I make this work without "Run As Administrator" ?

Yash Saraiya
  • 1,035
  • 1
  • 20
  • 40
  • Are you trying to run setup.exe as admin? Or setup.exe not as admin? Or finalinstalledexecutable.exe as admin? Or finalinstalledexecutable.exe as not admin? I am unclear from your question – mjwills Jun 06 '17 at 13:13
  • I am able to install the application with "setup.exe". However, after installing I a able to run that application only when I run it as Administrator. I want to make this application run without Administrator too. – Yash Saraiya Jun 06 '17 at 13:15
  • What is the name of finalinstalledexecutable.exe ? Have you used a manifest to force running as admin (https://stackoverflow.com/questions/2818179/how-do-i-force-my-net-application-to-run-as-administrator)? – mjwills Jun 06 '17 at 13:18
  • I have set it as `` – Yash Saraiya Jun 06 '17 at 13:26
  • That forces it to run as admin. You should remove that. – mjwills Jun 06 '17 at 13:27
  • Removed. Yet the same result. – Yash Saraiya Jun 06 '17 at 13:35
  • Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/145979/discussion-between-mjwills-and-yash-saraiya). – mjwills Jun 06 '17 at 13:39
  • How did you go running Manifest View? What did it tell you? – mjwills Jun 07 '17 at 22:56

1 Answers1

1

Remove <requestedExecutionLevel level="requireAdministrator" uiAccess="true" /> from your manifest file.

If that doesn't help, try Manifest View - available from https://weblogs.asp.net/kennykerr/manifest-view-1-0 .

mjwills
  • 23,389
  • 6
  • 40
  • 63