[Inno Setup] 对比字符串
Posted liujx2019
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[Inno Setup] 对比字符串相关的知识,希望对你有一定的参考价值。
[Code] var MD5Comp: string; procedure ExitProcess(uExitCode:UINT); external ‘[email protected] 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] 对比字符串的主要内容,如果未能解决你的问题,请参考以下文章