diff options
author | Rob Mensching <rob@firegiant.com> | 2021-05-03 09:55:22 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2021-05-03 09:55:22 -0700 |
commit | ff659159e041bf6c083e6b7fcb9b726065a9dd73 (patch) | |
tree | ea95bf3d3e031edcee65de33b9e6954178be669c /src/ext/Util/ca/exitearlywithsuccess.cpp | |
parent | 8a8a25695351ee542f08886a9d0957c78c6af366 (diff) | |
download | wix-ff659159e041bf6c083e6b7fcb9b726065a9dd73.tar.gz wix-ff659159e041bf6c083e6b7fcb9b726065a9dd73.tar.bz2 wix-ff659159e041bf6c083e6b7fcb9b726065a9dd73.zip |
Move Util.wixext into ext
Diffstat (limited to 'src/ext/Util/ca/exitearlywithsuccess.cpp')
-rw-r--r-- | src/ext/Util/ca/exitearlywithsuccess.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/ext/Util/ca/exitearlywithsuccess.cpp b/src/ext/Util/ca/exitearlywithsuccess.cpp new file mode 100644 index 00000000..00828329 --- /dev/null +++ b/src/ext/Util/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 | } | ||