I tried IIsExtension first. I only saw functionality for installing virtual directories that refer to directories installed by the package. I need to install virtual directories that refer to arbitrary locations on the filesystem or on a network share. When a network share is specified, I also need to specify credentials for connecting to the share. I did not find that functionality in IIsExtension. Did I miss something?
-----Original Message----- From: Rob Mensching [mailto:r...@robmensching.com] Sent: Thursday, December 03, 2009 12:18 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] IIS virtual directory Why not use the WixIisExtension. It will correctly support upgrade, patching and rollback which your script below won't. <smile/> On Mon, Nov 30, 2009 at 7:46 AM, Chris Carlson <ccarl...@npr.org> wrote: > I need to create a tree of virtual directories in IIS. The root of the > tree will refer to directories installed by my package, but I need at > least one folder in the tree to refer to a directory not installed by my > package; this could be a local folder or a network share. Is there a > way to create virtual directories for arbitrary local folders or network > shares with IIsExtension? > > I tried creating a VBScript CA to configure directories using the IIS > ADSI provider, but it doesn't set any properties on the directories when > called by the Windows Installer. Calling the same script using cscript > or wscript configures the virtual directories as expected. > > The relevant portion of my VBScript CA code is as follows: > > --------------BEGIN-------------- > Set oParent = GetObject("IIS://localhost/W3SVC/1/Root/MyApplication") > Set oVDir = oParent.Create("IIsWebVirtualDir", "data") > oVDir.Put "Path", Session.Property("DATA_FOLDER_PATH") > oVDir.Put "AccessRead", True > oVDir.Put "UNCUserName", Session.Property("IIS_USERNAME") > oVDir.Put "UNCPassword", Session.Property("IIS_PASSWORD") > oVDir.SetInfo > --------------END-------------- > > Any assistance would be appreciated. I'm using WiX 3.0 and I'm in no > way attached to my VBScript CA. > > Thanks > > Chris > > > ------------------------------------------------------------------------ ------ > 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 > > -- virtually, Rob Mensching - http://RobMensching.com LLC ------------------------------------------------------------------------ ------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your desk. Your couch. Anywhere. http://p.sf.net/sfu/redhat-sfdev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users