inno-setup - 在 Inno Setup Pascal 脚本中声明变量
问题描述
我已将以下代码添加到我的脚本中:
[Code]
function IsSomeAppInstalled: Boolean;
begin
Result := FileExists(ExpandConstant('{pf32}\SomeApp\Some.dll'));
end;
function InitializeSetup(): Boolean;
begin
Boolean bIsInstalled := IsSomeAppInstalled();
MsgBox('IsSomeAppInstalled: ' + IntToStr(Integer(bIsInstalled)),
mbInformation, MB_OK);
Result := true;
end;
线
Boolean bIsInstalled := IsSomeAppInstalled();
引发错误
内部错误 (20)
这里可能有什么错误?
解决方案
推荐阅读
- highcharts - 如何在 Highcharts 上制作 3 种不同的颜色
- r - 将 Excel .xlsx 转换为 R 中的向量列表
- r - 是否可以在 R DT 包中保存编辑
- php - 比较PHP多维数组中的当前元素与前一个元素
- typescript - TypeScript 上的重载和回调
- ios - NSTimer retainCount 在失效后不为零
- amazon-web-services - 如何在动态启动的 Windows EC2 实例上处理 https / 安全 Web 套接字的 SSL 证书?
- python - 根据值对数组应用不同的函数
- javascript - Javascript:拒绝成功的承诺
- ios - iOS 在 PM 和 AM 之间设置 datepicker TimeMode 最小和最大日期