Bugs item #1353964, was opened at 2005-11-11 13:54
Message generated for change (Settings changed) made by barnson
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: Closed
Resolution: Fixed
Priority: 5
Private: No
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-02-01 06: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

-------------------------------------------------------------------------
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-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to