| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. |
| 2 | |
| 3 | #include "precomp.h" |
| 4 | |
| 5 | |
| 6 | /****************************************************************** |
| 7 | WixExitEarlyWithSuccess - entry point for WixExitEarlyWithSuccess |
| 8 | custom action which does nothing except return exit code |
| 9 | ERROR_NO_MORE_ITEMS. The Windows Installer documentation at |
| 10 | http://msdn.microsoft.com/library/aa368072.aspx indicates that |
| 11 | this exit code is not treated as an error. This will cause a |
| 12 | calling application to receive a successful return code if |
| 13 | this custom action executes. This can be useful for backwards |
| 14 | compatibility when an application redistributes an MSI and |
| 15 | a future major upgrade is released for that MSI. It should be |
| 16 | conditioned on a property set by an entry in the Upgrade table |
| 17 | of the MSI that detects newer major upgrades of the same MSI |
| 18 | already installed on the system. It should be scheduled after |
| 19 | the FindRelatedProducts action so that the property will be |
| 20 | set if appropriate. |
| 21 | ********************************************************************/ |
| 22 | extern "C" UINT __stdcall WixExitEarlyWithSuccess( |
| 23 | __in MSIHANDLE /*hInstall*/ |
| 24 | ) |
| 25 | { |
| 26 | return ERROR_NO_MORE_ITEMS; |
| 27 | } |