recently in a customer query system, encountered the call to Delphi DLL in the WebForm generated in the unsuccessful, suddenly thought through the WinForm after the release of the address access, so did a small test.
1. Create a new directory to store post-release programs such as D:\AUTOUPWINFOM can also directly enter the server directory such as Http://192.168.0.12:8080\autoupwinfom
2. Create a new Web site in IIS and point to the directory D:\AutoUpWinfrom (here directly to the post-publication directory, is to avoid duplication in the directory,) of course, the directory name needs to be based on everyone's project, I am here just a simple test, because I test in the local computer, If it is not used in the intranet, this will require the configuration of everyone on the server.
The IIS access addresses I have on this machine are: http://192.168.0.32:8011, as follows:
1. Create a new project, it can be simple, because we just want to test the release function
Background code
<summary>///Needle Report///</summary>///<param name= "sender" ></param>///<param name= "E" ></param>private void Exportjzrequst_click (object sender, EventArgs e) { MessageBox.Show ("Hello, Automatically upgrade after the test is published. ");}
2: Publish a job
Select the item and click on the right button to appear the post and click.
3. Select the Publish directory as shown:
This is our new release directory above.
4. Select Upgrade Server address
Select the IIS server address that we have previously provisioned
5. Select the mode of operation
Offline or online use, can only be used online (here is the default selection), you can also select No depending on the situation, the specific view of the project.
6. Start Publishing
A report is generated before it is released
When you click Done, an installation screen will appear, such as:
7: Release name, version number. And the selection configuration that runs the prerequisite components.
Right click on the item's properties = "then click on the lower left corner to publish
8: View post-release programs
Click on the D:\AutoUpWinfom directory to go to view
Enter D:\AutoUpWinfom\Application Files to view each version of the program, which is recorded in each version of the release, of course, we have to regularly do the appropriate cleanup, or will be more and more occupy space.
Well, our configuration work has been done here.
Here is how the user installed or through the server address installation problems,
1: If it is installed, send the Setup.exe directly to the user, then double-click the installation on the user's computer.
2: If you want to pass the form of the website, then send http://192.168.0.32:8011/publish.htm to the customer, open can
Local installation Speed It's not coming here soon. After installation
9: Upgrade Effect
Append a pop-up hint:
<summary>///Needle report said///</summary>///<param name= "sender" ></param>///<param name= "E" ></param>private void Exportjzrequst_click (object sender, EventArgs e) { MessageBox.Show ("Hello, Automatically upgrade after the test is published. "); <span style= "color: #FF0000;" ><strong> MessageBox.Show ("Upgrade effect Test"); </strong></span>}
After the modification is completed, then compile, then follow the steps in the previous step, then the client click on the program you just installed or access the address
The speed of the test is too fast to see the update available for this hint,
Update the effect after upgrade:
Here we have completed the release and upgrade effect, if you do not understand, or any good suggestions or methods can reply to tell me.
Winfrom+c# How to implement publishing and automatically upgrade