Skip to main content

[Migrated content. Thread originally posted on 01 March 2006]

Does anyone have a good way to check for the existence of a Windows Registry entry in a loop? I am waiting on a 3rd party application to be done with a job and I know that job is done when a certain Windows Registry entry no longer exists.

Currently, this is working on my computer and some others, but is not consistent. I'm just hoping there is a recommended way to do this and it's different than what I've tried.

Thanks,
Rob

[Migrated content. Thread originally posted on 01 March 2006]

Does anyone have a good way to check for the existence of a Windows Registry entry in a loop? I am waiting on a 3rd party application to be done with a job and I know that job is done when a certain Windows Registry entry no longer exists.

Currently, this is working on my computer and some others, but is not consistent. I'm just hoping there is a recommended way to do this and it's different than what I've tried.

Thanks,
Rob
Instead of using a loop, you can use the API call RegNotifyChangeKeyValue. You can tell it to "block" until a change is detected.

[Migrated content. Thread originally posted on 01 March 2006]

Does anyone have a good way to check for the existence of a Windows Registry entry in a loop? I am waiting on a 3rd party application to be done with a job and I know that job is done when a certain Windows Registry entry no longer exists.

Currently, this is working on my computer and some others, but is not consistent. I'm just hoping there is a recommended way to do this and it's different than what I've tried.

Thanks,
Rob
Instead of using a loop, you can use the API call RegNotifyChangeKeyValue. You can tell it to "block" until a change is detected.

[Migrated content. Thread originally posted on 01 March 2006]

Does anyone have a good way to check for the existence of a Windows Registry entry in a loop? I am waiting on a 3rd party application to be done with a job and I know that job is done when a certain Windows Registry entry no longer exists.

Currently, this is working on my computer and some others, but is not consistent. I'm just hoping there is a recommended way to do this and it's different than what I've tried.

Thanks,
Rob
Instead of using a loop, you can use the API call RegNotifyChangeKeyValue. You can tell it to "block" until a change is detected.