[wix-users] Help with DirectorySearch & Setting Root Install Dicrectory

Ven H venh.123 at gmail.com
Thu Jan 27 10:04:16 PST 2022


I have an existing WiX Project which has an element like below.

 <Property Id="MY.CUSTOM.SERVICE">
      <ComponentSearch Id="SearchServiceComponent" Guid="Custom-GUID">
        <DirectorySearch Id="GetMyCustomServiceComponentFolder" />
      </ComponentSearch>
    </Property>

I was under the impression that the DirectorySearch Id namely
"GetMyCustomServiceComponentFolder" is a method which might be defined
somewhere. But I couldn't find it anywhere. So, I am not sure what it means
or how it works. Can anyone please help me understand how this
DirectorySearch works and what that ID signifies?

Also, I have a PROGRAMS_ROOT which is configured to be the root folder for
installation. Again, I searched a lot in the source and in the WiXLib
source also, but couldn't locate it. However, the log says setting Property
PROGRAMS_ROOT to C:\Program Files\Org. Not sure where or how.

Moreover, I want to override this install directory PROGRAMS_ROOT from
Registry Search (32 bit). Can anyone please help me with the snippet?


More information about the wix-users mailing list