My Application which is in Start up folder is not running

rajeshramtere

Commendable
Aug 9, 2016
3
0
1,510
My application which is in Startup folder is not started after restarting the computer. I find some solutions on internet like
1. Hkey_Local_Machine\ Software\ Microsoft\ Windows\ CurrentVersion\ Policies\ System\ Set EnableLUA to 0 (See at right side - By Default it is set to 1)
2. Set User Access Control settings to lowest level

When i do this settings, my application which is in start up folder, application runs when machine restarts every time.. But this setting inhibit the operation of some MS programs like MS-Edge, Photo-Viewer, Skype Video etc. Resetting to default "1" and restart PC would resolved it. We need to look for better solution to this "security measure" by later Windows version.. Please guide me with better solution
 

misteriosly

Reputable
Jun 1, 2015
605
1
5,360



Do a schedule, that way you can avoid UAC. Restart & Login and it should start.
 

rajeshramtere

Commendable
Aug 9, 2016
3
0
1,510


Let me put up my problem in a different way:

1. My team has developed a windows (C# WPF) application. This application requires elevated privileges to execute. (right click on app --> "Run as administrator" even for an administrator user). This application need to run at startup occasionally (depending on user preferences).

2. When user selects to run the application on windows startup, the application creates its shortcut in the "startup folder" of the windows.

3. As this application needs administrative privileges to start running, we have made the setting to NEver Notify i.r Lowest level

Problem : With this UAC settings my application startup automatically whenever configured to start, at boot on windows 7. For windows 10 (I upgraded my PC from windows 7 to windows 10 Pro recently) these settings do not help. When I right click "Run as administrator" on my application from the shortcut in the startup folder, my application works fine.

I made the registry settings as discussed earlier, It helps start the application on boot. However, some MS tools give an message saying : eg "MS Edge can't be opened using the built-in Administrator account. Sign in with a different account and try again.".



I feel, somehow the UAC prompt, which generally occurs on running this application cannot allow same application in startup mode. How can I tell windows to run the application in administrator mode ? (windows does not by default run an app in administrator mode even when logged-in user is an administrator of that PC).