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

Souren souren at gmail.com
Mon Jul 11 13:54:24 PDT 2016


The problem was solved by suggestion from Sampat Magi - adding
Sequence="ui" in SetDirectory.
Thanks mate!

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