- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
有没有人成功创建过单页autorun.inf文件? *.inf 文件的文档建议
[autorun]
open="MyApp.exe"
icon=MyApp.exe,0
label=%AppLabel%
action=%AppAction%
[Strings]
AppLabel = "My test app"
AppAction = "Start my test app"
[Strings.0407] ; 0407 is the language ID for German
AppLabel = "German my test app"
AppAction = "German start my test app"
应该可以。我发现该标签(显示在“自动运行”对话框中)显示“%AppLabel%”而不是预期的“我的测试应用程序”。
最佳答案
docs卡萨布兰卡在评论中链接说明了必须如何完成此操作,但是是以迂回的方式。
答案在"indirect strings"中.您必须将多个字符串资源添加到一个 EXE 或 DLL 文件中,所有这些资源都具有相同的 ID 但指定的语言不同(通过 LANGUAGE
语句)。然后您可以在 autorun.inf 中引用这些字符串
文件通过间接字符串语法:@filename,-id
间接字符串的语法是一个@
符号,后跟包含您正在引用的字符串资源的文件的名称,然后是一个逗号、一个减号,然后是您正在引用的字符串ID .
例子:
[autorun]
open="MyApp.exe"
icon=MyApp.exe,0
label=@MyApp.exe,-100
action=@MyApp.exe,-101
这要求您在 EXE 中有一个包含所有本地化字符串的字符串表资源。它在 RC 文件格式中看起来像这样:
#include <winresrc.h>
LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
STRINGTABLE
BEGIN
100 "English MyApp
101 "English MyApp description text"
END
LANGUAGE LANG_GERMAN, SUBLANG_DEFAULT
STRINGTABLE
BEGIN
100 "German MyApp
101 "German MyApp description text"
END
如果用户安装了德语版本的 Windows,或者选择德语作为他的 MUI 语言,则 Windows 应该使用德语字符串。任何其他语言版本应选择英文字符串。
关于windows - 如何本地化autorun.inf?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3765320/
Autorun意思是自动运行,功能是在U盘插上电脑或者硬盘第一次被加载的时候自动执行。这个文件与病毒什么的没有任何直接关系。那么为什么这个文件会报毒呢?主要是因为凡是感染U盘的病毒八成都会在U盘上创
像jayant所说的那样修复。 cat upload.sh /home/Dropbox-Uploader/dropbox_uploader.sh upload -f /home/Dropbox
Meteor.autorun和Tracker.autorun有什么区别? 他们只是别名吗? 被弃用了吗? 是否有任何一种情况比另一种更好的情况? 我很清楚在模板生命周期回调中使用this.autoru
好消息,我的c64 ist在我的阁楼上花了很多年后仍在运行。 但是我一直想知道的是: 如何从已经插入的软盘自动加载和运行程序 当我打开c64时? 像load "*",8,1这样的自动运行命令就足够了.
进程文件: autorun or autorun.exe 进程名称: Autorun Executable 进程类别:存在安全风险的进程 英文描述: autorun.exe is a fac
关闭。这个问题是off-topic .它目前不接受答案。 想改善这个问题吗? Update the question所以它是 on-topic对于堆栈溢出。 9年前关闭。 Improve this q
我有一个包含图表的模板,使用 MorrisJS 呈现。图表应在 currentData 时更新 session 变量已更改,因此我已将其设为响应式数据源: Template.chart.rendere
看Tracker.autorun ,这主要是神奇的......但我想知道它如何决定哪些变量将形成计算的依赖关系。它只挑选出“ react 性”变量,例如以下内容: window.bar = 1
在客户端我有这个: var Coll1 = new Meteor.Collection('myCollection1'); var Coll2 = new Meteor.Collection('myC
我正在初始化一个类的实例,并开始使用autorun观察事物的数组。此方法返回一个处理器。从我对Typescript的经验来看,我需要在某个时候处置该实例,否则我有可能遇到内存泄漏的风险。如果是这样,我
我想知道将 Tracker.autorun 放在何处以确保其他所有内容都已加载。我以为 Meteor.startup(function(){...}); 用于这种情况,但是当我从 mdg:geoloc
我正在尝试使用 autorun.inf 在文件夹名称中包含空格的子文件夹下运行我的可执行文件。像这样: H:\ autorun.inf FOLDER NAME 1 fi
我有以下 autorun.inf [Autorun] action="Blah, Inc." open=marketing.exe icon=blah.ico label="Blah, Inc." 在
我在使用 zeus + rspec 和 the solution I found 时遇到了一些问题说我必须删除require 'rspec/autorun'来自 spec_helper.rb . 效果
我有一个模板时间线,其中显示当前时间和从中生成的值。为此,我将一个 reactiveVar 附加到我的模板,并在附加到同一模板的 autorun 中更新它。 它的外观如下: Template.Time
Tracker 方法并不完全属于 Meteor 功能的核心,很少在教程和初学者书籍中使用(如果是的话,也没有很好地解释),因此被认为更“可怕” “比框架的其余大部分部分都要多。 就我而言,我从未成功地
我有以下内容: Meteor.startup(function() { var computation = Tracker.autorun(function() { var current
我使用 Python 编写了一个备份脚本,我使用了 cx_Freeze将其转换为 backup.exe。我把这个可执行文件放在我的 USB 闪存驱动器上。如果我运行 C:\> E:\backup\ba
我有一个 win32 api 应用程序驻留在 USB 虚拟 CD 上。能否判断是windows执行autorun.inf还是用户在explorer中双击cd图标运行? 谢谢... 最佳答案 没有直接的
在这个类中,我使用一个初始化的 bool 状态来产生 Mobx.autorun 执行。否则 'this' 未完全分配并导致错误。有没有其他/更清洁的方法来做到这一点? class GameMaster
我是一名优秀的程序员,十分优秀!