I have an exe which runs as a start-up process on a system restart. On a machine where UAC is enabled, it is blocking the start of my exe. How can I solve this?
Asked
Active
Viewed 1,039 times
0

S.L. Barth is on codidact.com
- 8,198
- 71
- 51
- 66

sharan kumar
- 31
- 5
-
You should probably implement it as a system service rather than as an ordinary application. Or, if it doesn't need administrator privilege, make sure the manifest is configured to asInvoker rather than requiresAdmin. – Harry Johnston Sep 08 '15 at 23:22
-
My Application is not a right candidate to be a system service because it is a tool which is used by the user only to perform a certain task which involve couple of restarts. – sharan kumar Sep 09 '15 at 09:43
-
OK, so if it's a user application then you choose the second option: make sure it has a manifest, and that the manifest is configured to asInvoker rather than requiresAdmin. If you're using Visual Studio, those options are under Linker -> Manifest File. – Harry Johnston Sep 09 '15 at 23:35
-
If you are asking if you can dynamically bypass the UAC prompt, the answer is no. The prompt exists for a reason. – Bill_Stewart Oct 03 '15 at 22:12
1 Answers
0
Please try the Windows task scheduler to run the application on windows startup. The below link has the steps Click here
Or you can write some code using Microsoft.Win32.TaskScheduler.dll to setup the startup task using Windows scheduler

Kalidoss M
- 556
- 8
- 15
-
This isn't an ideal approach in general, because it won't work if the logged-on user doesn't have admin privilege. But it is suitable for some situations. – Harry Johnston Sep 09 '15 at 23:37
-
-
Sorry for commenting late, thank you for the answer i implemented the same and its working fine:) – sharan kumar May 12 '17 at 06:46