That error is thrown when an included file uses a prefix that is not declared 
in the parent file.

I'm adding code to properly identify and report the error; it should be in the 
next release after Monday.
________________________________
From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Fredrik Grohn [EMAIL 
PROTECTED]
Sent: Saturday, December 02, 2006 5:09 PM
To: 'Mike Dimmick'; 'Probir Chatterjee'; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Strange error

I don’t know much about the error in question here, sorry. However I noticed a 
different problem with the code in this example; the <File> element should not 
have a SelfRegCost attribute set. This would cause the DLL to be registered 
twice possibly resulting in unexpected behavior during runtime.

Fredrik

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Dimmick
Sent: Friday, November 10, 2006 12:27 AM
To: 'Probir Chatterjee'; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Strange error

That error message appears to be erroneously produced for any invalid XML: the 
catch handler in Preprocessor.cs which catches XmlException on loading the 
document (line 258) reports SP1ProbablyNotInstalled (error 147).

You might try adding the pca namespace to your root document's WiX element.

Alternatively, convert your <Include>s to <Fragment>s. Place your components 
under a <DirectoryRef> element. Then, remove the <?Include?> directives from 
your main .wxs file, compile the Fragments separately, and link them all 
together with light (specifying each .wixobj you need).

CWXCom.wxs:

<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2003/01/wi";
     xmlns:pca="http://schemas.microsoft.com/wix/2005/02/pubca";>
  <Fragment>
    <DirectoryRef Id="TARGETDIR">
      <Component Id="MyCOM_dll" DiskId="1" 
Guid="DB37D412-2DA6-46b8-866C-5FFA67163B17">
        <File Id="MyCOM_dll" Name="CWXBus_1.dll" 
LongName="CWXBusinessRulesII.dll" 
src="..\..\CWXBusinessRulesII\CWXBusinessRulesII.dl" KeyPath="yes" Vital="yes" 
SelfRegCost="1" />
        <pca:ComPlusApplication Id="MyCOM" Name="My COM+ Application">
          <pca:ComPlusAssembly Id="MyComPlusAssembly" Type="native" 
DllPath="[#MyCOM_dll]">
            <pca:ComPlusComponent Id="MyCOM" 
CLSID="8BAC1633-E462-4f56-97EF-E2D48BA61916" />
          </pca:ComPlusAssembly>
        </pca:ComPlusApplication>
      </Component>
    </DirectoryRef>
  </Fragment>
</Wix>

VS2005 has just told me that <Component> is not valid under <Include> according 
to the schema. The schema validation may be what’s causing the XmlException. 
I’m not sure why <Component> isn’t allowed when <File> and <Registry> are – 
surely this is also a bug?

--
Mike Dimmick

________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Probir Chatterjee
Sent: 09 November 2006 07:58
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Strange error
Importance: High

Hi Everyone,

I am trying to create an installer using WIX and it has started giving me 
strange problems.
I need to install 2 websites, 1 webservice, 1 db and a COM component.
I could do the 1st four without any problem, but when tried putting in the code 
for COM component I have run into a strange problem

On running candle.exe, I am receiving this error:
Candle.exe : error CNDL0147 : An error has occurred that most likely indicates 
that .NET framework 1.1 Service Pack 1 has not been installed. Please see the 
following website for more information about the service pack and how to 
install it : http://support.microsoft.com/?kbid=867460

I have installed .net framework 1.1 sp1 but the problem won’t go away

I am using the following file for candle and light:

d:\tools\wix-2.0.4415.0-binaries\candle.exe cwx_arabic.wxs  -ext 
Microsoft.Tools.WindowsInstallerXml.PcaCompiler,pcaext


d:\tools\wix-2.0.4415.0-binaries\light.exe -out cwx_arabic.msi 
cwx_arabic.wixobj D:\tools\wix-2.0.4415.0-binaries\wixui.wixlib 
D:\tools\wix-2.0.4415.0-binaries\sca.wixlib -loc 
D:\tools\wix-2.0.4415.0-binaries\WixUI_en-us.wxl 
D:\tools\wix-2.0.4415.0-binaries\pubca.wixlib -ext 
Microsoft.Tools.WindowsInstallerXml.PcaCompiler,pcaext

