From 156ccd9db15eafe6b4fef72097dfa04337599f91 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Thu, 22 Dec 2022 16:39:29 -0800 Subject: Fix RegistrySymbol creation helper for non-string types Fixes 7108 --- .../WixToolset.Extensibility/Services/IParseHelper.cs | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'src/api') diff --git a/src/api/wix/WixToolset.Extensibility/Services/IParseHelper.cs b/src/api/wix/WixToolset.Extensibility/Services/IParseHelper.cs index 567b623c..3c20c14b 100644 --- a/src/api/wix/WixToolset.Extensibility/Services/IParseHelper.cs +++ b/src/api/wix/WixToolset.Extensibility/Services/IParseHelper.cs @@ -104,8 +104,21 @@ namespace WixToolset.Extensibility.Services /// The registry entry name. /// The registry entry value. /// The component which will control installation/uninstallation of the registry entry. - /// If true, "escape" leading '#' characters so the value is written as a REG_SZ. - Identifier CreateRegistrySymbol(IntermediateSection section, SourceLineNumber sourceLineNumbers, RegistryRootType root, string key, string name, string value, string componentId, bool escapeLeadingHash); + /// The registry value type. Default is string. + /// The way to apply the registry value. Default is write. + Identifier CreateRegistrySymbol(IntermediateSection section, SourceLineNumber sourceLineNumbers, RegistryRootType root, string key, string name, string value, string componentId, RegistryValueType valueType = RegistryValueType.String, RegistryValueActionType valueAction = RegistryValueActionType.Write); + + /// + /// Creates a numeric Registry symbol in the active section. + /// + /// Active section. + /// Source and line number of the current symbol. + /// The registry entry root. + /// The registry entry key. + /// The registry entry name. + /// The numeric registry entry value. + /// The component which will control installation/uninstallation of the registry entry. + Identifier CreateRegistrySymbol(IntermediateSection section, SourceLineNumber sourceLineNumbers, RegistryRootType root, string key, string name, int value, string componentId); /// /// Create a WixSimpleReference symbol in the active section. -- cgit v1.2.3-55-g6feb