inno-setup - 编译我的脚本时,我使用 Visual & Installer 收到裁剪的警告输出
问题描述
我正在使用最新版本的 Visual & Installer:
================================================
6> Visual & Installer - Inno Setup Compiler (1.0.4.9)
6> Copyright (c) 2012 - 2020 unSigned, s. r. o.
6> Visit http://www.visual-installer.com/ for more information.
6> ================================================
我刚刚注意到错误日志的底部看起来像不完整的文本:
6>D:\My Programs\2019\MeetSchedAssist\Inno\MeetSchedAssist2019_v6.iss(1,1): warning : A message named "UninstallDisplayNameMarkCurrentUser" has not been defined for the "Romanian" language. Will use the English message from Default.isl.
6>D:\My Programs\2019\MeetSchedAssist\Inno\MeetSchedAssist2019_v6.iss(1,1): warning : such changes may not achieve what you are intending. See the "UsedUserAreasWarning" topic in help file for more information.
6> Script compiled successfully in 25.402 seconds.
这个:
此类更改可能无法实现您的预期。有关详细信息,请参阅帮助文件中的“UsedUserAreasWarning”主题。
似乎不完整。如果我用 Inno Setup 6.0.5 编译它,我会得到以下构建输出:
Warning: A message named "UninstallDisplayNameMarkCurrentUser" has not been defined for the "Romanian" language. Will use the English message from Default.isl.
Warning: The [Setup] section directive "PrivilegesRequired" is set to "admin" but per-user areas (HKCU) are used by the script. Regardless of the version of Windows, if the installation is running in administrative install mode then you should be careful about making any per-user area changes: such changes may not achieve what you are intending. See the "UsedUserAreasWarning" topic in help file for more information.
正如你所看到的,这句话在 Inno Setup Compiler 中更加冗长:
[Setup] 部分指令“PrivilegesRequired”设置为“admin”,但脚本使用每用户区域 (HKCU)。无论 Windows 的版本如何,如果安装在管理安装模式下运行,那么您应该小心对每个用户区域进行任何更改:此类更改可能无法达到您的预期。有关详细信息,请参阅帮助文件中的“UsedUserAreasWarning”主题。
警告中缺少包括冒号在内的所有内容。
解决方案
感谢您报告此事。
此问题已在最新版本的 Visual & Installer(2020 年 11 月)中得到修复。
推荐阅读
- javascript - 如何制作一个按钮来隐藏一列并展开另一列?
- python - 如何订阅 django 频道休息框架中模型的所有实例?
- html - 位置粘性未正确粘贴
- php - 文件存在时调用 null Laravel 上的成员函数 move()
- javascript - 返回带有承诺的对象(解决,拒绝)
- android - 在 Android 中连接 wamp 服务器
- javascript - 即使我有这个角色,仍然会发送失败消息
- node.js - 当所有测试成功或失败时,有没有办法向 Jest 添加回调?
- php - Composer:如何将私有存储库添加为依赖项?
- python - 使表单仅显示 SelectField 中的某个值