The FileSource attribute to the Directory element provides a hint to the
toolset where to find the files that you place in components that are
installed to that directory. Its value is not preserved in the MSI anywhere
and thus is only available at build time, not at runtime.

The directory tree doesn't automatically have any directories using UNC
shares unless one of the pre-defined directories was somehow configured to
use a UNC share. If you need your web site to use a UNC share instead of an
install-local path, you need to set the directory's value to that path
yourself at an appropriate place in your installation sequence.

-----Original Message-----
From: Johanna Hawkins (ORTIZ) [mailto:johan...@microsoft.com] 
Sent: Monday, November 15, 2010 9:20 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Creating virtual directories to UNC shares


I need to create a virtual directory within my application that points to a
UNC share in another machine. Is this supported or should I use a custom
action for this?

I tried this but it didn't work, the virtual directory got created to the
local path, not the UNC share:

<DirectoryRef Id="WEBROOTDIR">
      <Directory Id="EKTRONWEB_FOLDER" Name="Ektron Web">
        <Directory Id="UPLOADEDFILES_FOLDER" Name="UploadedFiles"
FileSource="\\[ASSET_SERVER_MACHINE_NAME]\UploadedFiles<file:///\\[ASSET_SER
VER_MACHINE_NAME]\UploadedFiles>"></Directory>
        <Directory Id="UPLOADEDIMAGES_FOLDER" Name="UploadedImages"
FileSource="\\[ASSET_SERVER_MACHINE_NAME]\UploadedImages<file:///\\[ASSET_SE
RVER_MACHINE_NAME]\UploadedImages>"></Directory>
      </Directory>
    </DirectoryRef>

    <iis:WebDirProperties Id="EktronWebProperties" Read="yes" Execute="yes"
AnonymousAccess="yes" />

    <DirectoryRef Id="EKTRONWEB_FOLDER">
      <Component Id="EktronWebComponent"
Guid="6035E5D1-5C57-4137-9591-422E47CD78EA" Win64="yes">
        <iis:WebSite Id="EktronWebSite" Description="Ektron Web Site"
Directory="EKTRONWEB_FOLDER" ConfigureIfExists="yes">
          <iis:WebAddress Id="EktronWebSiteAddress" Port="[EKTRONWEB_PORT]"
/>
          <iis:WebVirtualDir Id="UploadedFilesVirDir"
DirProperties="EktronWebProperties" Directory="UPLOADEDFILES_FOLDER"
Alias="UploadedFiles"></iis:WebVirtualDir>
          <iis:WebVirtualDir Id="UploadedImagesVirDir"
DirProperties="EktronWebProperties" Directory="UPLOADEDIMAGES_FOLDER"
Alias="UploadedImages"></iis:WebVirtualDir>
        </iis:WebSite>
      </Component>
    </DirectoryRef>
----------------------------------------------------------------------------
--
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to