Place the user supplied path into a property that matches the Directory/@Id
that you want to have them supply.

This is the mechanism by which the "standard" installer directories are
populated. Look at the "Non-root Destination Directories" header on this
page: http://msdn.microsoft.com/en-us/library/aa368295(VS.85).aspx

If a property that matches the directory's "Id" already exists, CostFinalize
sets the directory path to the value of the property. If no property exists
by that name, one is created with a value assembled based on the parent
directory (according to the Directory table) and the DefaultDir column
(which has sections for long and short names for both "Source" and
"Destination"). The various attributes to the WiX Directory element (except
for Id) encode the DefaultDir column. 

-----Original Message-----
From: Lian Jiang [mailto:lji...@microsoft.com] 
Sent: Saturday, August 22, 2009 12:22 AM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Create any folder specified by user

Hi,

Without using custom action, can I use Wix to declaratively create a folder
whose path is specified by user during installation?

For example, my application is installed in C:\program files\myapp, and the
installer need to create a folder D:\anyfolder specified by the user during
installation. How can this be done?

Appreciate your advice.

Thanks
Lian
----------------------------------------------------------------------------
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus
on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to