91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 524KB
    文件類型: .zip
    金幣: 1
    下載: 0 次
    發布日期: 2021-06-04
  • 語言: C#
  • 標簽: c#??winform??自動更新??

資源簡介

這是綜合網上的相關代碼做了簡化和測試,以保證完全可用。 1、配置好更新文件的web服務器,例如IIS服務器。 注意:要配置好服務器所能支持的文件下載類型,即MIME類型,否則下載時會出錯。 假設下載地址為http://www.xxxxx.com 自動生成的程序和文件默認版本號均為1.0.0.0, 2、利用所帶的AULWriter工具生成更新文件列表,即UpdateList.xml 將此文件放在web服務器下載文件相同目錄下。 3、將這個autoupdate.exe和UpdateList.xml放到主程序下。 在你的主程序里調用這個autoupdate.exe文件即可。 當你想發布更新程序時,只需要更新web服務器上的文件,手工修改UpdateList.xml里的版本號即可。 例如web服務器上UpdateList.xml版本修改為1.0.0.1,客戶端的UpdateList.xml里為1.0.0.0,即能升級。 源代碼為VS2010,里面包含已編譯文件,可直接使用。 主要參考:https://www.cnblogs.com/xiaxiaolu/p/4367159.html,非常感謝! TODO 生成xml工具來不及做成自動更新版本了(根據datetime和size判斷),有興趣的朋友可繼續完善。 2018.1.22

資源截圖

代碼片段和文件信息

