Greetings I am faced with the task of automating the deletion of a section in the registry on a specific condition.
In the HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall section, you need to find the subkey containing the parameter (Name: "DisplayName" , Value: "Example" ) by the script, and delete this subsection.
The whole problem is that the subsection should be searched every time by the script, because it has a name like this: {B99E3435-0B06-210C-B1B8-5954D5ADF936}

  • I would venture to suggest that this name can be found in another registry key. Then the task will be reduced to obtaining a name, and not to search, which should be easier. - Vladimir Martyanov
  • It looks like this: joxi.ru/p2788qdcwjgJA7 So, unfortunately, the name is used only in the subsection: ( - Konstantin
  • Run REG.EXE and unload the specified branch to the stream. Pass the stream to FIND.EXE , leave only the line with the specified values. Pass it to FOR , where to parse into tokens and get the name of the partition. Build a command to delete the partition and run REG.EXE , passing this command to it. - Akina

0