[wix-users] Help with DirectorySearch & Setting Root Install Dicrectory
Hoover, Jacob
Jacob.Hoover at greenheck.com
Thu Jan 27 11:04:56 PST 2022
https://wixtoolset.org/documentation/manual/v3/xsd/wix/directorysearch.html
https://wix-users.narkive.com/VNqvtzfs/component-search
I haven't done this myself, but the way I am reading this, is if the KeyPath of the component referenced in the ComponentSearch is a Directory, then this should assign the Property to the path of the component (if found).
The DirectorySearch Id is just a unique identifier.
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Edwin Castro via wix-users
Sent: Thursday, January 27, 2022 12:58 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Edwin Castro <egcastr at gmail.com>
Subject: Re: [wix-users] Help with DirectorySearch & Setting Root Install Dicrectory
Perhaps PROGRAMS_ROOT is set by a custom action?
On Thu, Jan 27, 2022 at 10:05 AM Ven H via wix-users <
wix-users at lists.wixtoolset.org<mailto:wix-users at lists.wixtoolset.org>> wrote:
> 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?
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/<http://www.firegiant.com>
>
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/<http://www.firegiant.com/>
NOTE: This email was received from an external source. Please use caution when opening links or attachments in the message.
More information about the wix-users
mailing list