Can not turn off automatic update

I made Windows application which manualy checks for updates each time when the application is started. Although I turned off auto updates, I still get sometimes before I launch the application update form which wasn't created by me.
My manifest looks like that:

.......
<deployment install="true"mapFileExtensions="true">
<deploymentProvider codebase="http://some.url/>
</deployment>
.......
What do I do wrong?
[681 byte] By [Alja?] at [2007-12-25]
# 1
Do you have <beforeApplicationStartup/> tag?
MunirulAbedin at 2007-10-8 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 2
No. Everything what I have between the deployment tags is:

<deployment install="true" mapFileExtensions="true">
<deploymentProvider codebase="http://www.someurl" />
</deployment>

I check for updates always when the application is started. I made a form where you decide if you want to update or not. After I choose No and than I close and open the application I get ClickOnce update form, I click skip and than I see my form again checking for updates.

Alja? at 2007-10-8 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 3
I still didn't find the solution. I downloaded a program which is tracing changes in my registry, because if I can't find the way how to turn off automatic updates, I may simulate pressing the skip button on ClickOnce update form. I found keys, which i think they are connected with auto-update process:
{2ad613da-6fdb-4671-af9e-18ab2e4df4d8}!LastCheckTime,
{2ad613da-6fdb-4671-af9e-18ab2e4df4d8}!UpdateSkippedDeployment,
{2ad613da-6fdb-4671-af9e-18ab2e4df4d8}!UpdateSkipTime

Does anyone know how to change these keys, that I will never see the ClickOnce update form again?

Thanks, Aljaz

Alja? at 2007-10-8 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 4
Thanks, here is the problem, when you check for update using ClickOnce API, clickonce contacts the server and checks for update (same as if you had <beforeApplicationStartup/> tag). ClickOnce also marks that your application has a pending update. Even though your custom dialog did not chose to install it, this decision is not reported to ClickOnce. And since ClickOnce does not know that this update should be ignored, so it again shows the update dialog. I think one option could be not to check for update on application startup via API, and leave the update to ClickOnce via its default mechanism.
MunirulAbedin at 2007-10-8 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 5
One problem, why I can't use default mechanism is, that my application is not available just in english language. I have to custumize the design. Second reason is that, because I made my own form, it is possible to use application in the time when the files are downloading. After update is downloaded, I can also prepair few things, because when application restarts I make also database update if needed.

But I can't imagine, that is not possible to make application with own updating mechanism. I think my scenario that application checks for updates to inform user that updates are available, and than user can decide if the application will be updated or not, is not to so impossible. Is it possible that programmers who developed ClickOnce didn't think about that?

Alja? at 2007-10-8 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...
# 6
"Skip update" option via API is not possible in Whidbey ClickOnce. If you think this feature should have been present consider making suggestions in customer feedbackhttps://connect.microsoft.com/VisualStudio.
MunirulAbedin at 2007-10-8 > top of Msdn Tech,Windows Forms,ClickOnce and Setup & Deployment Projects...