Dhaval,

 

Thanks for your help.

My ASP.NET app has 150+ ASPX files. Is there a way to use wildcards in
WiX to include all files as one line (*.aspx)  or do I have to list all
files separately as <File> elements?

 

-Oleg.

 

________________________________

From: Dhaval Patel [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 19, 2007 12:21 AM
To: Ogurok, Oleg
Cc: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] package ASP.NET application

 

See the example here: http://www.tramontana.co.hu/wix/lesson6.php#6.3

Basically, the Directory element would contain all your *.aspx, *.js,
etc files. One thing the example doesn't mention is nested directories
(example, you may have an App_Code, App_Themes, etc) directories - if
you are using Visual Studio, Intellisense will help you figure out that
you can have nested Directory elements within the main Directory
element. Once you reach the root of that structure, just instantiate a
Component element and fill out the remaining stuff as per your needs.
Then from your WebVirtualDir, reference the main Directory ID, and from
the WebSite element, reference this WebVirtualDir ID. 

<Directory Id="WebStuff" Name="WA" LongName="Web Stuff">

<!-- THIS IS A SUB DIRECTORY -->
<Directory Id="bin" Name="bin"> 

          <Component Id="BinDir" DiskId="1"
Guid="YOURGUID-3114-4945-930D-67F73D4B65B7">

<File Id="ACCOMPILED" Name='ACC' LongName ='App_Code.compiled' 

                                    Source='Web\bin\App_Code.compiled'
Vital='yes' />
                               <File Id='ACCDLL' Name='ACD'
LongName='App_Code.dll' 
                                    Source='Web\bin\App_Code.dll'
Vital='yes' />

</Component>

</Directory>

<!-- THIS IS ANOTHER SUB DIRECTORY -->

          <Directory Id='Images' Name='Images'>

          <Component Id='ImagesDir' DiskId='1'
Guid='YOURGUID-ABD5-4146-A126-C23A7BD74DD0'> 

                    <File Id='CALGIF' Name='CAL' LongName='Calendar.GIF'

                              Source='Web\Images\Calendar.GIF'
Vital='yes' /> 

</Component>

</Directory>

          

<!-- HERE ARE YOUR ASPX & CONFIG FILES --> 

<Component Id="Web" DiskId="1"
Guid="YOURGUID-710E-4c6d-9D4C-3C4D97F67685">

<File Id="TestASPX" Name=' TT.aspx' LongName ='Test.aspx' 

                                Source='Web\Test.aspx' Vital='yes' />
                    <File Id="WebCONFIG" Name='WC.aspx' LongName ='
web.config' 
                                Source='Web\web.config' Vital='yes' />

</Component>

</Directory>

<Component Id='WebVirtualDir'
Guid='YOURGUID-D174-40d7-BC0B-73FD896E5036'> 

<WebVirtualDir Id='SomeID' Alias='WebStuff' 

          Directory='WebStuff' WebSite='DefaultWebSite'>

                    <WebApplication Id='WebApplication' Name='WebStuff'
/>
          </WebVirtualDir>
</Component>

<WebSite Id='DefaultWebSite' Description='Shows Web Stuff.'> 
            <WebAddress Id='AllUnassigned' Port='80'/>
</WebSite>


Happy WIX'in :)



On 1/18/07, Ogurok, Oleg <[EMAIL PROTECTED]> wrote:

Hi there,

 

I am migrating from the bult-in VS2005 web deployment project to WiX.

Could someone please provide a simple example of creating an MSI package
which will create a virtual directory in IIS and install all output
files (e.g. *.aspx, *.js) from a Visual Studio 2005 Web Deployment
Project?

 

I can't seem to figure out how to specify from where to copy the files.

 

Thanks,

 

-Oleg.

 


------------------------------------------------------------------------
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your 
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V

_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users 



 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to