[wix-users] custom destination directory
shashank khadse
shashank.s.khadse at gmail.com
Tue May 31 01:16:22 PDT 2016
Hello Jacob,
Try something like this ....
<Property Id="WIXUI_INSTALLDIR" Value="SUBDIRECTORY" />
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFiles64Folder">
<Directory Id="INSTALLFOLDER" Name="MYFOLDER">
<Directory Id="MYINSTALLDIR" Name="MYINSTALLDIR">
<Directory Id="SUBDIRECTORY" Name="SUBDIR">
</Directory>
</Directory>
</Directory>
</Directory>
</Directory>
</Fragment>
Make sure that the Dierctory Ids are in uppser case to ensure that it is
accessible throughout the installation.
Hope this answers your query .
- shanky
On Fri, May 27, 2016 at 8:22 PM, Hoover, Jacob <Jacob.Hoover at greenheck.com>
wrote:
> Id != id
>
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf
> Of Lewie Fitz
> Sent: Friday, May 27, 2016 9:52 AM
> To: wix-users at lists.wixtoolset.org
> Subject: [wix-users] custom destination directory
>
> Hello,
>
> I would like my installer to default to a custom destination directory
> such as C:\Users\Public\AppName and let the user select a different
> directory if required. I see how to install to the programs directory (and
> other system dirs), but I can't find any info on setting up a custom
> directory. I tried creating a SetProperty entry, but I get error
> CNDL0010 : The SetProperty/@Id attribute was not found; it is required.
> This is what I am doing:
>
>
> <SetProperty id="PublicDir" Value="C:\Users\Public"/>
> <Directory Id="TARGETDIR" Name="SourceDir">
> <Directory Id="PublicDir">
> <Directory Id="APPLICATIONROOTDIRECTORY" Name="AppName"/>
> </Directory>
> </Directory>
>
>
> ---
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
>
>
> ____________________________________________________________________
> 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