Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heat incorrectly handles multi-line registry values #4477

Open
wixbot opened this issue Jul 21, 2014 · 2 comments
Open

Heat incorrectly handles multi-line registry values #4477

wixbot opened this issue Jul 21, 2014 · 2 comments
Milestone

Comments

@wixbot
Copy link

wixbot commented Jul 21, 2014

Heat incorrectly handles multi-line registry values

Example

IDE: Visual Studio 2013

WiX version: 3.8

Pre-build Event Command Line: "%WIX%\bin\heat.exe" reg "$(ProjectDir)input.reg" -o "$(ProjectDir)output.wxs" -cg RegistryUpdate -gg

input.reg

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\TestManufacturer\TestProduct\TableQuery1]
"Name"="TestQuery1"
"Query"="SELECT Count(*)
FROM TestTable1
where ($Id$=0) OR (FullName LIKE '$FullName$.%')"
"Table"="TableQuery1"
"Title"="$FullName$"

output.wxs

<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
    <Fragment>    
        <ComponentGroup Id="RegistryUpdate">        
            <Component Id="cmp096292E1E242107031AB14AC54715402" Directory="TARGETDIR" Guid="{6CEC1221-069E-4173-8622-295A2FE98DE0}" KeyPath="yes">            
                <RegistryKey Key="SOFTWARE\TestManufacturer\TestProduct\TableQuery1" Root="HKLM">                
                    <RegistryValue Name="Name" Value="TestQuery1" Type="string" />                    
                    <RegistryValue Name="Query" Value="SELECT Count(*" Type="string" />                    
                </RegistryKey>                
            </Component>            
        </ComponentGroup>        
    </Fragment>    
</Wix>

Notes

  1. File input.reg was created by exporting one of the registry keys.
  2. WiX is unable to handle string value "Query".
  3. Combination 0x0D 0x0D 0x0A is used to break lines in "Query".

Originally opened by aazimovets

@wixbot
Copy link
Author

wixbot commented Jul 22, 2014

How so? Please provide a sample registry value and the Heat output.

Originally posted by barnson

@wixbot
Copy link
Author

wixbot commented Aug 1, 2014

Release changed from v3.8 to v3.x

@wixbot wixbot added this to the v3.x milestone Dec 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant