(是/否)
编辑:只读访问很好。
最佳答案
我还没有尝试过这个,但我想我已经找到了一个解决方法。
Adobe AIR 无法写入 Windows 注册表,但您可以在 AIR 2 中启动 native 进程。这是一篇介绍如何执行此操作的博客文章:http://www.adobe.com/devnet/air/flex/quickstart/articles/interacting_with_native_process.html
现在,在 Windows 上,您可以使用 .reg 文件修改 Windows 注册表。 .reg 文件只是由 regedit.exe 读取的纯文本文件。所以理论上,您可以将.reg 文件写入文件系统,然后使用传入的.reg 文件启动regedit.exe 和...TADA!您刚刚从 AIR 应用程序修改了 Windows 注册表!
要读取值,您可以使用 regedit 的导出功能写入 reg 文件并从 reg 文件中读取。 regedit 选项的详细信息:http://www.robvanderwoude.com/regedit.php
以下是一些额外的资源:
.reg 文件语法:http://support.microsoft.com/kb/310516
使用 AIR 写入文件:http://www.adobe.com/devnet/air/flex/articles/exploring_file_capabilities.html
关于apache-flex - 您可以从 Adobe Air 访问 Windows 注册表吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3666/