[wix-users] Why does UIRef has to be under Directory Fragment?
Shintaro Takechi
devst119 at gmail.com
Fri Nov 6 13:01:14 PST 2020
Thanks Edwin,
I did not know that Product is the root of fragments.
Reading the Product Element page, it is stated that
> The Product element is analogous to the main function in a C program.
I guess what I was doing was implementing a method without calling that
method.
On Fri, Nov 6, 2020 at 10:58 AM Edwin Castro <egcastr at gmail.com> wrote:
> There is always a "root" fragment which pulls in all fragments referenced
> directly or indirectly by that "root" fragment. For an MSI project the
> "root" fragment is <Product> which is a special fragment with additional
> requirements.
>
> So, if your <Product> or some fragment that is directly or indirectly
> referenced by <Product> references anything inside the fragment including
> the UIRef, then you're good. I would suspect nothing is referencing the
> <Directory> defined in the fragment with the UIRef so the fragment doesn't
> get pulled in.
>
> --
> Edwin G. Castro
>
>
> On Thu, Nov 5, 2020 at 3:41 PM Shintaro Takechi via wix-users <
> wix-users at lists.wixtoolset.org> wrote:
>
>> Thanks Hoover, but Fragment does not have ID.
>> Yes the directory is referenced, but fragment that contains that directory
>> is not referenced.
>> With that, wouldn't the UIRef be pulled in just like Directory?
>> How does WiX determine which Fragment to pull in and not pull in?
>>
>> On Tue, Nov 3, 2020 at 7:43 AM Hoover, Jacob <Jacob.Hoover at greenheck.com>
>> wrote:
>>
>> > Doesn’t need to be under anything, but something needs to reference the
>> > fragment to “pull it in”
>> >
>> >
>> >
>> > *From:* wix-users <wix-users-bounces at lists.wixtoolset.org> *On Behalf
>> Of *Shintaro
>> > Takechi via wix-users
>> > *Sent:* Monday, November 2, 2020 5:07 PM
>> > *To:* WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
>> > *Cc:* Shintaro Takechi <devst119 at gmail.com>
>> > *Subject:* [wix-users] Why does UIRef has to be under Directory
>> Fragment?
>> >
>> >
>> >
>> > Hi All,
>> >
>> > I had the rare opportunity to start making a WiX installer from scratch
>> > again.
>> > It has been a while so I stumbled upon a couple things but following is
>> the
>> > biggest question I have.
>> >
>> > I am making custom dialogs and am adding an UI with InstallUISequence
>> in it
>> > with the first dialog being <Show Before="ExecuteAction">.
>> >
>> > Now I thought it was all good, but the UI did not show up.
>> >
>> > Turns out that I did not place my UIRef underneath my directories
>> fragment.
>> > Instead, I had its own fragment.
>> >
>> > Referring to this link (
>> >
>> >
>> https://wixtoolset.org/documentation/manual/v3/wixui/dialog_reference/wixui_installdir.html
>> )
>> > ,
>> > I see that UIRef is placed underneath the directory fragment.
>> >
>> > Why is this? Why do I need to call UIRef underneath directories and
>> nowhere
>> > else?
>> >
>> > This may be a very basic and fundamental question, but I had to ask.
>> >
>> > Thank you.
>> >
>> > ____________________________________________________________________
>> > WiX Toolset Users Mailing List provided by FireGiant
>> > http://www.firegiant.com/
>> >
>> > NOTE: This email was received from an external source. Please use
>> caution
>> > when opening links or attachments in the message.
>> >
>>
>> ____________________________________________________________________
>> WiX Toolset Users Mailing List provided by FireGiant
>> http://www.firegiant.com/
>
>
More information about the wix-users
mailing list