logo       

[ wix-Bugs-1273447 ] Can't put RegLocator inside DrLocator: msg#00142

windows.devel.wix.devel

Subject: [ wix-Bugs-1273447 ] Can't put RegLocator inside DrLocator

Bugs item #1273447, was opened at 2005-08-25 14:42
Message generated for change (Settings changed) made by robmen
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1273447&group_id=105970

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: candle
>Group: v2.0
Status: Open
Resolution: None
Priority: 5
Submitted By: Jeff Lawson (bovineone)
>Assigned to: Rob Mensching (robmen)
Summary: Can't put RegLocator inside DrLocator

Initial Comment:
I need to be able to represent this MSI relationship,
which seems disallowed:

Table "AppSearch"
Property="INSTALLDIR", Signature="_olddir"

Table "DrLocator"
Signature="_olddir", Parent="_oldexe1", Path="", Depth=0
Signature="_olddir", Parent="_oldexe2", Path="", Depth=0

Table "RegLocator"
Signature="_oldexe1", ....., Type="File"
Signature="_oldexe2", ....., Type="File"

Table "Signature"
Signature="_oldexe1", .....
Signature="_oldexe2", .....

The representation I would need is:

<Property Id="INSTALLDIR">
<DirectorySearch Id="_olddir" Depth="0">
<RegistrySearch Id="_oldexe1" Root="HKLM"
Key="Software\MyCompany\MyProgram" Name="Executable"
Type="file">
<FileSearch Id="_oldexe1" Name="PROGRAM1.EXE"
MinSize="200000" MaxSize="4000000" />
</RegistrySearch>
</DirectorySearch>

<DirectorySearch Id="_olddir" Depth="0">
<RegistrySearch Id="_oldexe2" Root="HKLM"
Key="Software\MyCompany\MyProgram" Name="Executable"
Type="file">
<FileSearch Id="_oldexe2" Name="PROGRAM2.EXE"
MinSize="200000" MaxSize="4000000" />
</RegistrySearch>
</DirectorySearch>
</Property>

However, this produces the error:

error CNDL0005 : The DirectorySearch element contains
an unexpected child element 'RegistrySearch'.

But I think if that were fixed, it would still probably
fail with something like:

error LGHT0112 : Duplicate symbol 'DrLocator:_olddir//'
found.


I have not had any problems with the 4 table
relationship (at the top of this report) when I was
previously using msi2xml/xml2msi and the Orca
validators have never indicated that this was an
invalid relationship.

Is what I have been doing actually illegal, or is
wix/candle erroroneously stringent?

----------------------------------------------------------------------

Comment By: Jeff Lawson (bovineone)
Date: 2005-08-31 10:39

Message:
Logged In: YES
user_id=511066

I've temporarily been able to work around this limitation by
hand-generating a .wxsobj object file containing a
"fragment" with the necessary raw table rows. I can then
link that into the rest of my Wix project without problems,
but I agree it would be nice for this syntax to be natively
supported.

----------------------------------------------------------------------

Comment By: Rob Mensching (robmen)
Date: 2005-08-31 00:33

Message:
Logged In: YES
user_id=991639

This is a limitation in the WiX representation of the Search
elements. The Locator tables don't map to a heirarchy well
and the WiX schema doesn't handle all cases. This is a bug
that needs to be fixed. It just isn't simple.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1273447&group_id=105970


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise