Click here to Skip to main content
15,891,942 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: (untagged)
I have a software which i have got SSL certified . Now whenever i run the program it pops up the message that "The following program wants to make changes to your computer .Do you want to allow .Yes.No

My requirement is that only during installation time the message should pop up and rest of it time it should not ..likewise for others softwares it does .
I hope I would get some fruitful advice how can i achieve this .
Thanks
Posted
Comments
Sergey Alexandrovich Kryukov 21-Jan-13 22:03pm    
What is "there rest of it time"? Time of what — it?
—SA
iampradeepsharma 21-Jan-13 22:34pm    
it means from next time whenever you start the program should start without asking user " Do you want to allow this program to make changes to your computer "
Sergey Alexandrovich Kryukov 21-Jan-13 22:55pm    
Thank you. Then I understood your correctly. Please see my answer.
—SA
iampradeepsharma 22-Jan-13 0:35am    
thanks
iampradeepsharma 22-Jan-13 21:50pm    
Igot it you can do this by updating the manifest file by setting UACExecutionLevel =AsInvoker.
referance:http://msdn.microsoft.com/en-us/library/bb384691.aspx

1 solution

This problem is not related to SSL certificate. The application may or may not require administrative (elevated) privileges, which is controlled by UAC. You can always launch it via "Run as Administration", but in your case this is prescribed in the application manifest, so UAC dialog is requested automatically. Of course, you can remove or modify this part of manifest, security/requestedPrivileges, but will it help? It depends on what the application does. Maybe, the requested privileges were not really justified, and then your application would execute normally. But who would write such pointless manifest, why? I'm afraid, the application does something which really requires elevation of privileges. Then it will through an appropriate "insufficient privilege" exception. Some parts of API related to something which may effect the system configuration or some other sensitive actions require elevated privileges. You can use this API or not, not you cannot change it.

This is a useful CodeProject article on the topic: Making Your Application UAC Aware[^].

See also: http://en.wikipedia.org/wiki/User_Account_Control[^].

(No, it's not going to solve your problem, but you need just understanding.)

I hope you understand that UAC dialog and elevation is not directly related to the privileges of the user's account. The account privileges could be sufficient, but, during application execution, all users still need to confirm it. Just think about it: if UAC dialog could be bypassed, what would be the point of having it in the system?

To best of my knowledge, you have only one more option: to disable UAC at all for you system. Please see:
http://www.howtogeek.com/howto/windows-vista/disable-user-account-control-uac-the-easy-way-on-windows-vista/[^].

I would strongly recommend: don't do it!

What I recommend is this: when you ask such questions, write the word "requirements" in quotation marks. Requirements also need validations. :-)

—SA
 
Share this answer
 
Comments
iampradeepsharma 22-Jan-13 0:44am    
thank you so much ...for your kind suggestion :-)
iampradeepsharma 22-Jan-13 0:48am    
but SA...see the problem is this we have so many programs which do not ask such message each time ...let alone during installation wizard...skype, my NetConnect programs ,Gtalk messanger to name a few..
Sergey Alexandrovich Kryukov 22-Jan-13 1:05am    
I think I explained. The required privileges are per-method based. You use some FCL APIs, some will require elevation, some not. What could be sensitive in Gtalk or Skype? Nothing.

It is what it is. UAC has its purpose; you cannot do much about it, unless you opt it out for whole system. But you really should not.
So, are you going to accept the answer formally (green button)? — thanks.
—SA

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