Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > ClickOnce for Sub Main Application
 

ClickOnce for Sub Main Application

I have an application that has been developed in .NET 2.0; the application has no forms or GUI just a main module (Sub Main() can someone tell me what do you call such application)

This applicationiscalled by other application through command shell passingsome params. .NET application in termspost some data through web service to the targeted web server.

Question: How can I enable click once for such application (with no form or GUI)? In past I have wrote a function that can check whether there are any updates available or not. But in this case as this application is called by an external app, I do not want to check for new updates everytime this application has been called by external programs.

c_shah  Friday, July 17, 2009 1:35 PM
Hi c_shah,

Is it a console application? If it is a ClassLibrary, the publish tag is not available.

Anyway, if you don't run your ClickOnce application via shortcut, it won't have update feature.

Sincerely,
Kira Qian
Please mark the replies as answers if they help and unmark if they don't.
  • Marked As Answer byc_shah Monday, July 20, 2009 6:06 PM
  •  
Kira Qian  Monday, July 20, 2009 8:22 AM
Hi c_shah,

Is it a console application? If it is a ClassLibrary, the publish tag is not available.

Anyway, if you don't run your ClickOnce application via shortcut, it won't have update feature.

Sincerely,
Kira Qian
Please mark the replies as answers if they help and unmark if they don't.
  • Marked As Answer byc_shah Monday, July 20, 2009 6:06 PM
  •  
Kira Qian  Monday, July 20, 2009 8:22 AM
Yes, it is a console application.
c_shah  Monday, July 20, 2009 2:41 PM
You can use ClickOnce to install it, but know that you have to track down the exe file, which changes if you ever reinstall it or push an upgrade and then go run the app using the shortcut.

What might be better for you is to XCopy the files in your bin folder and put them in a folder on your server, and just run the console application the way you are. Since you don't really care about the ClickOnce-ness of it all, you don't have to use it in order to make the application work.

RobinDotNet
Click here to visit my ClickOnce blog!
RobinDotNet  Tuesday, July 21, 2009 5:46 AM

You can use google to search for other answers

Custom Search

More Threads

• multiple distribution servers with ClickOnce
• problem with launching clickonce application
• Huge bug ?
• Setup & Deployment Package
• Cannot download the application error!
• Patching dll files with ClickOnce
• How can I make my program executable files portable?
• How to let client select path, when installing via clickonce
• CLickOnce deployment to URL
• setup project error in custom action