namespace?AULWriter
{
????partial?class?frmAULWriter
????{
????????///?
????????///?必需的設計器變量。
????????///?

????????private?System.ComponentModel.IContainer?components?=?null;

????????///?
????????///?清理所有正在使用的資源。
????????///?

????????///?如果應釋放托管資源,為?true;否則為?false。
????????protected?override?void?Dispose(bool?disposing)
????????{
????????????if?(disposing?&&?(components?!=?null))
????????????{
????????????????components.Dispose();
????????????}
????????????base.Dispose(disposing);
????????}

????????#region?Windows?窗體設計器生成的代碼

????????///?
????????///?設計器支持所需的方法?-?不要
????????///?使用代碼編輯器修改此方法的內容。
????????///?

????????private?void?InitializeComponent()
????????{
????????????System.ComponentModel.ComponentResourceManager?resources?=?new?System.ComponentModel.ComponentResourceManager(typeof(frmAULWriter));
????????????this.panel1?=?new?System.Windows.Forms.Panel();
????????????this.label1?=?new?System.Windows.Forms.Label();
????????????this.panel2?=?new?System.Windows.Forms.Panel();
????????????this.prbProd?=?new?System.Windows.Forms.ProgressBar();
????????????this.btnExit?=?new?System.Windows.Forms.Button();
????????????this.btnProduce?=?new?System.Windows.Forms.Button();
????????????this.groupBox1?=?new?System.Windows.Forms.GroupBox();
????????????this.tabControl1?=?new?System.Windows.Forms.TabControl();
????????????this.tbpbase?=?new?System.Windows.Forms.TabPage();
????????????this.txtUrl?=?new?System.Windows.Forms.TextBox();
????????????this.label5?=?new?System.Windows.Forms.Label();
????????????this.btnExpt?=?new?System.Windows.Forms.Button();
????????????this.txtExpt?=?new?System.Windows.Forms.TextBox();
????????????this.label4?=?new?System.Windows.Forms.Label();
????????????this.btnDest?=?new?System.Windows.Forms.Button();
????????????this.txtDest?=?new?System.Windows.Forms.TextBox();
????????????this.label3?=?new?System.Windows.Forms.Label();
????????????this.btnSrc?=?new?System.Windows.Forms.Button();
????????????this.txtSrc?=?new?System.Windows.Forms.TextBox();
????????????this.label2?=?new?System.Windows.Forms.Label();
????????????this.tbpOpt?=?new?System.Windows.Forms.TabPage();
????????????this.ofdSrc?=?new?System.Windows.Forms.OpenFileDialog();
????????????this.sfdDest?=?new?System.Windows.Forms.SaveFileDialog();
????????????this.ofdExpt?=?new?System.Windows.Forms.OpenFileDialog();
????????????this.panel1.SuspendLayout();
????????????this.panel2.SuspendLayout();
????????????this.groupBox1.SuspendLayout();
????????????this.tabControl1.SuspendLayout();
????????????this.tbpbase.SuspendLayout();
????????????this.SuspendLayout();
????????????//?
????????????//?panel1
????????????//?
????????????this.panel1.Controls.Add(this.label1);
????????????this.panel1.Dock?=?System.Windows.Forms.Dockstyle.Top;
????????????this.panel1.Location?=?new?System.Drawing.Point(0?0);
????????????this.panel1

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-01-22?12:00??AutoUpdate\
?????目錄???????????0??2018-01-17?12:34??AutoUpdate\AULWriter\
?????文件????????7278??2007-07-14?13:16??AutoUpdate\AULWriter\3.ico
?????文件?????????144??2018-01-17?01:58??AutoUpdate\AULWriter\app.config
?????文件???????18718??2007-07-14?13:15??AutoUpdate\AULWriter\App.ico
?????文件????????5504??2018-01-22?11:55??AutoUpdate\AULWriter\AULWriter.csproj
?????文件?????????676??2018-01-22?11:55??AutoUpdate\AULWriter\AULWriter.csproj.user
?????文件???????21504??2018-01-17?12:22??AutoUpdate\AULWriter\AULWriter.suo
?????目錄???????????0??2018-01-17?12:25??AutoUpdate\AULWriter\bin\
?????目錄???????????0??2018-01-22?11:57??AutoUpdate\AULWriter\bin\Debug\
?????文件?????????594??2007-07-18?20:17??AutoUpdate\AULWriter\bin\Debug\UpdateList.xml
?????目錄???????????0??2018-01-22?12:04??AutoUpdate\AULWriter\bin\Release\
?????文件???????33792??2018-01-22?11:58??AutoUpdate\AULWriter\bin\Release\AULWriter.exe
?????文件?????????144??2018-01-17?01:58??AutoUpdate\AULWriter\bin\Release\AULWriter.exe.config
?????文件???????28160??2018-01-22?11:58??AutoUpdate\AULWriter\bin\Release\AULWriter.pdb
?????文件?????????594??2007-07-18?20:17??AutoUpdate\AULWriter\bin\Release\UpdateList.xml
?????文件???????16450??2018-01-17?10:38??AutoUpdate\AULWriter\Form1.Designer.cs
?????文件????????9811??2018-01-17?10:52??AutoUpdate\AULWriter\frmAULWriter.cs
?????文件???????17620??2007-07-18?20:14??AutoUpdate\AULWriter\frmAULWriter.resx
?????目錄???????????0??2018-01-17?12:25??AutoUpdate\AULWriter\obj\
?????文件?????????460??2007-07-14?17:14??AutoUpdate\AULWriter\obj\ASP.CommonComponents.AULWriter.csproj.FileList.txt
?????文件?????????289??2007-07-18?20:19??AutoUpdate\AULWriter\obj\AULWriter.csproj.FileList.txt
?????目錄???????????0??2018-01-22?11:46??AutoUpdate\AULWriter\obj\Debug\
?????文件????????2038??2018-01-22?11:46??AutoUpdate\AULWriter\obj\Debug\AULWriter.csproj.FileListAbsolute.txt
?????文件?????????909??2018-01-17?02:06??AutoUpdate\AULWriter\obj\Debug\AULWriter.csproj.GenerateResource.Cache
?????文件???????34304??2018-01-22?11:46??AutoUpdate\AULWriter\obj\Debug\AULWriter.exe
?????文件????????7844??2018-01-22?11:46??AutoUpdate\AULWriter\obj\Debug\AULWriter.frmAULWriter.resources
?????文件???????38400??2018-01-22?11:46??AutoUpdate\AULWriter\obj\Debug\AULWriter.pdb
?????文件?????????180??2018-01-22?11:46??AutoUpdate\AULWriter\obj\Debug\AULWriter.Properties.Resources.resources
?????文件?????????789??2018-01-17?01:56??AutoUpdate\AULWriter\obj\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件????????6210??2018-01-22?11:46??AutoUpdate\AULWriter\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
............此處省略69個文件信息

評論

共有 條評論