O'Reilly logo
  • Chris Kang thinks this is interesting:

Even though we've placed this component inside a DirectoryRef element, that references the MyProgramDir directory, it won't really be copied there since we're installing it to the GAC. Another approach is to create a dummy folder called GAC that's used solely for this purpose. In that case, you wouldn't give that Directory a Name attribute, which would prevent it from truly being created.

From

Cover of WiX 3.6: A Developer's Guide to Windows Installer XML

Note

Is DirectoryRef really needed? Can the component be on its own with Assembly=".net" attribute?