Then you will need to create another additional directory branch:
And now set TOOLSDIR property the same way as in my prev example.
Keep in mind that as an alternative to events you you can also play with the dedicated RegValueProperty actrion
new Dir(@"%ProgramFiles%\My Company\My Product", new File(@"..\Files\bin\MyApp.exe"), new Dir("Docs", new File("readme.txt"))), new Dir(new Id("TOOLSDIR"), "Tools", new File("setup.cs")),
Keep in mind that as an alternative to events you you can also play with the dedicated RegValueProperty actrion
new RegValueProperty("TOOLSDIR", RegistryHive.CurrentUser, @"SOFTWARE\7-Zip", "Path", defaultValue: @"C:\My Company\tools")