• 大小: 2.14MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-11-15
  • 语言: 其他
  • 标签: 自动更新  

资源简介

微软的一个自动更新组件、压缩包里面有详细的源码、例子及文档

资源截图

代码片段和文件信息


//============================================================================================================
// Microsoft Updater Application Block for .NET
//  http://msdn.microsoft.com/library/en-us/dnbda/html/updater.asp
//
// ManifestCreator.cs
//
// Exposes a command-line interface for creating manifest files.
// 
// For more information see the Updater Application Block Implementation Overview. 
// 
//============================================================================================================
// Copyright (C) 2000-2001 Microsoft Corporation
// All rights reserved.
// THIS CODE AND INFORMATION IS PROVIDED “AS IS“ WITHOUT WARRANTY
// OF ANY KIND EITHER EXPRESSED OR IMPLIED INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR
// FITNESS FOR A PARTICULAR PURPOSE.
//============================================================================================================





using System;
using System.IO;
using System.xml;
using System.Security.Cryptography;
using System.Diagnostics;
namespace QSManifestTool
{
class ManifestCreator
{
[STAThread]
static void Main(string[] args)
{
Console.WriteLine(args[0]);

string _key;
StreamReader sr = new System.IO.StreamReader(args[3]);
_key = sr.ReadToEnd();
sr.Close();
bool _usePP = false;

if(args[6] == “true“)
{
_usePP = true;
}

ManifestSettings manifest = new ManifestSettings();
manifest.FolderPath = args[0];
manifest.UpdateLocation = args[1];
manifest.Version = args[2];
manifest.Key = _key;
manifest.ValidatorAssembly = args[4];
manifest.ValidatorClass = args[5];
manifest.UsePostProcessor = _usePP;
manifest.PostProcessorAssembly = args[7];
manifest.PostProcessorClass = args[8];
xmlDocument manifestDoc = manifest.Create();
manifestDoc.Save(args[9]);
}

}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        192  2003-05-29 21:33  Updater\Code\BUILD_SLN.BAT

     文件        247  2003-05-29 21:34  Updater\Code\COPY_FILES.BAT

     文件        576  2013-04-26 16:30  Updater\Code\CS\Microsoft.ApplicationBlocks.Updater\AppStart\App.config

     文件       1078  2003-05-13 18:33  Updater\Code\CS\Microsoft.ApplicationBlocks.Updater\AppStart\App.ico

     文件       4305  2003-06-11 18:53  Updater\Code\CS\Microsoft.ApplicationBlocks.Updater\AppStart\AppStart.cs

     文件       5369  2013-04-26 16:26  Updater\Code\CS\Microsoft.ApplicationBlocks.Updater\AppStart\AppStart.csproj

     文件        592  2013-04-26 16:26  Updater\Code\CS\Microsoft.ApplicationBlocks.Updater\AppStart\AppStart.exe.config

     文件       5315  2003-05-13 18:33  Updater\Code\CS\Microsoft.ApplicationBlocks.Updater\AppStart\AppStart.resx

     文件        920  2003-06-05 09:32  Updater\Code\CS\Microsoft.ApplicationBlocks.Updater\AppStart\AssemblyInfo.cs

     文件      20480  2013-04-26 16:26  Updater\Code\CS\Microsoft.ApplicationBlocks.Updater\AppStart\bin\Debug\AppStart.exe

     文件        576  2013-04-26 16:30  Updater\Code\CS\Microsoft.ApplicationBlocks.Updater\AppStart\bin\Debug\AppStart.exe.config

     文件      19968  2013-04-26 16:26  Updater\Code\CS\Microsoft.ApplicationBlocks.Updater\AppStart\bin\Debug\AppStart.pdb

     文件      11592  2013-04-26 16:39  Updater\Code\CS\Microsoft.ApplicationBlocks.Updater\AppStart\bin\Debug\AppStart.vshost.exe

     文件        576  2013-04-26 16:30  Updater\Code\CS\Microsoft.ApplicationBlocks.Updater\AppStart\bin\Debug\AppStart.vshost.exe.config

     文件        490  2009-06-11 05:14  Updater\Code\CS\Microsoft.ApplicationBlocks.Updater\AppStart\bin\Debug\AppStart.vshost.exe.manifest

     文件     106496  2013-04-24 16:16  Updater\Code\CS\Microsoft.ApplicationBlocks.Updater\AppStart\bin\Debug\Microsoft.ApplicationBlocks.ApplicationUpdater.dll

     文件      16384  2013-04-24 16:16  Updater\Code\CS\Microsoft.ApplicationBlocks.Updater\AppStart\bin\Debug\Microsoft.ApplicationBlocks.ApplicationUpdater.Interfaces.dll

     文件       7680  2013-04-24 16:16  Updater\Code\CS\Microsoft.ApplicationBlocks.Updater\AppStart\bin\Debug\Microsoft.ApplicationBlocks.ApplicationUpdater.Interfaces.pdb

     文件     159232  2013-04-24 16:16  Updater\Code\CS\Microsoft.ApplicationBlocks.Updater\AppStart\bin\Debug\Microsoft.ApplicationBlocks.ApplicationUpdater.pdb

     文件      36864  2013-04-24 16:16  Updater\Code\CS\Microsoft.ApplicationBlocks.Updater\AppStart\bin\Debug\Microsoft.ApplicationBlocks.ExceptionManagement.dll

     文件      16384  2013-04-24 16:16  Updater\Code\CS\Microsoft.ApplicationBlocks.Updater\AppStart\bin\Debug\Microsoft.ApplicationBlocks.ExceptionManagement.Interfaces.dll

     文件       7680  2013-04-24 16:16  Updater\Code\CS\Microsoft.ApplicationBlocks.Updater\AppStart\bin\Debug\Microsoft.ApplicationBlocks.ExceptionManagement.Interfaces.pdb

     文件      54784  2013-04-24 16:16  Updater\Code\CS\Microsoft.ApplicationBlocks.Updater\AppStart\bin\Debug\Microsoft.ApplicationBlocks.ExceptionManagement.pdb

     文件       3563  2003-06-11 18:53  Updater\Code\CS\Microsoft.ApplicationBlocks.Updater\AppStart\ConfigSectionHandler.cs

     文件       1917  2013-04-26 16:39  Updater\Code\CS\Microsoft.ApplicationBlocks.Updater\AppStart\obj\Debug\AppStart.csproj.FileListAbsolute.txt

     文件      20480  2013-04-26 16:26  Updater\Code\CS\Microsoft.ApplicationBlocks.Updater\AppStart\obj\Debug\AppStart.exe

     文件      19968  2013-04-26 16:26  Updater\Code\CS\Microsoft.ApplicationBlocks.Updater\AppStart\obj\Debug\AppStart.pdb

     文件      14153  2013-04-24 16:16  Updater\Code\CS\Microsoft.ApplicationBlocks.Updater\AppStart\obj\Debug\ResolveAssemblyReference.cache

     文件       1078  2003-05-13 18:33  Updater\Code\CS\Microsoft.ApplicationBlocks.Updater\ManifestUtility\App.ico

     文件        845  2003-05-13 18:33  Updater\Code\CS\Microsoft.ApplicationBlocks.Updater\ManifestUtility\AssemblyInfo.cs

............此处省略464个文件信息

评论

共有 条评论