我还没有尝试过,但我想我已经找到了解决方法。
Adobe AIR 无法写入 Windows 注册表,但您可以在 AIR 2 中启动本机进程。以下博客文章展示了如何执行此操作:http://www.adobe.com/devnet/air/flex/quickstart/articles/interacting_with_native_process.html 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 http://www.robvanderwoude.com/regedit.php
以下是一些额外的资源:
.reg 文件语法:http://support.microsoft.com/kb/310516 http://support.microsoft.com/kb/310516
使用 AIR 写入文件:http://www.adobe.com/devnet/air/flex/articles/exploring_file_capability.html http://www.adobe.com/devnet/air/flex/articles/exploring_file_capabilities.html
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)