private void MappedNode_Changed(WixDirectoryNode oldValue, WixDirectoryNode newValue) { if (oldValue != null) { UnmappedNodes.Add(oldValue); _wixProject.UnmapDirectory(Directory); } if (newValue != null) { UnmappedNodes.Remove(newValue); _wixProject.MapDirectory(Directory, newValue); } }