Hi Blair,

I just want the installer WIx file to be more manageable as there are very 
large number of folders. So I just want to keep the same structre  as the root 
folder has.

The folders may contain XML, ASPX, CS and images.

And my next step would be creating Virtual Directories.

Thanks
Jaspreet Singh

________________________________________
From: Blair [os...@live.com]
Sent: Thursday, August 27, 2009 11:58 AM
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] Copy folder structure

Any particular reason you want one component per folder? That is generally
harder to service.

What kinds of files are in these folders (executable, versioned, text,
image)?

-----Original Message-----
From: Jaspreet Nabha [mailto:jaspreet.na...@headstrong.com]
Sent: Wednesday, August 26, 2009 11:17 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Copy folder structure

Thanks Sebastiaan..Its working now :)

There is a query related to autogenerated wix file. I want one component for
every sub directory. consider the following example :

Root
     ----- Folder 1
                    -------------Sub Folder
                                              ---------- file
                                              ---------- Sub Folder

-------------file

-------------file
     -----Folder 2
                    -------------Sub folder
                                             ----------file
                                             ----------fille

I want that there should be one component tag for all the files in sub
folders. Please share if you have any idea/code snippet

Thanks
Jaspreet Singh
________________________________________
From: Sebastiaan Deckers [c...@pandion.im]
Sent: Wednesday, August 26, 2009 4:50 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Copy folder structure

I'm new to WiX but this is how I solved the problem of packaging hundreds of
files in a directory:
http://github.com/pandion/pandion/tree/master/Installer/WiX

Heat will generate a huge WXS file that is then compiled and linked together
with the rest of the setup as an argument to candle and light.
My build script runs heat to harvest all files in the "Temp" directory and
places them in a ComponentGroup called "CoreFiles" and in the Directory
called "DESTINATION".
heat.exe dir "./Temp" -nologo -cg "CoreFiles" -dr "DESTINATION" -srd
-template:fragment -ke -gg -out "./components.wxs"

I then refer to CoreFiles and DESTINATION from my product.wxs file as
follows:

<Directory Id="LocalAppDataFolder" Name="PFiles">
  <Directory Id="PandionLocalFiles" Name="Pandion">
    <Directory Id="DESTINATION" Name="Application"/>
  </Directory>
</Directory>

<Feature Id="ProductFeature" Level="1" Title="Core Application">
  <ComponentGroupRef Id="CoreFiles"/>
  ...
</Feature>


Hope this helps.

Sebastiaan


On Wed, Aug 26, 2009 at 9:33 AM, Jaspreet Nabha <
jaspreet.na...@headstrong.com> wrote:

