Bugs item #1353964, was opened at 2005-11-11 05:54
Message generated for change (Comment added) made by robmen
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: Pending
>Resolution: Fixed
Priority: 5
Submitted By: Mc Grey (mcgrey)
>Assigned to: Rob Mensching (robmen)
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\MyKey\
HERE_OK_2     Value





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

>Comment By: Rob Mensching (robmen)
Date: 2006-01-31 22:36

Message:
Logged In: YES 
user_id=991639

Agreed.

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

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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to