Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / January 2008

Tip: Looking for answers? Try searching our database.

ClickOnce without user confimation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mathias Fritsch - 19 Dec 2007 22:38 GMT
I have set up my clickonce publishing to check for updates on every
application restart.
The manifest is located on an unc-path. As soon as the user restarts
and there is a new version on the Network there is a dialogue with the
choice to install the update or not.
Is there a way to skip that dialogue? All my clients have to use the
new version, if they press "dont install" I am in big trouble.
The only way I found was to check manually for updates
(ApplicationDeployment.CurrentDeployment.CheckForUpdate()), update the
Version (ApplicationDeployment.CurrentDeployment.Update() ) and
restart the app (Application.Restart ).
But that doesnt look nice.

Mathias
CMoya - 20 Dec 2007 00:37 GMT
I'm not sure. But if we're talking about the same thing, I overcame this by
signing the app. And then rolling out certificate as trusted via Group
Policy.

>I have set up my clickonce publishing to check for updates on every
> application restart.
[quoted text clipped - 10 lines]
>
> Mathias
RobinS - 04 Jan 2008 04:04 GMT
This isn't the same thing at all. Signing the app simply means that when
it comes up with the dialog to install, it says it is from a trusted
publisher rather than "Unknown publisher".

RobinS.
GoldMail, Inc.
--------------------------------------

> I'm not sure. But if we're talking about the same thing, I overcame this
> by signing the app. And then rolling out certificate as trusted via Group
[quoted text clipped - 14 lines]
>>
>> Mathias
CMoya - 04 Jan 2008 04:08 GMT
No. When doing this, trusting the cert, and running from a local Intranet,
you get no prompt. It just runs as it should.

> This isn't the same thing at all. Signing the app simply means that when
> it comes up with the dialog to install, it says it is from a trusted
[quoted text clipped - 22 lines]
>>>
>>> Mathias
CMoya - 04 Jan 2008 04:11 GMT
Then again, this is via HTTP click once.... not UNC. I don't see why there
should be a difference tho. I don't know.

> No. When doing this, trusting the cert, and running from a local Intranet,
> you get no prompt. It just runs as it should.
[quoted text clipped - 25 lines]
>>>>
>>>> Mathias
RobinS - 04 Jan 2008 07:55 GMT
I agree that there shouldn't be a difference between http or UNC. :-)

RobinS.
------------------------
> Then again, this is via HTTP click once.... not UNC. I don't see why there
> should be a difference tho. I don't know.
[quoted text clipped - 28 lines]
>>>>>
>>>>> Mathias
RobinS - 04 Jan 2008 07:54 GMT
I think the prompt he is talking about is when it comes up and says
"There is a new version available, do you want to install it?" and
lets the user say "Yes" or "Skip".

I don't see how adding a certificate would suppress that dialog,
nor why you would want it to.

Am I misunderstanding the original post?

RobinS.
GoldMail,Inc.
----------------------------

> No. When doing this, trusting the cert, and running from a local Intranet,
> you get no prompt. It just runs as it should.
[quoted text clipped - 25 lines]
>>>>
>>>> Mathias
CMoya - 04 Jan 2008 09:01 GMT
I think you're right. I misread the post. Apologies.

>I think the prompt he is talking about is when it comes up and says
> "There is a new version available, do you want to install it?" and
[quoted text clipped - 38 lines]
>>>>>
>>>>> Mathias
RobinS - 04 Jan 2008 19:47 GMT
No problem. He may want to sign his deployment, too.
People tend to get nervous when it says "Unknown publisher"!

RobinS.
GoldMail, Inc.
----------------------
>I think you're right. I misread the post. Apologies.
>
[quoted text clipped - 43 lines]
>>>>>>
>>>>>> Mathias
Mathias Fritsch - 08 Jan 2008 17:06 GMT
No, you are perfectly right! Thank you for the answer.
Mathias
> >> Am I misunderstanding the original post?
>
> >> RobinS.
> >> GoldMail,Inc.
RobinS - 04 Jan 2008 04:03 GMT
Yes, you can push the update as required.

To do this, in the Properties for your main project, in the Publish tab,
click on "Updates...".

Go down to "specify a minimum required version for this application" and
set it to the version you are about to deploy.

When the user next runs the app, it will see that it is a required update,
and will skip the "do you want to update" dialog.

Also note that if you do this, they can not use add/remove programs to
go back one version.

Every time you deploy, you need to change the minimum version.

Hope this helps.
RobinS.
GoldMail, Inc.
------------------------------

>I have set up my clickonce publishing to check for updates on every
> application restart.
[quoted text clipped - 10 lines]
>
> Mathias

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.