So I am using Heat at build time to generate a wxs fragment

    <Exec Command="&quot;$(WixTools)\heat.exe&quot; dir 
$(DropLocation)\$(BuildNumber)\abc\ -gg -cg cmpGrp -var var.abcPath -dr dirABC 
-o $(branchSolutionRoot)\src\DeploymentServices\InstallPackage\abcFrag.wxs"/>

The problem I am having is that below I need to reference that directory that 
was generated in the fragment so I can use it to create my virtual 
directory/web application.  The problem I seem to be having is that it creates 
an extra folder depth using this way.  So for example, the frag that gets 
generated above has

<DirectoryRef id="dirABC">
   <Directory id="dirGUID" Name="abc"/>
</Directory>

So when the folder structure gets create I get C:\Product Name\abc\abc\files.  
Well I didn't want that extra folder depth of abc.  I thought I could maybe 
change it so that during Heat I have the -dr INSTALLLOCATION but then on my 
webvirtualdir Directory attribute can I still put dirABC (even thought that is 
a directoryRef ID?

        <Directory Id="TARGETDIR" Name="SourceDir">
                <Directory Id="INSTALLLOCATION" Name="Product Name">
        <Directory Id="dirABC" Name="abc">
          <Component Id="WebServiceDirectory" 
Guid="a0ecf105-aea9-4df6-8c50-a3627270e5ed">
            <CreateFolder />
            <iis:WebVirtualDir Id="abcWebService" Alias="abcWebService" 
Directory="dirABC" WebSite="DefaultWebSite">
              <iis:WebApplication Id="abcWebApplication" Name="abcWebService" 
WebAppPool="ReportingSolutionsAppPool" />
            </iis:WebVirtualDir>
          </Component>
        </Directory>


________________________________
The information contained in this message may be confidential and legally 
protected under applicable law. The message is intended solely for the 
addressee(s). If you are not the intended recipient, you are hereby notified 
that any use, forwarding, dissemination, or reproduction of this message is 
strictly prohibited and may be unlawful. If you are not the intended recipient, 
please contact the sender by return e-mail and destroy all copies of the 
original message.
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to