[wix-users] [EXTERNAL] - Independent Directory element

Lewis Henderson henderso at opentext.com
Tue Jan 16 08:37:36 PST 2018

H Venkatesh,

I believe you can, but it's a little tricky.  Also, I'm not an expert, so this may violate "best practices".  I define a temporary directory for my installed product's work files.  I create a Directory element under the TARGETDIR element, and then override the path using a CA that prompts the user (with appropriate validation).  In any case, I believe you can override with a SetProperty element to set a property with the same Id as the Directory element.

Note that it's been a while since I developed this and while I vaguely remember using the SetProperty element during testing, I'm not absolutely sure about that.

I hope this helps.


-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Ven H via wix-users
Sent: Tuesday, January 16, 2018 11:17 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Ven H <venh.123 at gmail.com>
Subject: [EXTERNAL] - [wix-users] Independent Directory element

Can't I define an independent Directory element inside a separate fragment or component? If I do that, I get an error saying "The directory with the Id 'TestDir' is not a valid root directory. There may only be a single root directory per product or module and it's Id attribute value must be TARGETDIR and it's Name attribute value must be SourceDir. " Sorry for asking such a silly question, but I am new to WiX, so, please forgive me. I am a newbie and a learner and could use all the help. Hence, please help.


WiX Toolset Users Mailing List provided by FireGiant https://urldefense.proofpoint.com/v2/url?u=http-3A__www.firegiant.com_&d=DwICAg&c=ZgVRmm3mf2P1-XDAyDsu4A&r=yAhF6NGJ7EPmZkvswZOswwnYxaueKkO53V282tTn1P4&m=cF2FabcuDb2ddWMu9Ka-_LagFuHQv-IY1emvITVixck&s=1UaO2mO3MeD7fUxw93ncULFoSR4QtkK5U1kKJa8u7RA&e=

More information about the wix-users mailing list