diff options
Diffstat (limited to 'src/wixext')
-rw-r--r-- | src/wixext/PSCompiler.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wixext/PSCompiler.cs b/src/wixext/PSCompiler.cs index 200d3fb4..74e18bd7 100644 --- a/src/wixext/PSCompiler.cs +++ b/src/wixext/PSCompiler.cs | |||
@@ -181,7 +181,7 @@ namespace WixToolset.PowerShell | |||
181 | wixVariableRow.Value = major.ToString(CultureInfo.InvariantCulture); | 181 | wixVariableRow.Value = major.ToString(CultureInfo.InvariantCulture); |
182 | wixVariableRow.Overridable = false; | 182 | wixVariableRow.Overridable = false; |
183 | 183 | ||
184 | int registryRoot = 2; // HKLM | 184 | RegistryRootType registryRoot = RegistryRootType.LocalMachine; // HKLM |
185 | string registryKey = String.Format(CultureInfo.InvariantCulture, KeyFormat, major, id); | 185 | string registryKey = String.Format(CultureInfo.InvariantCulture, KeyFormat, major, id); |
186 | 186 | ||
187 | this.ParseHelper.CreateRegistryRow(section, sourceLineNumbers, registryRoot, registryKey, "ApplicationBase", String.Format(CultureInfo.InvariantCulture, "[${0}]", componentId), componentId, false); | 187 | this.ParseHelper.CreateRegistryRow(section, sourceLineNumbers, registryRoot, registryKey, "ApplicationBase", String.Format(CultureInfo.InvariantCulture, "[${0}]", componentId), componentId, false); |
@@ -274,7 +274,7 @@ namespace WixToolset.PowerShell | |||
274 | 274 | ||
275 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, node); | 275 | this.ParseHelper.ParseForExtensionElements(this.Context.Extensions, intermediate, section, node); |
276 | 276 | ||
277 | int registryRoot = 2; // HKLM | 277 | RegistryRootType registryRoot = RegistryRootType.LocalMachine; // HKLM |
278 | string registryKey = String.Format(CultureInfo.InvariantCulture, KeyFormat, String.Format(CultureInfo.InvariantCulture, "!(wix.{0}_{1})", VarPrefix, snapIn), snapIn); | 278 | string registryKey = String.Format(CultureInfo.InvariantCulture, KeyFormat, String.Format(CultureInfo.InvariantCulture, "!(wix.{0}_{1})", VarPrefix, snapIn), snapIn); |
279 | 279 | ||
280 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, "File", fileId); | 280 | this.ParseHelper.CreateSimpleReference(section, sourceLineNumbers, "File", fileId); |