Click here to Skip to main content
15,845,436 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,

I have a question regarding start-up program.

I created a start-up program and it is working fine in some windows. Well this start-up program connected with SQL server. when i start the window then it is start first.

I need to change the start-up order of this program, so that, when all the start-up program start than this program start.

In this way i resolved this issue.

Please suggest your best Answer.

I need to add one more thing friends this application contain manifest file so that it start as an administrator.

Please send yours answer or you need any more details regarding this feel free to ask.

Thanks Friends.

Waiting for Answer.....


<b><u>According To Adit Answer</u></b>

Well i have implemented all these things, but problem is that I add this program runas startup. Now this program start before the startup of SQL server. Then it gives me error.

I need that this program start at last of all the startup program.

Any solution to set the order of startup program.
Posted
Updated 20-Sep-11 21:39pm
v3

1 solution

Hi
for start as administrator
Here is link to create manifest file
in that set requestedExecutionLevel as below
C#
<requestedexecutionlevel level="requireAdministrator" uiaccess="false" />


see some reference links below
http://howtoideas.net/how-to-force-c-application-to-only-run-as-administrator-in-windows
http://www.enusbaum.com/blog/2007/08/26/how-to-run-your-c-application-as-administrator-in-windows-vista/
 
Share this answer
 
Comments
gaurav003 21-Sep-11 3:50am    
Hello Adit,

Thanks for your answer.

Well i have implemented all these things, but problem is that I add this program runas startup. Now this program start before the startup of SQL server. Then it gives me error.

I need that this program start at last of all the startup program.

Any solution to set the order of startup program.

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