Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > ClickOnce Programatically
 

ClickOnce Programatically

Hi,

I've created a WPF Application and publish it to my website.

I am checking for updates automatically in the application.

But everytime I start the application it checks for updates and if there is an update it prompts the user to install it.

The thing is I don't want it to automatically check for updates, so in the updates button on the Publish tab in the Project Properties I unchecked the checkbox that says 'The application should check for updates'.

Should work - Yeah...

Unfortunatly each time I publish a new version of the application it get turned on and the 'Before Application starts' radio button gets selected.

Anyone got any ideas on how I can prevent the application for checking for updates at the start of the application.

Thanks,

IJ

IrishJoker  Friday, June 20, 2008 11:10 AM

What does this mean:

"Unfortunatly each time I publish a new version of the application it get turned on and the 'Before Application starts' radio button gets selected."

Does it mean that it is not saving your prior settings? Can't you just change them before you deploy it again?

And just out of curiosity, do you havethe minimum required version filled in even if it's not checked, and what about the update location?

I'm not sure why it wouldn't save it (works fine for me). Are you using source control and not checking in it, or anything like that?

RobinS.

GoldMail.com

RobinDotNet  Tuesday, June 24, 2008 2:45 AM

Yeah when I change the settings and turn off 'the application should check for updates', when I publish the application it turns it back on and discard my previous settings, regardless of how many times I turn it on or off.

I don'thave then minimum required version filled in, and it's not checked.

Not using Source control either.

Maybe something happened my install of VS - I might do a format of the hdd.

Anyone else having this problem ?

Thanks Robin for your help :-)

IJ...

IrishJoker  Tuesday, June 24, 2008 8:47 AM

I don't think it's your Visual Studio, I think it's a bug in ClickOnce. This has been reported before. I haven't had a chance to muck with the programmatic updates lately (too much work!).

Can anyone from MSFT shed some light on this problem?

RobinS.

GoldMail.com

RobinDotNet  Wednesday, June 25, 2008 4:25 AM

Hi IrishJoker,

I cannot reproduce your problem; please try to create a new project to see if the problem still happens. If it still happens, I guess this is duo to your environment. I suggest you try the following things to see if the problem still happens.

· Install the latest service pack for Visual Studio

· Try to reboot the operating system to safe mode to see if the problem still happens. This can help to isolate whether any other applications are interfering with Visual Studio

· Try to create a new user account and test it under the new account. This can help to isolate user profile corruption related causes

· Try to disable Add-ns (e.g. “Tools�| "Add-in Manager� and run "devenv.exe /safemode� do you still have the problem? This can eliminate the possibility that third party Add-ins are causing problems

Hope this helps.
Best regards.
Rong-Chun Zhang

Windows Forms General FAQs
Windows Forms Data Controls and Databinding FAQs

Rong-Chun Zhang  Wednesday, June 25, 2008 9:50 AM

You can use google to search for other answers

Custom Search

More Threads

• Is it possible to change publisher certificate for published application?
• application not starting
• textbox "press Insert" by porogram
• Problems running embedded Windows Control with Server 2003?
• Using the Visual Studio Bootstrapper to install XP SP2
• ClickOnce Deployment and MS Word Print Template
• Un-registered DLLs?
• Deployment troubles
• upgrading
• Problems with Clickonce deployment using Visual Basic 2008 Express Edition