[wix-users] How to set default Directory value?

Souren souren at gmail.com
Mon Jul 11 03:59:52 PDT 2016


Hi,

ConfigurableDirectory is set properly in the feature tag.
The problem is not ConfigurableDirectory. actually if user is configuring
directory, then the feature is installed in new directory without problem.

Problem comes when I am trying to obtain the new value of configured
directory. this gives me the value which I set in SetDirectory instead of
new value.

On Mon, Jul 11, 2016 at 11:30 AM, sampat magi <ssmcs060 at gmail.com> wrote:

> hi souren,
>
> http://wixtoolset.org/documentation/manual/v3/xsd/wix/feature.html
>
> Read about ConfigurableDirectory attribute on the page.
>
> hope this resolves your issue.
>
> Regards,
> Sampat
>
> On Mon, Jul 11, 2016 at 2:47 PM, Souren <souren at gmail.com> wrote:
>
> > I wanted to have a default value for Directory, so every time user run
> > setup, same default value will apear as Directory, but in case user
> > customize the folder then component to be installed in new folder.
> >
> > So I used:
> >
> > <SetDirectory Id="DDD_FOLDER" Value="C:\DDD"/>
> >
> > Now everything works as expected, except that I in later operations
> where I
> > use "DDD_FOLDER" (for example set registry key value), it always points
> to
> > "C:\DDD", even if user customized directory.
> >
> > How to get the customized value of directory? Or if that won't play nice
> > with SetDirectory, how else can I set default(not fixed) value for
> > Directory?
> >
> > Thanks
> >
> > ____________________________________________________________________
> > WiX Toolset Users Mailing List provided by FireGiant
> > http://www.firegiant.com/
> >
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>


More information about the wix-users mailing list