How do I set a pre-defined directory to be configured to use a UNC share? Note 
that I want my web site to be installed to a local path, but I want the virtual 
directories under my web site to point to a network path. I tried also using a 
mapped network drive, but I get a validation error. This is what I tried to do:

<Directory Id="UPLOADEDFILES_FOLDER" Name="X:\UploadedFiles"/>

These are the error details:

c:\enlistments\pinmain\private\dev\Deployment\EktronUpdate\setup\EktronUpdate.wxs(17):
 error CNDL0027: The Directory/@Name attribute's value, 'X:\UploadedFiles', is 
not a valid long name because it contains illegal characters.  Legal long names 
contain no more than 260 characters and must contain at least one non-period 
character.  Any character except for the follow may be used: \ ? | > < : / * ".
c:\enlistments\pinmain\private\dev\Deployment\EktronUpdate\setup\EktronUpdate.wxs(17):
 error CNDL0205: The Directory with Id 'UPLOADEDFILES_FOLDER' is not a valid 
root directory.  There may only be a single root directory per product or 
module and its Id attribute value must be 'TARGETDIR' and its Name attribute 
value must be 'SourceDir'.
Done Building Project 
"c:\enlistments\pinmain\private\dev\Deployment\EktronUpdate\setup\wixmsi_EktronUpdate.wixproj"
 (BuildLinked target(s)) -- FAILED.
Error : [Project] 
c:\enlistments\pinmain\private\dev\Deployment\EktronUpdate\setup\wixmsi_EktronUpdate.wixproj
Done Building Project 
"c:\enlistments\pinmain\private\dev\Deployment\EktronUpdate\setup\wixmsi_EktronUpdate.wixproj"
 (default targets) -- FAILED.
  

-----Original Message-----
From: Blair [mailto:os...@live.com] 
Sent: Monday, November 15, 2010 12:34 PM
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] Creating virtual directories to UNC shares

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


------------------------------------------------------------------------------
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