> Thanks Brand, It it generationg the WXS w/ any error, But every components
> is enclosed with fragmment tag.
> It would be great if you can give some sample which simply put the folder
> structure on user machine.
>
> For your reference I am using the below said WXS file, which put a file to
> user machine. I just want to know how can I use the authogenerated(with
> Heat.exe) WXS file in the below xml ?
>
>
----------------------------------------------------------------------------
-----------------
> <?xml version="1.0" encoding="UTF-8"?>
> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";
>
>  <Product Id="eb07f439-a13b-44e3-bc84-be303dbf1c26" Name="ANewWiX"
> Language="1033" Version="1.0.0.0"
>  Manufacturer="NewWiX" UpgradeCode="d04bed30-d811-4bac-8954-a3e09e253eaf">
>    <Package InstallerVersion="200" Compressed="yes" />
>    <Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />
>
>    <!--Path property-->
>     <Property
> Id="MYAPPPATH"><![CDATA[C:\Inetpub\wwwroot\FAWFramework\test]]></Property>
>
>    <Directory Id="TARGETDIR" Name="SourceDir">
>  <Directory Id="MYAPPPATH" Name="." >
>
>          <Component Id='MyComponent'
> Guid='12345678-1234-1234-1234-123456789012'>
>            <File Id='DLL' Name='abc.dll' DiskId='1' src='C:\abc.dll'  />
>
>          </Component>
>
>  </Directory>
>  </Directory>
>
>    <Feature Id="ProductFeature" Title="NewWiX" Level="1">
>   <ComponentRef Id="MyComponent" />
>  </Feature>
>
>  </Product>
>  </Wix>
>
>
----------------------------------------------------------------------------
-------------------------
>
> ________________________________________
> From: Sebastian Brand (Instyler Software)
[wix+us...@instyler.com<wix%2bus...@instyler.com>
> ]
> Sent: Wednesday, August 26, 2009 11:56 AM
> To: 'General discussion for Windows Installer XML toolset.'
> Subject: Re: [WiX-users] Copy folder structure
>
> You can suppress harvesting that using the -sreg argument in heat.exe.
> Sample:
> > heat dir c:\folder\with\files -out dynamic.wxs -ag -sreg
>
> -ag sets to component guid to "*" to have them autogenerated during
compile
> time.
>
>
> Best regards,
> Sebastian Brand
>
> Instyler Setup - Creating WiX-based MSI installations, elegantly.
> http://www.instyler.com
>
> -----Original Message-----
> From: Jaspreet Nabha [mailto:jaspreet.na...@headstrong.com]
> Sent: Wednesday, August 26, 2009 07:44
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Copy folder structure
>
> Blair,
>
> I have tried the HEAT.EXE, but it is giving me the error "Could not
harvest
> data from a file that was ecpected to be a assembly"
>
> I have some assemblies in the folder structure, which needs to be copied
on
> user machine.
>
> Please suggest for the solution
>
> Thanks
> Jaspreet
>
> ________________________________________
> From: Blair [os...@live.com]
> Sent: Wednesday, August 26, 2009 5:28 AM
> To: 'General discussion for Windows Installer XML toolset.'
> Subject: Re: [WiX-users] Copy folder structure
>
> Would some incantation of HEAT.EXE work?
>
> -----Original Message-----
> From: Jaspreet Nabha [mailto:jaspreet.na...@headstrong.com]
> Sent: Tuesday, August 25, 2009 4:02 AM
> To: General discussion for Windows Installer XML toolset.
> Subject: [WiX-users] Copy folder structure
>
> Hi All,
>
> I am using WiX3.0 and trying to copy a folder structure to user machine.
Th
> efolder structure is very huge in depth and i dont want to copy every
> single
> file.
>
> Can you please help me out from this problem.
>
> Thanks
> Jaspreet
>
> ***The information transmitted is intended only for the person or entity
to
> which it is addressed and may contain confidential and/or privileged
> material. Any review,retransmission,dissemination or other use of, or
> taking
> of any action in reliance upon, this information by persons or entities
> other than the intended recipient is prohibited. If you received this in
> error, please contact the sender and delete the material from any
> computer.***
>
>
>
----------------------------------------------------------------------------
> --
> 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
>
>
>
>
----------------------------------------------------------------------------
> --
> 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
>
> ***The information transmitted is intended only for the person or entity
to
> which it is addressed and may contain confidential and/or privileged
> material. Any review,retransmission,dissemination or other use of, or
> taking
> of any action in reliance upon, this information by persons or entities
> other than the intended recipient is prohibited. If you received this in
> error, please contact the sender and delete the material from any
> computer.***
>
>
>
----------------------------------------------------------------------------
> --
> 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
>
>
>
>
----------------------------------------------------------------------------
--
> 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
>
> ***The information transmitted is intended only for the person or entity
to
> which it is addressed and may contain confidential and/or privileged
> material. Any review,retransmission,dissemination or other use of, or
taking
> of any action in reliance upon, this information by persons or entities
> other than the intended recipient is prohibited. If you received this in
> error, please contact the sender and delete the material from any
> computer.***
>
>
>
----------------------------------------------------------------------------
--
> 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
>
----------------------------------------------------------------------------
--
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

***The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review,retransmission,dissemination or other use of, or taking
of any action in reliance upon, this information by persons or entities
other than the intended recipient is prohibited. If you received this in
error, please contact the sender and delete the material from any
computer.***

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


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

***The information transmitted is intended only for the person or entity to 
which it is addressed and may contain confidential and/or privileged material. 
Any review,retransmission,dissemination or other use of, or taking of any 
action in reliance upon, this information by persons or entities other than the 
intended recipient is prohibited. If you received this in error, please contact 
the sender and delete the material from any computer.***

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

Reply via email to