There
are 4 main tasks for Click once deployment of windows Application
deployment and auto update. They are
1)Creating
Windows Application and configuring publish properties.
2)Creating
a web site and virtual directory in the application
3)Enabling
a Port(web site port created in Step 2) in windows fire wall by
creating a Inbound rule.
4)Publishing
the application.
Task
1:Creating Windows Application and configuring publish properties.
1)Create
a Windows Application.
2)Right
click on Project in solution explorer and select "Properties".It
will display a project Properties screen.
3)In
Properties click on Publish Tab,It will display the below screen.
4)Set
the Publish location to a valid website address as shown above.
5)Provide
the Publish version as 1 0 0 0 and select Automatically increment
revision with each publish check box.
6)Configure
Prerequisites,Updates and Options as shown below.
Prerequisites
Configuration:
Updates
Configuration:
Publish
Options Settings:
Publish
Options Deployment Settings:
Task
2:Creating a web site and virtual directory in the application
1)Open
IIS through run command, the below IIS console will appear.
2)Add
a web site from IIS by Right clicking on Sites and selecting Add Web
Site option. Need to provide site name,physical path and port number.
Check Start Web Site immediately check box.
Task
3:Enabling a Port(web site port created in Step 2) in windows fire
wall by creating a Inbound rule.
1)Open
a Windows fire wall from Control Panel.The below window appears.
2)Click
on Advance
settings,below
window will be displayed.
3)Click
on Inbound
rules,below
window will be displayed.
4)Click
on New
Rule in
Actions. New Inbound Rule Wizard will be displayed as shown below.
5)Now
Configure Rule Type as Port and click on next. It will display the
protocol and Ports window. select TCP and Specific local ports radio
buttons. Give the port number used in the web site created in step
2.Then click on Next button.
6)Select
Action as Allow
the Connection. Click
on Next.
7)Select
the Rule Profile options as below.Then,Click on Next.
8)Provide
the Rule Name and Description as below and Click on Finish. It will
create Inbound Rule with the name(AllowTrafficOnPort121) provided and
allows the other machines to access the resources from the given port
number(here 121 ).
Task
4:Publishing the windows application.
Please
refer to Publish screen shots.
Click on Next
Finally you got the update ready to be installed.Clicking on Install will update the latest version of the windows console application.