The code for my CWXCom.wxi looks like the following:

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

<Include xmlns="http://schemas.microsoft.com/wix/2003/01/wi";
     xmlns:pca="http://schemas.microsoft.com/wix/2005/02/pubca";>
  <Component Id="MyCOM_dll" DiskId="1" 
Guid="DB37D412-2DA6-46b8-866C-5FFA67163B17">
    <File Id="MyCOM_dll" Name="CWXBus_1.dll" LongName="CWXBusinessRulesII.dll" 
src="..\..\CWXBusinessRulesII\CWXBusinessRulesII.dl" KeyPath="yes" Vital="yes" 
SelfRegCost="1" />
    <pca:ComPlusApplication Id="MyCOM" Name="My COM+ Application">
      <pca:ComPlusAssembly Id="MyComPlusAssembly" Type="native" 
DllPath="[#MyCOM_dll]">
        <pca:ComPlusComponent Id="MyCOM" 
CLSID="8BAC1633-E462-4f56-97EF-E2D48BA61916" />
      </pca:ComPlusAssembly>
    </pca:ComPlusApplication>
  </Component>
</Include>


The main .wxs file refers the component as follows (I am only copy pasting the 
sections where the file is included and component is referred)

Include for the .wxi file

<?xml version="1.0"?>
<Wix xmlns="http://schema.microsoft.com/wix/2003/01/wi"; >

<Product
            Name="CWX Arabic $(var.Version)"
            Id="0E2C0DF6-6C0E-4b2c-8BC3-DF3EF65A2CDE"
            Language="1033"
            Codepage="1252"
            Version="1.0.0"
            Manufacturer="Admerex Pte Ltd"
    UpgradeCode='A36B2A00-805C-4530-842F-A6F967F14F40'
      >
……….
………..
<Directory Id='TARGETDIR' Name='SourceDir'>

<!--
      <Merge Id='CrystalReportMergeModule2' DiskId='1' Language='1033'  
SourceFile='..\..\..\lib\CRYSTAL_10_2_3600_0_MSM\Microsoft_VC80_ATL_x86.msm' 
FileCompression='yes'></Merge>
      <Merge Id='CrystalReportMergeModule3' DiskId='1' Language='1033'  
SourceFile='..\..\..\lib\CRYSTAL_10_2_3600_0_MSM\policy_8_0_Microsoft_VC80_ATL_x86.msm'
 FileCompression='yes'></Merge>
      <Merge Id='CrystalReportMergeModule1' DiskId='1' Language='1033'  
SourceFile='..\..\..\lib\CRYSTAL_10_2_3600_0_MSM\CrystalReportsRedist2005_x86.msm'
 FileCompression='yes'></Merge>
-->
      <?include cwx_arabic_web.wxi ?>

      <?include cwx_arabic_db.wxi ?>
      <?include HijriCal.wxi ?>
      <?include CWXWebService.wxi ?>

      <?include CWXCom.wxi ?>
</Directory>
………………
……………
…………
………..

   <ComponentRef Id="MyCOM_dll" />

……..
………..
………
</Wix>

What am I doing wrong here?!!! I am at the end of my wits, pls help! I haven’t 
tried running on a different machine, I will try to run and post the result 
here….
--

Probir Chatterjee
Developer
[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>

Mob: +65 8161 4490
Tel: +65 62586620
Fax: +65 62582317


[cid:image001.jpg@01C71680.1EE186B0]<http://www.admerexgroup.com/>

www.admerexgroup.com<http://www.admerexgroup.com>


The information contained in this e-mail message and attachments are 
confidential, privileged and intended solely for the receipt and usage of the 
named addressee(s) only. If you are not the intended recipient you must not 
copy, retain this message in any form, distribute, take any action reliant on, 
or disclose any details of the information in this e-mail to any other person 
or organisation. If you have received this e-mail in error, please notify the 
sender immediately.

Admerex Limited, and associated and subsidiary entities, does not warrant that 
our emails are virus free, therefore you should rely on your own virus scanning 
software before opening this e-mail and any attachments therein.

<<attachment: image001.jpg>>

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