<p>(y/N)</p>

<p>Edit: Read-only access is fine.</p>

[{'answer_id': 4934, 'author': 'Matt MacLean', 'author_id': 22, 'author_profile': 'https://Stackoverflow.com/users/22', 'pm_score': 2, 'selected': False, 'text': "<p>If your willing to force the user to also install another application, you could write a small C# or C++ windows service that simply opens a Socket that provides some kind of protocol for accessing the registry. Then in AIR you can use the Socket class to send messages to/from the C# service that would return results to the AIR app.</p>\n\n<p>When the app loads you can try to connect to the Socket, and if the connection is rejected you could prompt the user to download/install the service.</p>\n\n<p>As for direct access to the registry I am pretty sure Adobe wouldn't allow that from AIR.</p>\n"}, {'answer_id': 4940, 'author': 'Jarin Udom', 'author_id': 574, 'author_profile': 'https://Stackoverflow.com/users/574', 'pm_score': 0, 'selected': False, 'text': '<p>You could theoretically modify the actual registry files, but I would highly discourage that idea.</p>\n'}, {'answer_id': 5245, 'author': 'Matt MacLean', 'author_id': 22, 'author_profile': 'https://Stackoverflow.com/users/22', 'pm_score': 1, 'selected': False, 'text': '<p>Are you trying to determine if the user is an administrator or not?</p>\n\n<p>If so you could grad the username by with "File.userDirectory.name".</p>\n\n<p>And I think to figure out if the user is an administrator you could probably try to access a file that requires administrator privileges (maybe try writing a file to Windows/System32). If the file access fails you could probably assume that the user is under a Limited account.</p>\n'}, {'answer_id': 5257, 'author': 'Brian Lyttle', 'author_id': 636, 'author_profile': 'https://Stackoverflow.com/users/636', 'pm_score': 0, 'selected': False, 'text': "<p>Be very careful if you decide to create a socket server that listens for registry commands. You are potentially creating a security hole and users' personal firewalls may get in the way in terms of usability.</p>\n"}, {'answer_id': 15721, 'author': 'RodeoClown', 'author_id': 943, 'author_profile': 'https://Stackoverflow.com/users/943', 'pm_score': 2, 'selected': False, 'text': "<blockquote>\n  <p>If you can I'd be horrified.</p>\n</blockquote>\n\n<p>Why would you be horrified?\nAir is a desktop platform, and having access to the OS's APIs (such as registry access) makes plenty of sense.</p>\n\n<p>That being said, it isn't supported now (and as Adobe seem to be very Mac-centric, I doubt it will ever be added). </p>\n\n<blockquote>\n  <p>I have settled on grabbing the users name from the name of the user directory</p>\n</blockquote>\n\n<p>Using File.userDirectory.name will work in most cases, but it seems like a very fragile implementation, it relies on the OS maintaining the convention of having the username as their directory. I can think of a few possible things that might break it (playing with TweakUI etc).</p>\n"}, {'answer_id': 947613, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 1, 'selected': False, 'text': '<p>A bit late, but I got a wish from a client to read some values from the registry when the project was almost finished. If there were more of these types of wishes, I would have never choosen AIR. But I found a nice extension from FluorineFx, and by extending it, I can now read string and dword values from the registry. Windows only: <a href="http://aperture.fluorinefx.com/" rel="nofollow noreferrer">http://aperture.fluorinefx.com/</a></p>\n'}, {'answer_id': 6458227, 'author': 'ming_codes', 'author_id': 387028, 'author_profile': 'https://Stackoverflow.com/users/387028', 'pm_score': 3, 'selected': False, 'text': '<p>I haven\'t tried this yet, but I think I\'ve found a workaround.</p>\n\n<p>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: <a href="http://www.adobe.com/devnet/air/flex/quickstart/articles/interacting_with_native_process.html" rel="noreferrer">http://www.adobe.com/devnet/air/flex/quickstart/articles/interacting_with_native_process.html</a></p>\n\n<p>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!</p>\n\n<p>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: <a href="http://www.robvanderwoude.com/regedit.php" rel="noreferrer">http://www.robvanderwoude.com/regedit.php</a></p>\n\n<p>Here are some additional resources:<br/>\n.reg file syntax: <a href="http://support.microsoft.com/kb/310516" rel="noreferrer">http://support.microsoft.com/kb/310516</a><br/>\nwrite to file with AIR: <a href="http://www.adobe.com/devnet/air/flex/articles/exploring_file_capabilities.html" rel="noreferrer">http://www.adobe.com/devnet/air/flex/articles/exploring_file_capabilities.html</a></p>\n'}, {'answer_id': 19550980, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 1, 'selected': False, 'text': '<p>Here is a sample of modifying Windows Registry in Adobe Air using NativeProcess and Python. So you can Add, Delete or Read keys by only a single line of code !!</p>\n\n<p>Download: <a href="https://github.com/yaa110/Adobe-Air-Registry-Modifier" rel="nofollow">Adobe Air Registry Modifier</a> on Github</p>\n'}]
['https://Stackoverflow.com/questions/3666', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/26/']