相关疑难解决方法(0)

Inno设置:检查新的更新

阅读本文后如何从Internet资源中读取文本文件?,我已经根据我的需要调整了代码,但是我遇到了一些问题.

我想要做的是,当我运行安装程序时,它会检查新的更新.1)如果没有新的更新,请不要显示任何消息.2)如果有新的更新,请显示一条消息,询问您是否要下载它.

这是我的代码:

procedure InitializeWizard;
var
  DxLastVersion: string;
  DxSetupVersion: String;

begin
  if DownloadFile('http://dex.wotanksmods.com/latestver.txt', DxLastVersion)  then
    MsgBox(DxLastVersion, mbInformation, MB_YESNO)
  else
    MsgBox(DxLastVersion, mbError, MB_OK)
end;
Run Code Online (Sandbox Code Playgroud)

非常感谢先进.

inno-setup

4
推荐指数
1
解决办法
2347
查看次数

标签 统计

inno-setup ×1