I don't believe this is directly supported in Flash or AIR (although I could be wrong).
Could be a neat addition to AIR though (Flash will likely be unable to do it - browser content modifying system services - not a good idea).
Please add a request for this feature to the AIR section on http://ideas.adobe.com
NOTE: You could accomplish this in AIR 2 using the new NativeProcess & Native Installer features - but I got the impression you were looking for something to use directly in AS3.
Moved discussion to the Adobe AIR Development forum