SIGN UP MEMBER LOGIN:    
ARTICLE

ClickOnce Deployment

Posted by Amol Malpani Articles | Deployment May 09, 2006
This article will make you publish application on IIS withouting using VS IDE.
Reader Level:

Here is some cool stuff to deploy windows application using "ClickOnce" without using VS 2005 IDE. Please fallow the steps given below to publish your application at IIS.

 

Steps:- 

  1. Create one folder under wwwroot folder for example FirstClickOnce.

  2. Create one subfolder under FirstClickOnce for example FirstClickOnce_1_0_0_0 since first time you are publishing application.

  3. Copy your .exe & .dll from bin\debug folder into FirstClickOnce_1_0_0_0. 

  4. Go to Start-->Program-->Microsoft .Net Framework SDK v2.0-->SDK Command Prompt & type MageUi.exe one window will open.

  5. Create a new application manifest by selecting File, New, Application Manifest from the menu. 

  6. On the default Name tab, enter the name and version number of this deployment.

  7. Select the Files tab and click the Browse... button next to the Application Directory text box. 

  8. Select the directory containing your application files that you created in step 2, and click OK on the folder selection dialog box.

  9. Click the Populate button to add all your application files to the file list. If your application contains more than one executable file, mark the main executable file for this deployment as the startup application by selecting Entry Point from the File Type drop-down list. (If your application only contains one executable file, MageUI.exe will mark it for you.)

  10. Select the Permissions Required tab and select the level of trust you need your application to assert. The default is Full Trust, which will be suitable for most applications. 

  11. Select File, Save from the menu, and save the application manifest. You will be prompted to sign the application manifest when you save it.Save it in folder created  in step 2.

  12. Select File, New, Deployment Manifest from the menu to create your deployment manifest, and then on the Name tab, supply a name and version number (1.0.0.0 in this example). 

  13. Select the Publisher tab, and supply values for Publisher and Product. (Product is the name given your application on the Windows Start menu when you install your application locally.)

  14. Switch to the Deployment tab, and uncheck Use .deploy file name extension & type start location as,

  15. Switch to the Update tab, and specify how often you would like this application to update. If your application uses the ClickOnce Deployment API to check for updates itself, clear the check box labeled this application should check for updates.

  16. Switch to the Application Reference tab. You can pre-populate all of the values on this tab by clicking the Select Manifest button and selecting the application manifest you created in 9 steps.

  17. Choose Save and save the deployment manifest to disk. You will be prompted to sign the application manifest when you save it. Save deployment manifest in folder created in step 1.  

That's it now browse application file from location given in step 12.

 

For any query related to article please fell free to ask.

Login to add your contents and source code to this article
share this article :
post comment
 

Please advise

Posted by Santhosh Adari Mar 23, 2007

Thanks for the details on setting up a ClickOnce application.  Can you use this technique to deploy a .Net 1.1 built application?  I recognize you would need to have the .Net 2.0 framework deployed to the server and to the client machines I assume.  But if you did deploy the 2.0 framework but you were not ready to build 2.0 applications yet, could you ClickOnce deploy your 1.1 assemblies?

 

Thanks.

Posted by tim downey May 11, 2006
Team Foundation Server Hosting
Become a Sponsor
PREMIUM SPONSORS
  • Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
    Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites - Click Here!
Nevron Gauge for SharePoint
Become a Sponsor