diff options
| author | Rob Mensching <rob@firegiant.com> | 2019-05-08 13:35:21 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2019-05-08 13:44:59 -0700 |
| commit | ef6485ac4a03333701d343c1e3a52d25805c58f1 (patch) | |
| tree | 3093b1410e651a90c3776b42090bb4e62e98c514 /src/WixToolset.Data/WindowsInstaller/Rows/ComponentRow.cs | |
| parent | 6e7a3274a1710a734e5369d0a1703b9c9ac9345b (diff) | |
| download | wix-ef6485ac4a03333701d343c1e3a52d25805c58f1.tar.gz wix-ef6485ac4a03333701d343c1e3a52d25805c58f1.tar.bz2 wix-ef6485ac4a03333701d343c1e3a52d25805c58f1.zip | |
Add additional strongly typed tuples
Diffstat (limited to 'src/WixToolset.Data/WindowsInstaller/Rows/ComponentRow.cs')
| -rw-r--r-- | src/WixToolset.Data/WindowsInstaller/Rows/ComponentRow.cs | 50 |
1 files changed, 24 insertions, 26 deletions
diff --git a/src/WixToolset.Data/WindowsInstaller/Rows/ComponentRow.cs b/src/WixToolset.Data/WindowsInstaller/Rows/ComponentRow.cs index 50ef5313..001703ee 100644 --- a/src/WixToolset.Data/WindowsInstaller/Rows/ComponentRow.cs +++ b/src/WixToolset.Data/WindowsInstaller/Rows/ComponentRow.cs | |||
| @@ -2,8 +2,6 @@ | |||
| 2 | 2 | ||
| 3 | namespace WixToolset.Data.WindowsInstaller.Rows | 3 | namespace WixToolset.Data.WindowsInstaller.Rows |
| 4 | { | 4 | { |
| 5 | using WixToolset.Data.Msi; | ||
| 6 | |||
| 7 | /// <summary> | 5 | /// <summary> |
| 8 | /// Specialization of a row for the Component table. | 6 | /// Specialization of a row for the Component table. |
| 9 | /// </summary> | 7 | /// </summary> |
| @@ -57,16 +55,16 @@ namespace WixToolset.Data.WindowsInstaller.Rows | |||
| 57 | /// <value>Local only attribute of the component.</value> | 55 | /// <value>Local only attribute of the component.</value> |
| 58 | public bool IsLocalOnly | 56 | public bool IsLocalOnly |
| 59 | { | 57 | { |
| 60 | get { return MsiInterop.MsidbComponentAttributesLocalOnly == ((int)this.Fields[3].Data & MsiInterop.MsidbComponentAttributesLocalOnly); } | 58 | get { return WindowsInstallerConstants.MsidbComponentAttributesLocalOnly == ((int)this.Fields[3].Data & WindowsInstallerConstants.MsidbComponentAttributesLocalOnly); } |
| 61 | set | 59 | set |
| 62 | { | 60 | { |
| 63 | if (value) | 61 | if (value) |
| 64 | { | 62 | { |
| 65 | this.Fields[3].Data = (int)this.Fields[3].Data | MsiInterop.MsidbComponentAttributesLocalOnly; | 63 | this.Fields[3].Data = (int)this.Fields[3].Data | WindowsInstallerConstants.MsidbComponentAttributesLocalOnly; |
| 66 | } | 64 | } |
| 67 | else | 65 | else |
| 68 | { | 66 | { |
| 69 | this.Fields[3].Data = (int)this.Fields[3].Data & ~MsiInterop.MsidbComponentAttributesLocalOnly; | 67 | this.Fields[3].Data = (int)this.Fields[3].Data & ~WindowsInstallerConstants.MsidbComponentAttributesLocalOnly; |
| 70 | } | 68 | } |
| 71 | } | 69 | } |
| 72 | } | 70 | } |
| @@ -77,16 +75,16 @@ namespace WixToolset.Data.WindowsInstaller.Rows | |||
| 77 | /// <value>Source only attribute of the component.</value> | 75 | /// <value>Source only attribute of the component.</value> |
| 78 | public bool IsSourceOnly | 76 | public bool IsSourceOnly |
| 79 | { | 77 | { |
| 80 | get { return MsiInterop.MsidbComponentAttributesSourceOnly == ((int)this.Fields[3].Data & MsiInterop.MsidbComponentAttributesSourceOnly); } | 78 | get { return WindowsInstallerConstants.MsidbComponentAttributesSourceOnly == ((int)this.Fields[3].Data & WindowsInstallerConstants.MsidbComponentAttributesSourceOnly); } |
| 81 | set | 79 | set |
| 82 | { | 80 | { |
| 83 | if (value) | 81 | if (value) |
| 84 | { | 82 | { |
| 85 | this.Fields[3].Data = (int)this.Fields[3].Data | MsiInterop.MsidbComponentAttributesSourceOnly; | 83 | this.Fields[3].Data = (int)this.Fields[3].Data | WindowsInstallerConstants.MsidbComponentAttributesSourceOnly; |
| 86 | } | 84 | } |
| 87 | else | 85 | else |
| 88 | { | 86 | { |
| 89 | this.Fields[3].Data = (int)this.Fields[3].Data & ~MsiInterop.MsidbComponentAttributesSourceOnly; | 87 | this.Fields[3].Data = (int)this.Fields[3].Data & ~WindowsInstallerConstants.MsidbComponentAttributesSourceOnly; |
| 90 | } | 88 | } |
| 91 | } | 89 | } |
| 92 | } | 90 | } |
| @@ -97,16 +95,16 @@ namespace WixToolset.Data.WindowsInstaller.Rows | |||
| 97 | /// <value>Optional attribute of the component.</value> | 95 | /// <value>Optional attribute of the component.</value> |
| 98 | public bool IsOptional | 96 | public bool IsOptional |
| 99 | { | 97 | { |
| 100 | get { return MsiInterop.MsidbComponentAttributesOptional == ((int)this.Fields[3].Data & MsiInterop.MsidbComponentAttributesOptional); } | 98 | get { return WindowsInstallerConstants.MsidbComponentAttributesOptional == ((int)this.Fields[3].Data & WindowsInstallerConstants.MsidbComponentAttributesOptional); } |
| 101 | set | 99 | set |
| 102 | { | 100 | { |
| 103 | if (value) | 101 | if (value) |
| 104 | { | 102 | { |
| 105 | this.Fields[3].Data = (int)this.Fields[3].Data | MsiInterop.MsidbComponentAttributesOptional; | 103 | this.Fields[3].Data = (int)this.Fields[3].Data | WindowsInstallerConstants.MsidbComponentAttributesOptional; |
| 106 | } | 104 | } |
| 107 | else | 105 | else |
| 108 | { | 106 | { |
| 109 | this.Fields[3].Data = (int)this.Fields[3].Data & ~MsiInterop.MsidbComponentAttributesOptional; | 107 | this.Fields[3].Data = (int)this.Fields[3].Data & ~WindowsInstallerConstants.MsidbComponentAttributesOptional; |
| 110 | } | 108 | } |
| 111 | } | 109 | } |
| 112 | } | 110 | } |
| @@ -117,16 +115,16 @@ namespace WixToolset.Data.WindowsInstaller.Rows | |||
| 117 | /// <value>Registry key path attribute of the component.</value> | 115 | /// <value>Registry key path attribute of the component.</value> |
| 118 | public bool IsRegistryKeyPath | 116 | public bool IsRegistryKeyPath |
| 119 | { | 117 | { |
| 120 | get { return MsiInterop.MsidbComponentAttributesRegistryKeyPath == ((int)this.Fields[3].Data & MsiInterop.MsidbComponentAttributesRegistryKeyPath); } | 118 | get { return WindowsInstallerConstants.MsidbComponentAttributesRegistryKeyPath == ((int)this.Fields[3].Data & WindowsInstallerConstants.MsidbComponentAttributesRegistryKeyPath); } |
| 121 | set | 119 | set |
| 122 | { | 120 | { |
| 123 | if (value) | 121 | if (value) |
| 124 | { | 122 | { |
| 125 | this.Fields[3].Data = (int)this.Fields[3].Data | MsiInterop.MsidbComponentAttributesRegistryKeyPath; | 123 | this.Fields[3].Data = (int)this.Fields[3].Data | WindowsInstallerConstants.MsidbComponentAttributesRegistryKeyPath; |
| 126 | } | 124 | } |
| 127 | else | 125 | else |
| 128 | { | 126 | { |
| 129 | this.Fields[3].Data = (int)this.Fields[3].Data & ~MsiInterop.MsidbComponentAttributesRegistryKeyPath; | 127 | this.Fields[3].Data = (int)this.Fields[3].Data & ~WindowsInstallerConstants.MsidbComponentAttributesRegistryKeyPath; |
| 130 | } | 128 | } |
| 131 | } | 129 | } |
| 132 | } | 130 | } |
| @@ -137,16 +135,16 @@ namespace WixToolset.Data.WindowsInstaller.Rows | |||
| 137 | /// <value>Shared dll ref countattribute of the component.</value> | 135 | /// <value>Shared dll ref countattribute of the component.</value> |
| 138 | public bool IsSharedDll | 136 | public bool IsSharedDll |
| 139 | { | 137 | { |
| 140 | get { return MsiInterop.MsidbComponentAttributesSharedDllRefCount == ((int)this.Fields[3].Data & MsiInterop.MsidbComponentAttributesSharedDllRefCount); } | 138 | get { return WindowsInstallerConstants.MsidbComponentAttributesSharedDllRefCount == ((int)this.Fields[3].Data & WindowsInstallerConstants.MsidbComponentAttributesSharedDllRefCount); } |
| 141 | set | 139 | set |
| 142 | { | 140 | { |
| 143 | if (value) | 141 | if (value) |
| 144 | { | 142 | { |
| 145 | this.Fields[3].Data = (int)this.Fields[3].Data | MsiInterop.MsidbComponentAttributesSharedDllRefCount; | 143 | this.Fields[3].Data = (int)this.Fields[3].Data | WindowsInstallerConstants.MsidbComponentAttributesSharedDllRefCount; |
| 146 | } | 144 | } |
| 147 | else | 145 | else |
| 148 | { | 146 | { |
| 149 | this.Fields[3].Data = (int)this.Fields[3].Data & ~MsiInterop.MsidbComponentAttributesSharedDllRefCount; | 147 | this.Fields[3].Data = (int)this.Fields[3].Data & ~WindowsInstallerConstants.MsidbComponentAttributesSharedDllRefCount; |
| 150 | } | 148 | } |
| 151 | } | 149 | } |
| 152 | } | 150 | } |
| @@ -157,16 +155,16 @@ namespace WixToolset.Data.WindowsInstaller.Rows | |||
| 157 | /// <value>Permanent attribute of the component.</value> | 155 | /// <value>Permanent attribute of the component.</value> |
| 158 | public bool IsPermanent | 156 | public bool IsPermanent |
| 159 | { | 157 | { |
| 160 | get { return MsiInterop.MsidbComponentAttributesPermanent == ((int)this.Fields[3].Data & MsiInterop.MsidbComponentAttributesPermanent); } | 158 | get { return WindowsInstallerConstants.MsidbComponentAttributesPermanent == ((int)this.Fields[3].Data & WindowsInstallerConstants.MsidbComponentAttributesPermanent); } |
| 161 | set | 159 | set |
| 162 | { | 160 | { |
| 163 | if (value) | 161 | if (value) |
| 164 | { | 162 | { |
| 165 | this.Fields[3].Data = (int)this.Fields[3].Data | MsiInterop.MsidbComponentAttributesPermanent; | 163 | this.Fields[3].Data = (int)this.Fields[3].Data | WindowsInstallerConstants.MsidbComponentAttributesPermanent; |
| 166 | } | 164 | } |
| 167 | else | 165 | else |
| 168 | { | 166 | { |
| 169 | this.Fields[3].Data = (int)this.Fields[3].Data & ~MsiInterop.MsidbComponentAttributesPermanent; | 167 | this.Fields[3].Data = (int)this.Fields[3].Data & ~WindowsInstallerConstants.MsidbComponentAttributesPermanent; |
| 170 | } | 168 | } |
| 171 | } | 169 | } |
| 172 | } | 170 | } |
| @@ -177,16 +175,16 @@ namespace WixToolset.Data.WindowsInstaller.Rows | |||
| 177 | /// <value>ODBC data source key path attribute of the component.</value> | 175 | /// <value>ODBC data source key path attribute of the component.</value> |
| 178 | public bool IsOdbcDataSourceKeyPath | 176 | public bool IsOdbcDataSourceKeyPath |
| 179 | { | 177 | { |
| 180 | get { return MsiInterop.MsidbComponentAttributesODBCDataSource == ((int)this.Fields[3].Data & MsiInterop.MsidbComponentAttributesODBCDataSource); } | 178 | get { return WindowsInstallerConstants.MsidbComponentAttributesODBCDataSource == ((int)this.Fields[3].Data & WindowsInstallerConstants.MsidbComponentAttributesODBCDataSource); } |
| 181 | set | 179 | set |
| 182 | { | 180 | { |
| 183 | if (value) | 181 | if (value) |
| 184 | { | 182 | { |
| 185 | this.Fields[3].Data = (int)this.Fields[3].Data | MsiInterop.MsidbComponentAttributesODBCDataSource; | 183 | this.Fields[3].Data = (int)this.Fields[3].Data | WindowsInstallerConstants.MsidbComponentAttributesODBCDataSource; |
| 186 | } | 184 | } |
| 187 | else | 185 | else |
| 188 | { | 186 | { |
| 189 | this.Fields[3].Data = (int)this.Fields[3].Data & ~MsiInterop.MsidbComponentAttributesODBCDataSource; | 187 | this.Fields[3].Data = (int)this.Fields[3].Data & ~WindowsInstallerConstants.MsidbComponentAttributesODBCDataSource; |
| 190 | } | 188 | } |
| 191 | } | 189 | } |
| 192 | } | 190 | } |
| @@ -197,16 +195,16 @@ namespace WixToolset.Data.WindowsInstaller.Rows | |||
| 197 | /// <value>64-bitness of the component.</value> | 195 | /// <value>64-bitness of the component.</value> |
| 198 | public bool Is64Bit | 196 | public bool Is64Bit |
| 199 | { | 197 | { |
| 200 | get { return MsiInterop.MsidbComponentAttributes64bit == ((int)this.Fields[3].Data & MsiInterop.MsidbComponentAttributes64bit); } | 198 | get { return WindowsInstallerConstants.MsidbComponentAttributes64bit == ((int)this.Fields[3].Data & WindowsInstallerConstants.MsidbComponentAttributes64bit); } |
| 201 | set | 199 | set |
| 202 | { | 200 | { |
| 203 | if (value) | 201 | if (value) |
| 204 | { | 202 | { |
| 205 | this.Fields[3].Data = (int)this.Fields[3].Data | MsiInterop.MsidbComponentAttributes64bit; | 203 | this.Fields[3].Data = (int)this.Fields[3].Data | WindowsInstallerConstants.MsidbComponentAttributes64bit; |
| 206 | } | 204 | } |
| 207 | else | 205 | else |
| 208 | { | 206 | { |
| 209 | this.Fields[3].Data = (int)this.Fields[3].Data & ~MsiInterop.MsidbComponentAttributes64bit; | 207 | this.Fields[3].Data = (int)this.Fields[3].Data & ~WindowsInstallerConstants.MsidbComponentAttributes64bit; |
| 210 | } | 208 | } |
| 211 | } | 209 | } |
| 212 | } | 210 | } |
