I tried the following DOS reg delete command on the system with no success. It completed but didn’t delete the registry key that followed. If you have any ideal why it didn’t delete the key, it is really needed!!
I, tested the following method that was mentioned by Noah, with no success. Can you assist with another example that I can try. I know you have to create the del.reg file, which can be created with the appendfile.
Ah… You are hitting the old escaping “{” problem… “{” is a special character in actionscript because that is how you embed relevance… Add another “{” to escape it:
// basically these two delete lines are here for safety just-in-case a file with the same name already exists… It is
// ahabit we got into to avoid rare errors, but mostly not necessary
delete __appendfile
delete regdel.reg
// the next two appendfile lines simply make a file “__appendfile” with this information
appendfile REGEDIT4
appendfile -HKEY_CLASSES_ROOT\CLSID{{D51BD5A3-7548-11CF-A520-0080C77EF58A}
// we now rename the “__appendfile” to "regdel.reg"
move __appendfile regdel.reg
// we now run “regedit /s” that is the command to import into the registry and feed it the file we made…
wait regedit /s regdel.reg
Arguably we could simplify this to remove a few lines, but the previous way should be slightly less error prone:
Also, if you want more information about how to use the ActionScript commands “wait”, “appendfile”, and “move” then you should checkout these two resources: