Bugs item #1353964, was opened at 2005-11-11 14:54
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1353964&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: light
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Mc Grey (mcgrey)
Assigned to: Nobody/Anonymous (nobody)
Summary: Can't localize RegistrySearch 

Initial Comment:
Localization variables like $(loc.MyKey) are not
replaced in the RegLocator Table (<RegistrySearch ...
Key="$(loc.strMyKey)"  Name="$(loc.strMyVal)" ... />

Example: 

"Test.wxl"

<?xml version='1.0'?>
<WixLocalization
xmlns='http://schemas.microsoft.com/wix/2003/11/localization'
Codepage='1252'>
    <String Id='strMyKey'>SOFTWARE\MyKey\</string>
    <String Id='strMyVal'>Value</String>
</WixLocalization>

"Test.wxs"

<Wix xmlns="http://schemas.microsoft.com/wix/2003/01/wi";>
    <Product Id='A97D5F5B-3873-4E17-A585-71992574DA08'
Name='?' Language="0" Version='1.0.0.0' Manufacturer='???'>
        <Package
Id='????????-????-????-????-????????????'
Description='?' Comments='?' InstallerVersion='300'
Compressed='yes' />
        <Media Id='1' Cabinet='product.cab'
EmbedCab='yes' />        
        <Property Id="HERE_OK" Value="$(loc.strMyKey)" />
        <Property Id="HERE_OK_2"
Value="$(loc.strMyVal)" />        
        <Property Id="MYSEARCH">
            <RegistrySearch Id="RS" Root="HKLM"
Key="$(loc.strMyKey)" Type="raw" Name="$(loc.strMyVal)" />
        </Property>        
    </Product>
</Wix>

Test.msi created with Canle and Light 2.0.3309.0

RegLocator Table
RS   2   $(loc.strMyKey)   $(loc.strMyVal)   2

Property Table (No error)
HERE_OK     SOFTWARE\MyKeyHERE_OK_2     Value





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

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


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to