Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Disabling clickonce when a deployment project is being used
 

Disabling clickonce when a deployment project is being used

I've met a problem with deploying my application with VS2008; the application needs to write to registry, to do that it needs to run as administrator. But if I go to View UAC Settings and copy and paste the

<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />

line in the app.manifest, the build fails with "clickonce does not support adminstrator level.", however, I'm using a deployment project - it shouldn't be using clickonce; so how do I stop VS thinking it's going to deploy the application as clickonce? My theory about the problem is that it used to be a clickonce application and when I added the deployment project, I somehow left the clickonce "flag" turned on.

-Andrew
AndrewFromEssex  Sunday, September 20, 2009 9:31 AM

Hi AndrewFromEssex,

Did you check the Enable ClickOnce Security Settings? You can find this option on Security tab of the project properties. If so, you need to uncheck it.

Regards,
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  Wednesday, September 23, 2009 3:11 AM

Hi AndrewFromEssex,

You said: I'm using a deployment project.
Do you mean a Setup Project instructed as the following link?
http://msdn.microsoft.com/en-us/library/19x10e5c(VS.71).aspx

Regards,
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  Tuesday, September 22, 2009 8:50 AM
Thanks for the reply; yes I've created a setup project using that procedure - the .msi file that is generated is what I distribute.
-Andrew
AndrewFromEssex  Tuesday, September 22, 2009 12:41 PM

Hi AndrewFromEssex,

Did you check the Enable ClickOnce Security Settings? You can find this option on Security tab of the project properties. If so, you need to uncheck it.

Regards,
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  Wednesday, September 23, 2009 3:11 AM
That's fixed it! Thanks a lot.
-Andrew
AndrewFromEssex  Wednesday, September 23, 2009 11:06 AM

You can use google to search for other answers

Custom Search

More Threads

• Handler don't work
• How to add an outlook express in .net setup file and call in a project
• Setup Problem
• Bootstrapper leaves files in TEMP directory
• Signing a setup and deployment project
• Using ClickOnce With MS Build
• clickonce issue on vista
• commandline oneclick not working
• Modifying manifests programatically on site
• how to run a .net2005 application from sql job