您可以从Adobe AIR的Windows注册表? [英] Can you access the windows registry from Adobe Air?
问题描述
(Y / N)
编辑:只读访问是好的
推荐答案
我还没有试过这个,但我想我已经找到了解决办法。
I haven't tried this yet, but I think I've found a workaround.
Adobe AIR的不能写入注册表,但你可以,但是,启动本机进程在AIR 2。这里有一个博客贴子,展示了如何做到这一点:<一href="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
Adobe AIR cannot write to Windows Registry, but you can, however, launch a native process in AIR 2. Here's a blog post that shows how to do that: http://www.adobe.com/devnet/air/flex/quickstart/articles/interacting_with_native_process.html
现在,在Windows上,您可以修改Windows注册表与reg文件。 reg文件是这些受器regedit.exe阅读只是普通的文本文件。因此从理论上讲,你可以写一个.reg文件到文件系统,然后在通过.reg文件... TADA发射器regedit.exe!刚刚修改注册表从AIR应用程序!
Now, on Windows, you are able to modify the Windows registry with .reg files. .reg files are just plain text files that's read by regedit.exe. So in theory, you can write a .reg file to the file system, then launch regedit.exe with the .reg file passed in and...TADA! You just modified Windows registry from your AIR app!
要读值,则可以使用注册表编辑器的导出功能写一个reg文件,并从reg文件读取。详细到注册表编辑器的选项: http://www.robvanderwoude.com/regedit.php
To read value, you can use regedit's export function to write to a reg file and read from the reg file. Details to regedit's options: http://www.robvanderwoude.com/regedit.php
下面是一些额外的资源:
.reg文件的语法: http://support.microsoft.com/kb/310516
写出来与空气中的文件:<一href="http://www.adobe.com/devnet/air/flex/articles/exploring_file_capabilities.html">http://www.adobe.com/devnet/air/flex/articles/exploring_file_capabilities.html
Here are some additional resources:
.reg file syntax: http://support.microsoft.com/kb/310516
write to file with AIR: http://www.adobe.com/devnet/air/flex/articles/exploring_file_capabilities.html
这篇关于您可以从Adobe AIR的Windows注册表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!