Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > What can i do for my application to be installed without poping up "Do you want to trust this application" message on vista and win7 and so on?
 

What can i do for my application to be installed without poping up "Do you want to trust this application" message on vista and win7 and so on?

Hello all,

I have a small application that will be used by non-technical users. Vista and win7 by default pops up a dialog box whether or not to trust the application. These i need my application to be installed without showing this dialog box. What i am affraid is some of them might not even know what an administrator privilege mean for that matter. And hence they maynot even login as admin. Using manifest? Still there will be that do you want to trust this application message right? Its so urgent please help!
Thanks,
zolyit
zolyita  Thursday, August 06, 2009 7:11 AM
Disable UAC on Vista Machine, following link can help you to do that:

http://www.howtogeek.com/howto/windows-vista/disable-user-account-control-uac-the-easy-way-on-windows-vista/


Please mark the post as answer if it is helpfull to you because it boosts the members to answer more and more.
_SuDhiR_  Thursday, August 06, 2009 8:40 AM

I think my question wasn't clear.How do i disbale UAC? I know how to do it manually if i am on thesystem.But, remember, my users don't know anything about this. I just need to give them the setup and need the application to disable UAC by itself(without user intervention) and start working. Okay think of those users as a grand ma. And think of she doesn't know about control panel.... I need my application to be used still by even such users.
Hope its clear now.

Thanks,
zolyit

zolyita  Thursday, August 06, 2009 4:59 PM

There are some registry keys you need to change if you WANT to do it programatically.


Please mark the post as answer if it is helpfull to you because it boosts the members to answer more and more.
_SuDhiR_  Friday, August 07, 2009 3:17 AM

Hi zolyita,

As far as I know, we can't disable UAC programmatically, but we can force the program to run with elevated privileges from the start, so it doesn't prompt each time. This would have the program prompt only once and the user needs not to check it again.

To do this, we can create a manifest file and set this property:
<requestedExecutionLevel level="requireAdministrator">

You can get more information from:
http://msdn.microsoft.com/en-us/library/bb756929.aspx.

Let me know if this helps.
Aland Li


Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  Friday, August 07, 2009 9:46 AM
Hello _SudhiR,

Can you please give me a sample code (or which registry i need to change) or a link. Thanks!

Zolyit
zolyita  Friday, August 07, 2009 6:15 PM
Hello Aland Li,

I did that way using manifest but the problem is "requireAdministrator" level can not be used along with clickOnce deployment setting.

There might be a way and please let me know.

Thanks!
Zolyit
zolyita  Friday, August 07, 2009 6:17 PM

You can use google to search for other answers

Custom Search

More Threads

• Hosting different controls in a datagridview column
• DataGridViewComboBox - semi-automatic drop-down problem
• combobox
• DataGridView RowValidating IndexOutOfRangeException
• DataBindingComplete event firing incorrectly??
• Problem with connection string
• Dataset has more rows than the stored procedure
• Datagridview not displaying correct value
• excel print
• Progressive search using ComboBox