diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2018-12-15 21:46:30 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-15 21:46:30 -0600 |
| commit | f7020c0d16baf2b960e7123e233e20c519f6a340 (patch) | |
| tree | d2cd464ee15b2b3f304ff780c531b39bb292d331 /src/ca/exitearlywithsuccess.cpp | |
| parent | 6ed8d107e6edf16956c778bda3573f8d7a7690fc (diff) | |
| download | wix-f7020c0d16baf2b960e7123e233e20c519f6a340.tar.gz wix-f7020c0d16baf2b960e7123e233e20c519f6a340.tar.bz2 wix-f7020c0d16baf2b960e7123e233e20c519f6a340.zip | |
Import implementation of UtilCA from old repo's WixCA/scasched/scaexec. (#3)
Diffstat (limited to 'src/ca/exitearlywithsuccess.cpp')
| -rw-r--r-- | src/ca/exitearlywithsuccess.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/ca/exitearlywithsuccess.cpp b/src/ca/exitearlywithsuccess.cpp new file mode 100644 index 00000000..00828329 --- /dev/null +++ b/src/ca/exitearlywithsuccess.cpp | |||
| @@ -0,0 +1,27 @@ | |||
| 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 | } | ||
