Hello everyone,

 

            We are stating using WiX. I'm searching for some help about
how to structure our wxs file. We have a lot (more than 60K) files. The
format we use currently is one file per component and one feature
containing all the components. I have to build patch between minor
version that remove, update and add new files. Is there any best
practices or suggestions?

 

I did some tests. I correctly generated a setup. I tried the patching
system with pyro. I based my Patch.wxs on the Peter Marcu's Blog sample.
My sample did work but it's took long time to generate the patch for
only one file modified. Pyro looks to do a binary compare on each file
can we specify to check if the file date have changed if not skip to the
next file?

 

Now I'm trying with a smaller set of files to test removed files and
added files into a patch but I get this error 

 

C:\delivery\Dev\wix\src\ext\uiextension\wixlib\Common.wxs(73) : error
PYRO0103 : The system cannot find the file
'C:\delivery\Target\wix\x86\ship\lang-neutral\PrintEula.dll'.

 

I'm currently updating my sdk to build wix. And get the dll

 

Thanks you for yours advices.

 

Best Regards,

 

Patrice Lamarche

 

There is a sample of my wxs

 

Setup.wxs

<?xml version="1.0" encoding="utf-8"?>

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>

   <Product Id="{955BA1D1-594E-4678-AD9B-785038FEBC47}" Language="1033"
Manufacturer="Blabla Inc." Name="v1.00.00"
UpgradeCode="{DD431266-3725-4BBB-902A-936CDFD95CA5}" Version="1.00.00">

       <Package Compressed="yes" InstallerVersion="300" />

       <Upgrade Id="{DD431266-3725-4BBB-902A-936CDFD95CA5}">

           <UpgradeVersion OnlyDetect='yes' Property='PATCHFOUND'
Minimum='1.00.00' IncludeMinimum='yes' Maximum='1.00.00'
IncludeMaximum='yes' />

           <UpgradeVersion OnlyDetect='yes' Property='NEWERFOUND'
Minimum='1.00.00' IncludeMinimum='no' />

       </Upgrade>

       <Directory Id='TARGETDIR' Name='SourceDir'>

           <Directory Id='ProgramFilesFolder' Name='PFiles'>

               <Directory Id='Blabla' Name='Blabla'>

                   <Directory Id='INSTALLDIR' Name='Bla'>

<Directory Id="data_1" Name="Data">

<Component Id="bla.build_1"
Guid="{6CB5A96B-2470-4F61-A237-8B8FC9853BCC}">

<File Id="bla.build_1" Name="bla.build" KeyPath="yes"
Source="x:\Data\bla.build" DiskId="1" />

</Component>

<Component Id="bladata.build_1"
Guid="{7743C10F-109D-4209-9B67-361D24AB3D21}">

<File Id="bladata.build_1" Name="blaData.build" KeyPath="yes"
Source="x:\blaData.build" DiskId="1" />

</Component>

<Component Id="bladata.ss.build_1"
Guid="{FD92FBF9-BAF0-4730-A263-CC646B91914D}">

<File Id="bladata.ss.build_1" Name="blaData.ss.build" KeyPath="yes"
Source="x:\blaData.ss.build" DiskId="1" />

</Component>

......

<Feature Id="bla" Level="1" Title="Bla 1.00.00">

<ComponentRef
Id="log4net.appender.appenderskeleton.activateoptions.html_1" />

<ComponentRef Id="banksinmultibootdlg.cpp_1" />

<ComponentRef Id="gxtevbias.html_1" />

<ComponentRef Id="log4net.core.logimpl.errorformat_overload_3.html_1" />

<ComponentRef Id="t_5_025.cpp_1" />

<ComponentRef Id="test_list.vcproj_1" />

<ComponentRef Id="doc2.htm_1" />

.....

 

Patch.wxs

 

<?xml version="1.0" encoding="UTF-8"?>

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>

  <Patch

      AllowRemoval="yes"

      Manufacturer="Bla"

      MoreInfoURL="http://www.bla.com/";

      DisplayName="Bla 1.00.00 to 1.00.01"

      Description="Patch Sample"

      Classification="Update"

        >

 

    <Media Id="5000" Cabinet="RTM.cab">

      <PatchBaseline Id="RTM"/>

    </Media>

 

    <PatchFamilyRef Id="BlaPatch"/>

  </Patch>

 

  <Fragment>

    <PatchFamily Id="BlaPatch" Version='1.00.01' Supersede='yes'>

    </PatchFamily>

  </Fragment>

</Wix>

 

 

 

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to