码迷,mamicode.com
首页 > 其他好文 > 详细

[Inno Setup] 对比字符串

时间:2019-03-14 18:35:10      阅读:389      评论:0      收藏:0      [点我收藏+]

标签:ons   install   off   var   orm   col   .dll   file   ESS   

 

[Code]
var
  MD5Comp: string;

procedure ExitProcess(uExitCode:UINT);
  external ExitProcess@kernel32.dll stdcall;

procedure CurStepChanged(CurStep: TSetupStep);
begin
  MD5Comp := 32297BCBF4D802298349D06AF5E28059;

  if CurStep = ssInstall then
  begin

   if MD5Comp <> GetMD5OfFile(ExpandConstant({app}\cg.npa)) then
   begin
     MsgBox(A patched version detected. Setup will now exit., mbInformation, MB_OK);
     ExitProcess(1);
   end;
  end;
end;

 

[Inno Setup] 对比字符串

标签:ons   install   off   var   orm   col   .dll   file   ESS   

原文地址:https://www.cnblogs.com/liujx2019/p/10531784.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!