Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: installer/src/installer-lib/test/custom-action-fail.cpp

Issue 5675960980471808: Updated installer with custom action (Closed)
Patch Set: Created March 8, 2014, 5:06 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /**
2 * \file close_application.cpp
3 */
4
5 #include "session.h"
6
7 //-------------------------------------------------------
8 // Fail
9 //-------------------------------------------------------
10 /**
11 * A custom action that always and immediately fails.
12 * Use during testing to ensure that the installer terminates.
13 *
14 * \param[in] session_handle
15 * Windows installer session handle
16 *
17 * \return
18 * An integer interpreted as a custom action return value.
19 *
20 * \sa
21 * - MSDN [Custom Action Return Values](http://msdn.microsoft.com/en-us/librar y/aa368072%28v=vs.85%29.aspx)
22 */
23 extern "C" UINT __stdcall
24 fail( MSIHANDLE session_handle )
25 {
26 // Instantiate the session object in order to get begin/end log entries.
27 Immediate_Session session( session_handle, "fail" ) ;
28 return ERROR_INSTALL_FAILURE ;
29 }
OLDNEW

Powered by Google App Engine
This is Rietveld