Hello,
Thanks for your posting on MSDN forum.
First, let me confirm my understanding with you, you want to suppress the ClickOnce updater prompt when the ClickOnce is updated programmatically. Please correct me if there is any misunderstanding.
This isthe side effect of calling CheckForUpdate or CheckForDetailedUpdate API, because the update check result is persisted in the registry without installing the update. Then, the next time the ClickOnce application gets launched through the shortcut, it sees that there is an update and prompts the user.
To fix this, we can try to use the CheckForUpdate(bool persistUpdateCheckResult) or CheckForDetailedUpdate(bool persistUpdateCheckResult) API introduced in 3.5 SP1 and .NET Framework 2.0 SP2. We can set persistUpdateCheckResult to false, then the prompt is disabled.
More information
http://msdn.microsoft.com/en-us/library/cc646709.aspx Thanks,
Rong-Chun Zhang
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact
msdnmg@microsoft.com
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.