diff options
| author | Rob Mensching <rob@firegiant.com> | 2021-03-01 23:44:34 -0800 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2021-03-02 02:21:22 -0800 |
| commit | 166186a5831bd515939544a8f662938d5ae755e3 (patch) | |
| tree | 35b3c4b3d0ef0bb7ea128197ffa22955a1d49590 /src/WixToolset.Core.WindowsInstaller | |
| parent | 85e611c40c3c8bf3ff3b06b52d53d046bc8ff392 (diff) | |
| download | wix-166186a5831bd515939544a8f662938d5ae755e3.tar.gz wix-166186a5831bd515939544a8f662938d5ae755e3.tar.bz2 wix-166186a5831bd515939544a8f662938d5ae755e3.zip | |
Support the new names for AccessModifiers
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller')
6 files changed, 13 insertions, 13 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/AssignMediaCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/AssignMediaCommand.cs index 301c3246..f6c61866 100644 --- a/src/WixToolset.Core.WindowsInstaller/Bind/AssignMediaCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Bind/AssignMediaCommand.cs | |||
| @@ -220,7 +220,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 220 | // If there are uncompressed files and no MediaRow, create a default one. | 220 | // If there are uncompressed files and no MediaRow, create a default one. |
| 221 | if (uncompressedFiles.Count > 0 && !this.Section.Symbols.OfType<MediaSymbol>().Any()) | 221 | if (uncompressedFiles.Count > 0 && !this.Section.Symbols.OfType<MediaSymbol>().Any()) |
| 222 | { | 222 | { |
| 223 | var defaultMediaRow = this.Section.AddSymbol(new MediaSymbol(null, new Identifier(AccessModifier.Private, 1)) | 223 | var defaultMediaRow = this.Section.AddSymbol(new MediaSymbol(null, new Identifier(AccessModifier.Section, 1)) |
| 224 | { | 224 | { |
| 225 | DiskId = 1, | 225 | DiskId = 1, |
| 226 | }); | 226 | }); |
| @@ -299,7 +299,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 299 | /// <returns></returns> | 299 | /// <returns></returns> |
| 300 | private MediaSymbol AddMediaSymbol(WixMediaTemplateSymbol mediaTemplateSymbol, int cabIndex) | 300 | private MediaSymbol AddMediaSymbol(WixMediaTemplateSymbol mediaTemplateSymbol, int cabIndex) |
| 301 | { | 301 | { |
| 302 | return this.Section.AddSymbol(new MediaSymbol(mediaTemplateSymbol.SourceLineNumbers, new Identifier(AccessModifier.Private, cabIndex)) | 302 | return this.Section.AddSymbol(new MediaSymbol(mediaTemplateSymbol.SourceLineNumbers, new Identifier(AccessModifier.Section, cabIndex)) |
| 303 | { | 303 | { |
| 304 | DiskId = cabIndex, | 304 | DiskId = cabIndex, |
| 305 | Cabinet = String.Format(CultureInfo.InvariantCulture, this.CabinetNameTemplate, cabIndex), | 305 | Cabinet = String.Format(CultureInfo.InvariantCulture, this.CabinetNameTemplate, cabIndex), |
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/CreateSpecialPropertiesCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/CreateSpecialPropertiesCommand.cs index 0a042f48..ba7c03a0 100644 --- a/src/WixToolset.Core.WindowsInstaller/Bind/CreateSpecialPropertiesCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Bind/CreateSpecialPropertiesCommand.cs | |||
| @@ -57,7 +57,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 57 | 57 | ||
| 58 | if (0 < adminProperties.Count) | 58 | if (0 < adminProperties.Count) |
| 59 | { | 59 | { |
| 60 | this.Section.AddSymbol(new PropertySymbol(null, new Identifier(AccessModifier.Private, "AdminProperties")) | 60 | this.Section.AddSymbol(new PropertySymbol(null, new Identifier(AccessModifier.Section, "AdminProperties")) |
| 61 | { | 61 | { |
| 62 | Value = String.Join(";", adminProperties), | 62 | Value = String.Join(";", adminProperties), |
| 63 | }); | 63 | }); |
| @@ -65,7 +65,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 65 | 65 | ||
| 66 | if (0 < secureProperties.Count) | 66 | if (0 < secureProperties.Count) |
| 67 | { | 67 | { |
| 68 | this.Section.AddSymbol(new PropertySymbol(null, new Identifier(AccessModifier.Private, "SecureCustomProperties")) | 68 | this.Section.AddSymbol(new PropertySymbol(null, new Identifier(AccessModifier.Section, "SecureCustomProperties")) |
| 69 | { | 69 | { |
| 70 | Value = String.Join(";", secureProperties), | 70 | Value = String.Join(";", secureProperties), |
| 71 | }); | 71 | }); |
| @@ -73,7 +73,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 73 | 73 | ||
| 74 | if (0 < hiddenProperties.Count) | 74 | if (0 < hiddenProperties.Count) |
| 75 | { | 75 | { |
| 76 | this.Section.AddSymbol(new PropertySymbol(null, new Identifier(AccessModifier.Private, "MsiHiddenProperties")) | 76 | this.Section.AddSymbol(new PropertySymbol(null, new Identifier(AccessModifier.Section, "MsiHiddenProperties")) |
| 77 | { | 77 | { |
| 78 | Value = String.Join(";", hiddenProperties) | 78 | Value = String.Join(";", hiddenProperties) |
| 79 | }); | 79 | }); |
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/ExtractMergeModuleFilesCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/ExtractMergeModuleFilesCommand.cs index 37bda235..e33b38b1 100644 --- a/src/WixToolset.Core.WindowsInstaller/Bind/ExtractMergeModuleFilesCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Bind/ExtractMergeModuleFilesCommand.cs | |||
| @@ -96,7 +96,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 96 | // NOTE: this is very tricky - the merge module file rows are not added to the | 96 | // NOTE: this is very tricky - the merge module file rows are not added to the |
| 97 | // file table because they should not be created via idt import. Instead, these | 97 | // file table because they should not be created via idt import. Instead, these |
| 98 | // rows are created by merging in the actual modules. | 98 | // rows are created by merging in the actual modules. |
| 99 | var fileSymbol = new FileSymbol(wixMergeRow.SourceLineNumbers, new Identifier(AccessModifier.Private, record[1])); | 99 | var fileSymbol = new FileSymbol(wixMergeRow.SourceLineNumbers, new Identifier(AccessModifier.Section, record[1])); |
| 100 | fileSymbol.Attributes = wixMergeRow.FileAttributes; | 100 | fileSymbol.Attributes = wixMergeRow.FileAttributes; |
| 101 | fileSymbol.DirectoryRef = record[2]; | 101 | fileSymbol.DirectoryRef = record[2]; |
| 102 | fileSymbol.DiskId = wixMergeRow.DiskId; | 102 | fileSymbol.DiskId = wixMergeRow.DiskId; |
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/ProcessDependencyReferencesCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/ProcessDependencyReferencesCommand.cs index 899d06e1..0ae7ca73 100644 --- a/src/WixToolset.Core.WindowsInstaller/Bind/ProcessDependencyReferencesCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Bind/ProcessDependencyReferencesCommand.cs | |||
| @@ -58,7 +58,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 58 | var componentId = wixDependencyProviderRow.ComponentRef; | 58 | var componentId = wixDependencyProviderRow.ComponentRef; |
| 59 | 59 | ||
| 60 | var id = Common.GenerateIdentifier("reg", providesId, requiresId, "(Default)"); | 60 | var id = Common.GenerateIdentifier("reg", providesId, requiresId, "(Default)"); |
| 61 | this.Section.AddSymbol(new RegistrySymbol(wixDependencyRefRow.SourceLineNumbers, new Identifier(AccessModifier.Private, id)) | 61 | this.Section.AddSymbol(new RegistrySymbol(wixDependencyRefRow.SourceLineNumbers, new Identifier(AccessModifier.Section, id)) |
| 62 | { | 62 | { |
| 63 | ComponentRef = componentId, | 63 | ComponentRef = componentId, |
| 64 | Root = RegistryRootType.MachineUser, | 64 | Root = RegistryRootType.MachineUser, |
| @@ -69,7 +69,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 69 | if (!String.IsNullOrEmpty(wixDependencyRow.MinVersion)) | 69 | if (!String.IsNullOrEmpty(wixDependencyRow.MinVersion)) |
| 70 | { | 70 | { |
| 71 | id = Common.GenerateIdentifier("reg", providesId, requiresId, "MinVersion"); | 71 | id = Common.GenerateIdentifier("reg", providesId, requiresId, "MinVersion"); |
| 72 | this.Section.AddSymbol(new RegistrySymbol(wixDependencyRefRow.SourceLineNumbers, new Identifier(AccessModifier.Private, id)) | 72 | this.Section.AddSymbol(new RegistrySymbol(wixDependencyRefRow.SourceLineNumbers, new Identifier(AccessModifier.Section, id)) |
| 73 | { | 73 | { |
| 74 | ComponentRef = componentId, | 74 | ComponentRef = componentId, |
| 75 | Root = RegistryRootType.MachineUser, | 75 | Root = RegistryRootType.MachineUser, |
| @@ -83,7 +83,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 83 | if (!String.IsNullOrEmpty(wixDependencyRow.MaxVersion)) | 83 | if (!String.IsNullOrEmpty(wixDependencyRow.MaxVersion)) |
| 84 | { | 84 | { |
| 85 | id = Common.GenerateIdentifier("reg", providesId, requiresId, "MaxVersion"); | 85 | id = Common.GenerateIdentifier("reg", providesId, requiresId, "MaxVersion"); |
| 86 | this.Section.AddSymbol(new RegistrySymbol(wixDependencyRefRow.SourceLineNumbers, new Identifier(AccessModifier.Private, id)) | 86 | this.Section.AddSymbol(new RegistrySymbol(wixDependencyRefRow.SourceLineNumbers, new Identifier(AccessModifier.Section, id)) |
| 87 | { | 87 | { |
| 88 | ComponentRef = componentId, | 88 | ComponentRef = componentId, |
| 89 | Root = RegistryRootType.MachineUser, | 89 | Root = RegistryRootType.MachineUser, |
| @@ -96,7 +96,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 96 | if (wixDependencyRow.Attributes != WixDependencySymbolAttributes.None) | 96 | if (wixDependencyRow.Attributes != WixDependencySymbolAttributes.None) |
| 97 | { | 97 | { |
| 98 | id = Common.GenerateIdentifier("reg", providesId, requiresId, "Attributes"); | 98 | id = Common.GenerateIdentifier("reg", providesId, requiresId, "Attributes"); |
| 99 | this.Section.AddSymbol(new RegistrySymbol(wixDependencyRefRow.SourceLineNumbers, new Identifier(AccessModifier.Private, id)) | 99 | this.Section.AddSymbol(new RegistrySymbol(wixDependencyRefRow.SourceLineNumbers, new Identifier(AccessModifier.Section, id)) |
| 100 | { | 100 | { |
| 101 | ComponentRef = componentId, | 101 | ComponentRef = componentId, |
| 102 | Root = RegistryRootType.MachineUser, | 102 | Root = RegistryRootType.MachineUser, |
diff --git a/src/WixToolset.Core.WindowsInstaller/Bind/UpdateFileFacadesCommand.cs b/src/WixToolset.Core.WindowsInstaller/Bind/UpdateFileFacadesCommand.cs index d5bdc797..f8819a0e 100644 --- a/src/WixToolset.Core.WindowsInstaller/Bind/UpdateFileFacadesCommand.cs +++ b/src/WixToolset.Core.WindowsInstaller/Bind/UpdateFileFacadesCommand.cs | |||
| @@ -335,7 +335,7 @@ namespace WixToolset.Core.WindowsInstaller.Bind | |||
| 335 | var lookup = String.Concat(facade.ComponentRef, "/", name); | 335 | var lookup = String.Concat(facade.ComponentRef, "/", name); |
| 336 | if (!assemblyNameSymbols.TryGetValue(lookup, out var assemblyNameSymbol)) | 336 | if (!assemblyNameSymbols.TryGetValue(lookup, out var assemblyNameSymbol)) |
| 337 | { | 337 | { |
| 338 | assemblyNameSymbol = this.Section.AddSymbol(new MsiAssemblyNameSymbol(facade.SourceLineNumber, new Identifier(AccessModifier.Private, facade.ComponentRef, name)) | 338 | assemblyNameSymbol = this.Section.AddSymbol(new MsiAssemblyNameSymbol(facade.SourceLineNumber, new Identifier(AccessModifier.Section, facade.ComponentRef, name)) |
| 339 | { | 339 | { |
| 340 | ComponentRef = facade.ComponentRef, | 340 | ComponentRef = facade.ComponentRef, |
| 341 | Name = name, | 341 | Name = name, |
diff --git a/src/WixToolset.Core.WindowsInstaller/Decompile/Decompiler.cs b/src/WixToolset.Core.WindowsInstaller/Decompile/Decompiler.cs index c62e8153..2cc61666 100644 --- a/src/WixToolset.Core.WindowsInstaller/Decompile/Decompiler.cs +++ b/src/WixToolset.Core.WindowsInstaller/Decompile/Decompiler.cs | |||
| @@ -1999,7 +1999,7 @@ namespace WixToolset.Core.WindowsInstaller | |||
| 1999 | foreach (var row in table.Rows) | 1999 | foreach (var row in table.Rows) |
| 2000 | { | 2000 | { |
| 2001 | var action = row.FieldAsString(0); | 2001 | var action = row.FieldAsString(0); |
| 2002 | var actionSymbol = new WixActionSymbol(null, new Identifier(AccessModifier.Public, sequenceTable, action)); | 2002 | var actionSymbol = new WixActionSymbol(null, new Identifier(AccessModifier.Global, sequenceTable, action)); |
| 2003 | 2003 | ||
| 2004 | actionSymbol.Action = action; | 2004 | actionSymbol.Action = action; |
| 2005 | 2005 | ||
| @@ -2133,7 +2133,7 @@ namespace WixToolset.Core.WindowsInstaller | |||
| 2133 | { | 2133 | { |
| 2134 | foreach (var row in table.Rows) | 2134 | foreach (var row in table.Rows) |
| 2135 | { | 2135 | { |
| 2136 | var actionRow = new WixActionSymbol(null, new Identifier(AccessModifier.Public, sequenceTable, row.FieldAsString(0))); | 2136 | var actionRow = new WixActionSymbol(null, new Identifier(AccessModifier.Global, sequenceTable, row.FieldAsString(0))); |
| 2137 | 2137 | ||
| 2138 | actionRow.Action = row.FieldAsString(0); | 2138 | actionRow.Action = row.FieldAsString(0); |
| 2139 | 2139 | ||
