I want to create a setup for my VB .NET project.

I have some sort of instruction and went through it step by step. But something I don't understand....

I want the setup to check if a specific entry exists in the registry. Therefore I added a registry search in the launch conditions. The name is Search for IBS.EXE, property is REGISTRYVALUE1, RegKey is the registry key to search for, including the path, root is vsdrrHKLM and value is empty. Then I added a condition. It's name is IBSSearch, Condition is NOT REGISTRYVALUE1 and message is not installed. But even if I rename the key in the registry to test my setup, everything is installed. Where's the mistake.

Another question is: how can I initialize the path where to install my program to an entry of the registry? I mean, I have a key in the registry e.g. named "path". And then the suggested installation path should be that value.

Thanks a lot.