49 lines
1.5 KiB
C#
49 lines
1.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
|
|
namespace ProvinceUpdateExe.Lib
|
|
{
|
|
/// <summary>
|
|
/// 配置信息
|
|
/// </summary>
|
|
class ConfigHelper
|
|
{
|
|
//*************服务器内容配置**************//
|
|
/// <summary>
|
|
/// 服务器上的地址
|
|
/// </summary>
|
|
public static string strUpdateListXmlPath = "UpdateServer/UpdateList.xml";
|
|
|
|
public static string strSevUpdateFilesUrl = "UpdateServer/UpdateFiles";
|
|
|
|
public static string ConnectPointExe = "ConnectPoint.exe";
|
|
|
|
//************本地配置*********************//
|
|
/// <summary>
|
|
/// 本地程序路径
|
|
/// </summary>
|
|
public static string strUpdaterProPath = Application.StartupPath + @"AutoUpdateEx.exe";
|
|
|
|
public static string strUpdateXmlPath = Application.StartupPath + @"\update.xml";
|
|
|
|
//下载到当前路径
|
|
public static string strUpdateFilesTmpPath = Application.StartupPath + @"\UpdateFiles\";
|
|
|
|
public static string strMainProDir = new DirectoryInfo(Application.StartupPath).FullName + @"\UpdateFiles\";
|
|
/// <summary>
|
|
/// 备份目录
|
|
/// </summary>
|
|
public static string strBackupPath = Application.StartupPath + @"\backup\";
|
|
|
|
/// <summary>
|
|
/// 下载文件目录
|
|
/// </summary>
|
|
public static string strUpdateFilesPath = Application.StartupPath + @"\UpdateFiles";
|
|
|
|
}
|
|
}
|