Is there a sample WIX code.

Thanks,
Kavya

-----Original Message-----
From: Rob Mensching [mailto:r...@robmensching.com] 
Sent: Monday, February 14, 2011 10:15 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Create virtual folder for web applications

Sounds like you need to verify the value of TARGETVDIR before
InstallInitialize. An error custom action conditions with a string search
might do it. Check out
http://msdn.microsoft.com/en-us/library/aa368078(VS.85).aspx and
http://msdn.microsoft.com/en-us/library/aa368012(VS.85).aspx.

On Mon, Feb 14, 2011 at 12:38 PM, Konda, Kavya R <kavya.r.ko...@intel.com>wrote:

> Hi,
>
> I am new to WIX and i am trying to create multiple virtual directories in
> IIS pointing to subfolders in my application. I have been able to get it to
> create the virtual directories but the issue i am having is that it creates
> it for all the folders in the main folder (ABC). I only want to create for
> folders that start with the name XYZ. Here is a sample of what i am doing.
>
> <DirectoryRef Id="ABC">
>      <Component Id='XYZVirtualDir' Guid=my-guid>
>        <iis:WebVirtualDir Id ="XYZVirDir" Directory="ABC"
> Alias="[TARGETVDIR]" WebSite="DefaultWebSite" >
>           <iis:WebApplication Id="XYZVirApp" Name="[TARGETVDIR]">
>           </iis:WebApplication>
>        </iis:WebVirtualDir>
>          <CreateFolder/>
>      </Component>
>    </DirectoryRef>
>
> Can someone please tell me how to check that the virtual directory name
> starts with XYZ only then create the virtual dir in IIS. Any help is greatly
> appreciated.
>
> Thanks,
> KK
>
> ------------------------------------------------------------------------------
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>


-- 
virtually, Rob Mensching - http://RobMensching.com LLC
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to