1 Star 0 Fork 2

张东东大人 / 在线更新

forked from 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.
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Delphi
1
https://gitee.com/a200332/online_update.git
git@gitee.com:a200332/online_update.git
a200332
online_update
在线更新
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891