diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2023-01-19 00:18:26 -0600 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2023-01-19 01:52:41 -0600 |
| commit | a46ef0eebafea0e5b38c0c6e960be778c2dbb852 (patch) | |
| tree | 8ae23b506375da6ff91e5f0743006a7ccd51ecc0 /src/api/burn/WixToolset.Mba.Core/IBootstrapperEngine.cs | |
| parent | 7a0aa56131ba7fa3b63788908c164d0f8118e3fc (diff) | |
| download | wix-a46ef0eebafea0e5b38c0c6e960be778c2dbb852.tar.gz wix-a46ef0eebafea0e5b38c0c6e960be778c2dbb852.tar.bz2 wix-a46ef0eebafea0e5b38c0c6e960be778c2dbb852.zip | |
Finish the XML documentation in WixToolset.Mba.Core.
4623
Diffstat (limited to 'src/api/burn/WixToolset.Mba.Core/IBootstrapperEngine.cs')
| -rw-r--r-- | src/api/burn/WixToolset.Mba.Core/IBootstrapperEngine.cs | 124 |
1 files changed, 39 insertions, 85 deletions
diff --git a/src/api/burn/WixToolset.Mba.Core/IBootstrapperEngine.cs b/src/api/burn/WixToolset.Mba.Core/IBootstrapperEngine.cs index eca8dda1..25ce52df 100644 --- a/src/api/burn/WixToolset.Mba.Core/IBootstrapperEngine.cs +++ b/src/api/burn/WixToolset.Mba.Core/IBootstrapperEngine.cs | |||
| @@ -19,7 +19,6 @@ namespace WixToolset.Mba.Core | |||
| 19 | /// <summary> | 19 | /// <summary> |
| 20 | /// See <see cref="IEngine.PackageCount"/>. | 20 | /// See <see cref="IEngine.PackageCount"/>. |
| 21 | /// </summary> | 21 | /// </summary> |
| 22 | /// <param name="pcPackages"></param> | ||
| 23 | void GetPackageCount( | 22 | void GetPackageCount( |
| 24 | [MarshalAs(UnmanagedType.U4)] out int pcPackages | 23 | [MarshalAs(UnmanagedType.U4)] out int pcPackages |
| 25 | ); | 24 | ); |
| @@ -27,9 +26,6 @@ namespace WixToolset.Mba.Core | |||
| 27 | /// <summary> | 26 | /// <summary> |
| 28 | /// See <see cref="IEngine.GetVariableNumeric(string)"/>. | 27 | /// See <see cref="IEngine.GetVariableNumeric(string)"/>. |
| 29 | /// </summary> | 28 | /// </summary> |
| 30 | /// <param name="wzVariable"></param> | ||
| 31 | /// <param name="pllValue"></param> | ||
| 32 | /// <returns></returns> | ||
| 33 | [PreserveSig] | 29 | [PreserveSig] |
| 34 | int GetVariableNumeric( | 30 | int GetVariableNumeric( |
| 35 | [MarshalAs(UnmanagedType.LPWStr)] string wzVariable, | 31 | [MarshalAs(UnmanagedType.LPWStr)] string wzVariable, |
| @@ -79,8 +75,6 @@ namespace WixToolset.Mba.Core | |||
| 79 | /// <summary> | 75 | /// <summary> |
| 80 | /// See <see cref="IEngine.EvaluateCondition(string)"/>. | 76 | /// See <see cref="IEngine.EvaluateCondition(string)"/>. |
| 81 | /// </summary> | 77 | /// </summary> |
| 82 | /// <param name="wzCondition"></param> | ||
| 83 | /// <param name="pf"></param> | ||
| 84 | void EvaluateCondition( | 78 | void EvaluateCondition( |
| 85 | [MarshalAs(UnmanagedType.LPWStr)] string wzCondition, | 79 | [MarshalAs(UnmanagedType.LPWStr)] string wzCondition, |
| 86 | [MarshalAs(UnmanagedType.Bool)] out bool pf | 80 | [MarshalAs(UnmanagedType.Bool)] out bool pf |
| @@ -89,8 +83,6 @@ namespace WixToolset.Mba.Core | |||
| 89 | /// <summary> | 83 | /// <summary> |
| 90 | /// See <see cref="IEngine.Log(LogLevel, string)"/>. | 84 | /// See <see cref="IEngine.Log(LogLevel, string)"/>. |
| 91 | /// </summary> | 85 | /// </summary> |
| 92 | /// <param name="level"></param> | ||
| 93 | /// <param name="wzMessage"></param> | ||
| 94 | void Log( | 86 | void Log( |
| 95 | [MarshalAs(UnmanagedType.U4)] LogLevel level, | 87 | [MarshalAs(UnmanagedType.U4)] LogLevel level, |
| 96 | [MarshalAs(UnmanagedType.LPWStr)] string wzMessage | 88 | [MarshalAs(UnmanagedType.LPWStr)] string wzMessage |
| @@ -99,10 +91,6 @@ namespace WixToolset.Mba.Core | |||
| 99 | /// <summary> | 91 | /// <summary> |
| 100 | /// See <see cref="IEngine.SendEmbeddedError(int, string, int)"/>. | 92 | /// See <see cref="IEngine.SendEmbeddedError(int, string, int)"/>. |
| 101 | /// </summary> | 93 | /// </summary> |
| 102 | /// <param name="dwErrorCode"></param> | ||
| 103 | /// <param name="wzMessage"></param> | ||
| 104 | /// <param name="dwUIHint"></param> | ||
| 105 | /// <param name="pnResult"></param> | ||
| 106 | void SendEmbeddedError( | 94 | void SendEmbeddedError( |
| 107 | [MarshalAs(UnmanagedType.U4)] int dwErrorCode, | 95 | [MarshalAs(UnmanagedType.U4)] int dwErrorCode, |
| 108 | [MarshalAs(UnmanagedType.LPWStr)] string wzMessage, | 96 | [MarshalAs(UnmanagedType.LPWStr)] string wzMessage, |
| @@ -113,9 +101,6 @@ namespace WixToolset.Mba.Core | |||
| 113 | /// <summary> | 101 | /// <summary> |
| 114 | /// See <see cref="IEngine.SendEmbeddedProgress(int, int)"/>. | 102 | /// See <see cref="IEngine.SendEmbeddedProgress(int, int)"/>. |
| 115 | /// </summary> | 103 | /// </summary> |
| 116 | /// <param name="dwProgressPercentage"></param> | ||
| 117 | /// <param name="dwOverallProgressPercentage"></param> | ||
| 118 | /// <param name="pnResult"></param> | ||
| 119 | void SendEmbeddedProgress( | 104 | void SendEmbeddedProgress( |
| 120 | [MarshalAs(UnmanagedType.U4)] int dwProgressPercentage, | 105 | [MarshalAs(UnmanagedType.U4)] int dwProgressPercentage, |
| 121 | [MarshalAs(UnmanagedType.U4)] int dwOverallProgressPercentage, | 106 | [MarshalAs(UnmanagedType.U4)] int dwOverallProgressPercentage, |
| @@ -125,11 +110,6 @@ namespace WixToolset.Mba.Core | |||
| 125 | /// <summary> | 110 | /// <summary> |
| 126 | /// See <see cref="IEngine.SetUpdate(string, string, long, UpdateHashType, string)"/>. | 111 | /// See <see cref="IEngine.SetUpdate(string, string, long, UpdateHashType, string)"/>. |
| 127 | /// </summary> | 112 | /// </summary> |
| 128 | /// <param name="wzLocalSource"></param> | ||
| 129 | /// <param name="wzDownloadSource"></param> | ||
| 130 | /// <param name="qwValue"></param> | ||
| 131 | /// <param name="hashType"></param> | ||
| 132 | /// <param name="wzHash"></param> | ||
| 133 | void SetUpdate( | 113 | void SetUpdate( |
| 134 | [MarshalAs(UnmanagedType.LPWStr)] string wzLocalSource, | 114 | [MarshalAs(UnmanagedType.LPWStr)] string wzLocalSource, |
| 135 | [MarshalAs(UnmanagedType.LPWStr)] string wzDownloadSource, | 115 | [MarshalAs(UnmanagedType.LPWStr)] string wzDownloadSource, |
| @@ -141,9 +121,6 @@ namespace WixToolset.Mba.Core | |||
| 141 | /// <summary> | 121 | /// <summary> |
| 142 | /// See <see cref="IEngine.SetLocalSource(string, string, string)"/>. | 122 | /// See <see cref="IEngine.SetLocalSource(string, string, string)"/>. |
| 143 | /// </summary> | 123 | /// </summary> |
| 144 | /// <param name="wzPackageOrContainerId"></param> | ||
| 145 | /// <param name="wzPayloadId"></param> | ||
| 146 | /// <param name="wzPath"></param> | ||
| 147 | void SetLocalSource( | 124 | void SetLocalSource( |
| 148 | [MarshalAs(UnmanagedType.LPWStr)] string wzPackageOrContainerId, | 125 | [MarshalAs(UnmanagedType.LPWStr)] string wzPackageOrContainerId, |
| 149 | [MarshalAs(UnmanagedType.LPWStr)] string wzPayloadId, | 126 | [MarshalAs(UnmanagedType.LPWStr)] string wzPayloadId, |
| @@ -153,11 +130,6 @@ namespace WixToolset.Mba.Core | |||
| 153 | /// <summary> | 130 | /// <summary> |
| 154 | /// See <see cref="IEngine.SetDownloadSource(string, string, string, string, string)"/>. | 131 | /// See <see cref="IEngine.SetDownloadSource(string, string, string, string, string)"/>. |
| 155 | /// </summary> | 132 | /// </summary> |
| 156 | /// <param name="wzPackageOrContainerId"></param> | ||
| 157 | /// <param name="wzPayloadId"></param> | ||
| 158 | /// <param name="wzUrl"></param> | ||
| 159 | /// <param name="wzUser"></param> | ||
| 160 | /// <param name="wzPassword"></param> | ||
| 161 | void SetDownloadSource( | 133 | void SetDownloadSource( |
| 162 | [MarshalAs(UnmanagedType.LPWStr)] string wzPackageOrContainerId, | 134 | [MarshalAs(UnmanagedType.LPWStr)] string wzPackageOrContainerId, |
| 163 | [MarshalAs(UnmanagedType.LPWStr)] string wzPayloadId, | 135 | [MarshalAs(UnmanagedType.LPWStr)] string wzPayloadId, |
| @@ -169,8 +141,6 @@ namespace WixToolset.Mba.Core | |||
| 169 | /// <summary> | 141 | /// <summary> |
| 170 | /// See <see cref="IEngine.SetVariableNumeric(string, long)"/>. | 142 | /// See <see cref="IEngine.SetVariableNumeric(string, long)"/>. |
| 171 | /// </summary> | 143 | /// </summary> |
| 172 | /// <param name="wzVariable"></param> | ||
| 173 | /// <param name="llValue"></param> | ||
| 174 | void SetVariableNumeric( | 144 | void SetVariableNumeric( |
| 175 | [MarshalAs(UnmanagedType.LPWStr)] string wzVariable, | 145 | [MarshalAs(UnmanagedType.LPWStr)] string wzVariable, |
| 176 | long llValue | 146 | long llValue |
| @@ -179,9 +149,6 @@ namespace WixToolset.Mba.Core | |||
| 179 | /// <summary> | 149 | /// <summary> |
| 180 | /// See <see cref="IEngine.SetVariableString(string, string, bool)"/>. | 150 | /// See <see cref="IEngine.SetVariableString(string, string, bool)"/>. |
| 181 | /// </summary> | 151 | /// </summary> |
| 182 | /// <param name="wzVariable"></param> | ||
| 183 | /// <param name="wzValue"></param> | ||
| 184 | /// <param name="fFormatted"></param> | ||
| 185 | void SetVariableString( | 152 | void SetVariableString( |
| 186 | [MarshalAs(UnmanagedType.LPWStr)] string wzVariable, | 153 | [MarshalAs(UnmanagedType.LPWStr)] string wzVariable, |
| 187 | IntPtr wzValue, | 154 | IntPtr wzValue, |
| @@ -191,8 +158,6 @@ namespace WixToolset.Mba.Core | |||
| 191 | /// <summary> | 158 | /// <summary> |
| 192 | /// See <see cref="IEngine.SetVariableVersion(string, string)"/>. | 159 | /// See <see cref="IEngine.SetVariableVersion(string, string)"/>. |
| 193 | /// </summary> | 160 | /// </summary> |
| 194 | /// <param name="wzVariable"></param> | ||
| 195 | /// <param name="wzValue"></param> | ||
| 196 | void SetVariableVersion( | 161 | void SetVariableVersion( |
| 197 | [MarshalAs(UnmanagedType.LPWStr)] string wzVariable, | 162 | [MarshalAs(UnmanagedType.LPWStr)] string wzVariable, |
| 198 | IntPtr wzValue | 163 | IntPtr wzValue |
| @@ -206,7 +171,6 @@ namespace WixToolset.Mba.Core | |||
| 206 | /// <summary> | 171 | /// <summary> |
| 207 | /// See <see cref="IEngine.Detect(IntPtr)"/>. | 172 | /// See <see cref="IEngine.Detect(IntPtr)"/>. |
| 208 | /// </summary> | 173 | /// </summary> |
| 209 | /// <param name="hwndParent"></param> | ||
| 210 | void Detect( | 174 | void Detect( |
| 211 | IntPtr hwndParent | 175 | IntPtr hwndParent |
| 212 | ); | 176 | ); |
| @@ -214,7 +178,6 @@ namespace WixToolset.Mba.Core | |||
| 214 | /// <summary> | 178 | /// <summary> |
| 215 | /// See <see cref="IEngine.Plan(LaunchAction)"/>. | 179 | /// See <see cref="IEngine.Plan(LaunchAction)"/>. |
| 216 | /// </summary> | 180 | /// </summary> |
| 217 | /// <param name="action"></param> | ||
| 218 | void Plan( | 181 | void Plan( |
| 219 | [MarshalAs(UnmanagedType.U4)] LaunchAction action | 182 | [MarshalAs(UnmanagedType.U4)] LaunchAction action |
| 220 | ); | 183 | ); |
| @@ -222,8 +185,6 @@ namespace WixToolset.Mba.Core | |||
| 222 | /// <summary> | 185 | /// <summary> |
| 223 | /// See <see cref="IEngine.Elevate(IntPtr)"/>. | 186 | /// See <see cref="IEngine.Elevate(IntPtr)"/>. |
| 224 | /// </summary> | 187 | /// </summary> |
| 225 | /// <param name="hwndParent"></param> | ||
| 226 | /// <returns></returns> | ||
| 227 | [PreserveSig] | 188 | [PreserveSig] |
| 228 | int Elevate( | 189 | int Elevate( |
| 229 | IntPtr hwndParent | 190 | IntPtr hwndParent |
| @@ -232,7 +193,6 @@ namespace WixToolset.Mba.Core | |||
| 232 | /// <summary> | 193 | /// <summary> |
| 233 | /// See <see cref="IEngine.Apply(IntPtr)"/>. | 194 | /// See <see cref="IEngine.Apply(IntPtr)"/>. |
| 234 | /// </summary> | 195 | /// </summary> |
| 235 | /// <param name="hwndParent"></param> | ||
| 236 | void Apply( | 196 | void Apply( |
| 237 | IntPtr hwndParent | 197 | IntPtr hwndParent |
| 238 | ); | 198 | ); |
| @@ -240,7 +200,6 @@ namespace WixToolset.Mba.Core | |||
| 240 | /// <summary> | 200 | /// <summary> |
| 241 | /// See <see cref="IEngine.Quit(int)"/>. | 201 | /// See <see cref="IEngine.Quit(int)"/>. |
| 242 | /// </summary> | 202 | /// </summary> |
| 243 | /// <param name="dwExitCode"></param> | ||
| 244 | void Quit( | 203 | void Quit( |
| 245 | [MarshalAs(UnmanagedType.U4)] int dwExitCode | 204 | [MarshalAs(UnmanagedType.U4)] int dwExitCode |
| 246 | ); | 205 | ); |
| @@ -248,10 +207,6 @@ namespace WixToolset.Mba.Core | |||
| 248 | /// <summary> | 207 | /// <summary> |
| 249 | /// See <see cref="IEngine.LaunchApprovedExe(IntPtr, string, string, int)"/>. | 208 | /// See <see cref="IEngine.LaunchApprovedExe(IntPtr, string, string, int)"/>. |
| 250 | /// </summary> | 209 | /// </summary> |
| 251 | /// <param name="hwndParent"></param> | ||
| 252 | /// <param name="wzApprovedExeForElevationId"></param> | ||
| 253 | /// <param name="wzArguments"></param> | ||
| 254 | /// <param name="dwWaitForInputIdleTimeout"></param> | ||
| 255 | void LaunchApprovedExe( | 210 | void LaunchApprovedExe( |
| 256 | IntPtr hwndParent, | 211 | IntPtr hwndParent, |
| 257 | [MarshalAs(UnmanagedType.LPWStr)] string wzApprovedExeForElevationId, | 212 | [MarshalAs(UnmanagedType.LPWStr)] string wzApprovedExeForElevationId, |
| @@ -262,7 +217,6 @@ namespace WixToolset.Mba.Core | |||
| 262 | /// <summary> | 217 | /// <summary> |
| 263 | /// Sets the URL to the update feed. | 218 | /// Sets the URL to the update feed. |
| 264 | /// </summary> | 219 | /// </summary> |
| 265 | /// <param name="url">URL of the update feed.</param> | ||
| 266 | void SetUpdateSource( | 220 | void SetUpdateSource( |
| 267 | [MarshalAs(UnmanagedType.LPWStr)] string url | 221 | [MarshalAs(UnmanagedType.LPWStr)] string url |
| 268 | ); | 222 | ); |
| @@ -270,9 +224,6 @@ namespace WixToolset.Mba.Core | |||
| 270 | /// <summary> | 224 | /// <summary> |
| 271 | /// See <see cref="IEngine.CompareVersions(string, string)"/>. | 225 | /// See <see cref="IEngine.CompareVersions(string, string)"/>. |
| 272 | /// </summary> | 226 | /// </summary> |
| 273 | /// <param name="wzVersion1"></param> | ||
| 274 | /// <param name="wzVersion2"></param> | ||
| 275 | /// <param name="pnResult"></param> | ||
| 276 | void CompareVersions( | 227 | void CompareVersions( |
| 277 | [MarshalAs(UnmanagedType.LPWStr)] string wzVersion1, | 228 | [MarshalAs(UnmanagedType.LPWStr)] string wzVersion1, |
| 278 | [MarshalAs(UnmanagedType.LPWStr)] string wzVersion2, | 229 | [MarshalAs(UnmanagedType.LPWStr)] string wzVersion2, |
| @@ -297,93 +248,94 @@ namespace WixToolset.Mba.Core | |||
| 297 | public enum ActionState | 248 | public enum ActionState |
| 298 | { | 249 | { |
| 299 | /// <summary> | 250 | /// <summary> |
| 300 | /// | 251 | /// No action. |
| 301 | /// </summary> | 252 | /// </summary> |
| 302 | None, | 253 | None, |
| 303 | 254 | ||
| 304 | /// <summary> | 255 | /// <summary> |
| 305 | /// | 256 | /// Uninstall action. |
| 306 | /// </summary> | 257 | /// </summary> |
| 307 | Uninstall, | 258 | Uninstall, |
| 308 | 259 | ||
| 309 | /// <summary> | 260 | /// <summary> |
| 310 | /// | 261 | /// Install action. |
| 311 | /// </summary> | 262 | /// </summary> |
| 312 | Install, | 263 | Install, |
| 313 | 264 | ||
| 314 | /// <summary> | 265 | /// <summary> |
| 315 | /// | 266 | /// Modify action. |
| 316 | /// </summary> | 267 | /// </summary> |
| 317 | Modify, | 268 | Modify, |
| 318 | 269 | ||
| 319 | /// <summary> | 270 | /// <summary> |
| 320 | /// | 271 | /// Repair action. |
| 321 | /// </summary> | 272 | /// </summary> |
| 322 | Repair, | 273 | Repair, |
| 323 | 274 | ||
| 324 | /// <summary> | 275 | /// <summary> |
| 325 | /// | 276 | /// Minor upgrade action. |
| 326 | /// </summary> | 277 | /// </summary> |
| 327 | MinorUpgrade, | 278 | MinorUpgrade, |
| 328 | } | 279 | } |
| 329 | 280 | ||
| 330 | /// <summary> | 281 | /// <summary> |
| 331 | /// The action for the BA to perform. | 282 | /// The action for the bundle to perform. |
| 332 | /// </summary> | 283 | /// </summary> |
| 333 | public enum LaunchAction | 284 | public enum LaunchAction |
| 334 | { | 285 | { |
| 335 | /// <summary> | 286 | /// <summary> |
| 336 | /// | 287 | /// Invalid action. |
| 337 | /// </summary> | 288 | /// </summary> |
| 338 | Unknown, | 289 | Unknown, |
| 339 | 290 | ||
| 340 | /// <summary> | 291 | /// <summary> |
| 341 | /// | 292 | /// Provide help information. |
| 342 | /// </summary> | 293 | /// </summary> |
| 343 | Help, | 294 | Help, |
| 344 | 295 | ||
| 345 | /// <summary> | 296 | /// <summary> |
| 346 | /// | 297 | /// Layout the bundle on disk, normally to prepare for offline installation. |
| 347 | /// </summary> | 298 | /// </summary> |
| 348 | Layout, | 299 | Layout, |
| 349 | 300 | ||
| 350 | /// <summary> | 301 | /// <summary> |
| 351 | /// | 302 | /// Same as Uninstall, except it will always remove itself from the package cache and Add/Remove Programs. |
| 303 | /// This should only be used to remove corrupt bundles since it might not properly clean up its packages. | ||
| 352 | /// </summary> | 304 | /// </summary> |
| 353 | UnsafeUninstall, | 305 | UnsafeUninstall, |
| 354 | 306 | ||
| 355 | /// <summary> | 307 | /// <summary> |
| 356 | /// | 308 | /// Uninstall the bundle. |
| 357 | /// </summary> | 309 | /// </summary> |
| 358 | Uninstall, | 310 | Uninstall, |
| 359 | 311 | ||
| 360 | /// <summary> | 312 | /// <summary> |
| 361 | /// | 313 | /// Cache the bundle and its packages. |
| 362 | /// </summary> | 314 | /// </summary> |
| 363 | Cache, | 315 | Cache, |
| 364 | 316 | ||
| 365 | /// <summary> | 317 | /// <summary> |
| 366 | /// | 318 | /// Install the bundle. |
| 367 | /// </summary> | 319 | /// </summary> |
| 368 | Install, | 320 | Install, |
| 369 | 321 | ||
| 370 | /// <summary> | 322 | /// <summary> |
| 371 | /// | 323 | /// Modify the bundle. |
| 372 | /// </summary> | 324 | /// </summary> |
| 373 | Modify, | 325 | Modify, |
| 374 | 326 | ||
| 375 | /// <summary> | 327 | /// <summary> |
| 376 | /// | 328 | /// Repair the bundle |
| 377 | /// </summary> | 329 | /// </summary> |
| 378 | Repair, | 330 | Repair, |
| 379 | 331 | ||
| 380 | /// <summary> | 332 | /// <summary> |
| 381 | /// | 333 | /// Launch the update registered with <see cref="IEngine.SetUpdate(string, string, long, UpdateHashType, string)"/> and then exit without waiting for it to complete. |
| 382 | /// </summary> | 334 | /// </summary> |
| 383 | UpdateReplace, | 335 | UpdateReplace, |
| 384 | 336 | ||
| 385 | /// <summary> | 337 | /// <summary> |
| 386 | /// | 338 | /// Launch the update registered with <see cref="IEngine.SetUpdate(string, string, long, UpdateHashType, string)"/> as an embedded bundle. |
| 387 | /// </summary> | 339 | /// </summary> |
| 388 | UpdateReplaceEmbedded, | 340 | UpdateReplaceEmbedded, |
| 389 | } | 341 | } |
| @@ -441,32 +393,32 @@ namespace WixToolset.Mba.Core | |||
| 441 | public enum PackageState | 393 | public enum PackageState |
| 442 | { | 394 | { |
| 443 | /// <summary> | 395 | /// <summary> |
| 444 | /// | 396 | /// Invalid state. |
| 445 | /// </summary> | 397 | /// </summary> |
| 446 | Unknown, | 398 | Unknown, |
| 447 | 399 | ||
| 448 | /// <summary> | 400 | /// <summary> |
| 449 | /// | 401 | /// The package is not on the machine (except possibly MspPackage) and should not be installed. |
| 450 | /// </summary> | 402 | /// </summary> |
| 451 | Obsolete, | 403 | Obsolete, |
| 452 | 404 | ||
| 453 | /// <summary> | 405 | /// <summary> |
| 454 | /// | 406 | /// The package is not installed. |
| 455 | /// </summary> | 407 | /// </summary> |
| 456 | Absent, | 408 | Absent, |
| 457 | 409 | ||
| 458 | /// <summary> | 410 | /// <summary> |
| 459 | /// | 411 | /// The package is not installed but is in the package cache. |
| 460 | /// </summary> | 412 | /// </summary> |
| 461 | Cached, | 413 | Cached, |
| 462 | 414 | ||
| 463 | /// <summary> | 415 | /// <summary> |
| 464 | /// | 416 | /// The package is installed. |
| 465 | /// </summary> | 417 | /// </summary> |
| 466 | Present, | 418 | Present, |
| 467 | 419 | ||
| 468 | /// <summary> | 420 | /// <summary> |
| 469 | /// | 421 | /// The package is on the machine but not active, so only uninstall operations are allowed. |
| 470 | /// </summary> | 422 | /// </summary> |
| 471 | Superseded, | 423 | Superseded, |
| 472 | } | 424 | } |
| @@ -477,68 +429,70 @@ namespace WixToolset.Mba.Core | |||
| 477 | public enum RequestState | 429 | public enum RequestState |
| 478 | { | 430 | { |
| 479 | /// <summary> | 431 | /// <summary> |
| 480 | /// | 432 | /// No change requested. |
| 481 | /// </summary> | 433 | /// </summary> |
| 482 | None, | 434 | None, |
| 483 | 435 | ||
| 484 | /// <summary> | 436 | /// <summary> |
| 485 | /// / | 437 | /// As long as there are no dependents, the package will be uninstalled. |
| 438 | /// There are some packages that can't be uninstalled, such as an ExePackage without an UninstallCommand. | ||
| 486 | /// </summary> | 439 | /// </summary> |
| 487 | ForceAbsent, | 440 | ForceAbsent, |
| 488 | 441 | ||
| 489 | /// <summary> | 442 | /// <summary> |
| 490 | /// | 443 | /// Request the package to not be installed on the machine. |
| 491 | /// </summary> | 444 | /// </summary> |
| 492 | Absent, | 445 | Absent, |
| 493 | 446 | ||
| 494 | /// <summary> | 447 | /// <summary> |
| 495 | /// | 448 | /// Request the package to be cached and not be installed on the machine. |
| 496 | /// </summary> | 449 | /// </summary> |
| 497 | Cache, | 450 | Cache, |
| 498 | 451 | ||
| 499 | /// <summary> | 452 | /// <summary> |
| 500 | /// | 453 | /// Request the package to be installed on the machine. |
| 501 | /// </summary> | 454 | /// </summary> |
| 502 | Present, | 455 | Present, |
| 503 | 456 | ||
| 504 | /// <summary> | 457 | /// <summary> |
| 505 | /// | 458 | /// Force the bundle to install the package. |
| 506 | /// </summary> | 459 | /// </summary> |
| 507 | ForcePresent, | 460 | ForcePresent, |
| 508 | 461 | ||
| 509 | /// <summary> | 462 | /// <summary> |
| 510 | /// | 463 | /// Request the package to be repaired. |
| 511 | /// </summary> | 464 | /// </summary> |
| 512 | Repair, | 465 | Repair, |
| 513 | } | 466 | } |
| 514 | 467 | ||
| 515 | /// <summary> | 468 | /// <summary> |
| 516 | /// Indicates the state of a feature. | 469 | /// Indicates the state of a feature. |
| 470 | /// See https://learn.microsoft.com/en-us/windows/win32/api/msi/nf-msi-msiqueryfeaturestatew. | ||
| 517 | /// </summary> | 471 | /// </summary> |
| 518 | public enum FeatureState | 472 | public enum FeatureState |
| 519 | { | 473 | { |
| 520 | /// <summary> | 474 | /// <summary> |
| 521 | /// | 475 | /// Invalid state. |
| 522 | /// </summary> | 476 | /// </summary> |
| 523 | Unknown, | 477 | Unknown, |
| 524 | 478 | ||
| 525 | /// <summary> | 479 | /// <summary> |
| 526 | /// | 480 | /// INSTALLSTATE_ABSENT |
| 527 | /// </summary> | 481 | /// </summary> |
| 528 | Absent, | 482 | Absent, |
| 529 | 483 | ||
| 530 | /// <summary> | 484 | /// <summary> |
| 531 | /// | 485 | /// INSTALLSTATE_ADVERTISED |
| 532 | /// </summary> | 486 | /// </summary> |
| 533 | Advertised, | 487 | Advertised, |
| 534 | 488 | ||
| 535 | /// <summary> | 489 | /// <summary> |
| 536 | /// | 490 | /// INSTALLSTATE_LOCAL |
| 537 | /// </summary> | 491 | /// </summary> |
| 538 | Local, | 492 | Local, |
| 539 | 493 | ||
| 540 | /// <summary> | 494 | /// <summary> |
| 541 | /// | 495 | /// INSTALLSTATE_SOURCE |
| 542 | /// </summary> | 496 | /// </summary> |
| 543 | Source, | 497 | Source, |
| 544 | } | 498 | } |
