Search code examples
visual-studio-2010setup-project

Visual Studio Installer: Move files from custom folder to TargetDir depends on the Registry Search value


I am creating a visual studio installer 2010 project. I have a custom folder which contain some files that needs to be installed only if the condition "search target machine by registry" returns a specific value. Below are the screenshots of the process I am following. But the condition seems to be not working.

Registry search screenshot:

File system editor custom folder properties:


Solution

  • There's not enough in the screen shot to show exactly where you are searching.

    However, you seem to have the condition on the folder, which doesn't work. It needs to be on all the files. Internally, the condition is a condition on the component being installed, not on the folder, in spite of the Visual Studio IDE apparently allowing it.