Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > How to Close the Clickonce Application when the web page is closed...?
 

How to Close the Clickonce Application when the web page is closed...?

I have a web page, in which I have one clickonce application, which is set to online only.
while clicking the link in the web page , the windows application is cached and opened.
but my problem is, when i close the webpage, the clickonce application is not closed, still I am able to work on the windows application.
I want to close the clickonce applicationas soon asthe webpage is closed.
Is there anyway to do this..?

Muniappan S  Friday, July 10, 2009 12:13 AM
Hi Muniappan S,

A ClickOnce application available online only is cached. When the cache expires, the files are deleted. The next time the user connects, they are redownloaded. An offline application is not cached, it's copied, it doesn't expire. But it leaves traces on the client computer. So it won't shut down when you close the browser, The browser and your clickonce app are in different process. You cannot handle the close event of web browser to close your application.

Sincerely,
Kira Qian
Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Monday, July 13, 2009 3:48 AM
Hi Muniappan S,

A ClickOnce application available online only is cached. When the cache expires, the files are deleted. The next time the user connects, they are redownloaded. An offline application is not cached, it's copied, it doesn't expire. But it leaves traces on the client computer. So it won't shut down when you close the browser, The browser and your clickonce app are in different process. You cannot handle the close event of web browser to close your application.

Sincerely,
Kira Qian
Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Monday, July 13, 2009 3:48 AM
Thank you !!!
Muniappan S  Friday, July 31, 2009 7:05 PM

Hi
is there any way to know/check in my clickonce application(which is online only) that whether the web application that is used to open the clickonce is alive or closed.
Hope my question is clear.

Muniappan S  Friday, July 31, 2009 7:24 PM

You can use google to search for other answers

Custom Search

More Threads

• Does the user consent prompt list the permissions the app is asking for?
• No-Touch Deployment
• Changing the look of ClickOnce install progress screen
• MSBUILD ERROR MSB3147
• access folder path in installer class
• Creating dragdrop shotcuts with VS2005 installer
• Force the IE to update the latest BHO
• Prerequisites problem using Click Once
• How do I do a Shared Service installation with MSI
• Error when opening deployed project