I'm currently making a portable version of Adobe Photoshop CC. It's working fine now. However, some of the registry keys are generated and stored in HKLM (just trash keys and not important). I want to delete all these keys when the application exit to make it truely portable and leave no trace behind. I tried to run the program as Admin, put "RunAsAdmin" in Launch section, put the keys in [RegistryCleanupIfEmpty], [RegistryCleanupForce] but no help.
Is this a bug or I'm missing something?
- Keys that are under HKLM\SOFTWARE\Wow6432Node are deleted normally. Keys under HKLM\SOFTWARE cannot be deleted.
- I checked debug log and it shows a line which is: "Deleting registry key..." (for keys under HKLM\SOFTWARE). But no key is deleted.