c++ - How to delete ProgIDs from other user accounts when uninstalling from Windows? -


I'm checking "with Windows (see) how a modern Windows C ++ application registers its file types should be done."

And when compounded through various MSDN articles on this topic, the summary appears is as follows:

  1. The installer ) Should register the global projected HKLM \ Software \ Classes \ my-app.my-doc [.version] (such as HKLM \ Software \ Classes \ TextPad.text)
  2. The installer defaults to its document types The Association also configures (such as my text) and points to the global progressed outlined in HLLM The literacy.
    Note: The user can be set here to allow all default associations to accept or optimize the organization here.
  3. Running standard (unchanged), the current user should provide a UI to allow his personal entities to be installed, as is available in the installer, except that they are HKCU \ Software \ Classes are stored in (not per machine, per machine).
  4. The UN-installer is then responsible for the removal of all registered ProgIDs (but the actual file associations should be left alone because Windows Smart is enough to handle organizations indicating the missing project, And it is the desired behavior specified by MSDN).

So I think the schema is appropriate, when I consider the # 4: how an uninstaller is running high for a given user account, step # Delete each-user ProgID created in 3?

As I understand things, even in high modes, an uninstaller can not go to another user's registry hive and remove items? Or can it? Does it have to load each given user hive first?

Edit: See below for the solution (my question was set in confusion)

What are the rules given here?

/ div>

As far as I know, the settings of other user accounts usually just left there. This file type is not limited to associations.

It is almost impossible to delete settings from all user accounts because some domains may have roaming profiles that are not currently connected, or local administrators

No access

Comments