1 Star 2 Fork 2

MufeeSama / 在线更新

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
OnLineUpdateUnt.pas 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
MufeeSama 提交于 2018-08-03 17:03 . no commit message
unit OnLineUpdateUnt;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes,
Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, auHTTP, auAutoUpgrader;
type
TOnLineUpdateFrm = class(TForm)
AutoUpgrader1: TauAutoUpgrader;
procedure FormShow(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
OnLineUpdateFrm: TOnLineUpdateFrm;
implementation
{$R *.dfm}
procedure TOnLineUpdateFrm.FormShow(Sender: TObject);
begin
AutoUpgrader1.CheckUpdate(False);
end;
initialization
if not DirectoryExists(GetCurrentDir + '\Config') then
ForceDirectories(GetCurrentDir + '\Config');
if FileExists(GetCurrentDir + '\1.png') and DirectoryExists(GetCurrentDir +
'\Config') then
begin
if CopyFile(PWideChar(GetCurrentDir + '\1.png'), PWideChar(GetCurrentDir +
'\Config\1.png'), False) then
begin
DeleteFile(GetCurrentDir + '\1.png');
end;
end;
end.
Delphi
1
https://gitee.com/mufeesama/online_update.git
git@gitee.com:mufeesama/online_update.git
mufeesama
online_update
在线更新
master

搜索帮助