diff options
Diffstat (limited to '')
-rw-r--r-- | src/wix/heat/RegFileHarvester.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/wix/heat/RegFileHarvester.cs b/src/wix/heat/RegFileHarvester.cs index a3d181f2..b8b1d44d 100644 --- a/src/wix/heat/RegFileHarvester.cs +++ b/src/wix/heat/RegFileHarvester.cs | |||
@@ -14,7 +14,7 @@ namespace WixToolset.Harvesters | |||
14 | /// <summary> | 14 | /// <summary> |
15 | /// Harvest WiX authoring for a reg file. | 15 | /// Harvest WiX authoring for a reg file. |
16 | /// </summary> | 16 | /// </summary> |
17 | internal class RegFileHarvester : BaseHarvesterExtension | 17 | public class RegFileHarvester : BaseHarvesterExtension |
18 | { | 18 | { |
19 | private static readonly string ComponentPrefix = "cmp"; | 19 | private static readonly string ComponentPrefix = "cmp"; |
20 | 20 | ||
@@ -295,25 +295,25 @@ namespace WixToolset.Harvesters | |||
295 | value = parts[1].Substring(4); | 295 | value = parts[1].Substring(4); |
296 | type = Wix.RegistryValue.TypeType.binary; | 296 | type = Wix.RegistryValue.TypeType.binary; |
297 | } | 297 | } |
298 | else if (parts[1].StartsWith("dword:")) | 298 | else if (parts[1].StartsWith("dword:")) |
299 | { | 299 | { |
300 | // dword | 300 | // dword |
301 | value = parts[1].Substring(6); | 301 | value = parts[1].Substring(6); |
302 | type = Wix.RegistryValue.TypeType.integer; | 302 | type = Wix.RegistryValue.TypeType.integer; |
303 | } | 303 | } |
304 | else if (parts[1].StartsWith("hex(2):")) | 304 | else if (parts[1].StartsWith("hex(2):")) |
305 | { | 305 | { |
306 | // expandable string | 306 | // expandable string |
307 | value = parts[1].Substring(7); | 307 | value = parts[1].Substring(7); |
308 | type = Wix.RegistryValue.TypeType.expandable; | 308 | type = Wix.RegistryValue.TypeType.expandable; |
309 | } | 309 | } |
310 | else if (parts[1].StartsWith("hex(7):")) | 310 | else if (parts[1].StartsWith("hex(7):")) |
311 | { | 311 | { |
312 | // multi-string | 312 | // multi-string |
313 | value = parts[1].Substring(7); | 313 | value = parts[1].Substring(7); |
314 | type = Wix.RegistryValue.TypeType.multiString; | 314 | type = Wix.RegistryValue.TypeType.multiString; |
315 | } | 315 | } |
316 | else if (parts[1].StartsWith("hex(")) | 316 | else if (parts[1].StartsWith("hex(")) |
317 | { | 317 | { |
318 | // Give a better error when we find something that isn't supported | 318 | // Give a better error when we find something that isn't supported |
319 | // by specifying the type that isn't supported. | 319 | // by specifying the type that isn't supported. |
@@ -332,7 +332,7 @@ namespace WixToolset.Harvesters | |||
332 | type = 0; | 332 | type = 0; |
333 | return false; | 333 | return false; |
334 | } | 334 | } |
335 | else if (parts[1].StartsWith("\"")) | 335 | else if (parts[1].StartsWith("\"")) |
336 | { | 336 | { |
337 | // string | 337 | // string |
338 | value = parts[1].Substring(1, parts[1].Length - 2); | 338 | value = parts[1].Substring(1, parts[1].Length - 2); |