diff options
Diffstat (limited to 'src/WixToolset.Mba.Core/EventArgs.cs')
-rw-r--r-- | src/WixToolset.Mba.Core/EventArgs.cs | 191 |
1 files changed, 187 insertions, 4 deletions
diff --git a/src/WixToolset.Mba.Core/EventArgs.cs b/src/WixToolset.Mba.Core/EventArgs.cs index 71bd15e1..b52b893a 100644 --- a/src/WixToolset.Mba.Core/EventArgs.cs +++ b/src/WixToolset.Mba.Core/EventArgs.cs | |||
@@ -1948,9 +1948,9 @@ namespace WixToolset.Mba.Core | |||
1948 | /// Additional arguments passed by the engine before it tries to launch the preapproved executable. | 1948 | /// Additional arguments passed by the engine before it tries to launch the preapproved executable. |
1949 | /// </summary> | 1949 | /// </summary> |
1950 | [Serializable] | 1950 | [Serializable] |
1951 | public class LaunchApprovedExeBeginArgs : CancellableHResultEventArgs | 1951 | public class LaunchApprovedExeBeginEventArgs : CancellableHResultEventArgs |
1952 | { | 1952 | { |
1953 | public LaunchApprovedExeBeginArgs(bool cancelRecommendation) | 1953 | public LaunchApprovedExeBeginEventArgs(bool cancelRecommendation) |
1954 | : base(cancelRecommendation) | 1954 | : base(cancelRecommendation) |
1955 | { | 1955 | { |
1956 | } | 1956 | } |
@@ -1960,11 +1960,11 @@ namespace WixToolset.Mba.Core | |||
1960 | /// Additional arguments passed by the engine after it finished trying to launch the preapproved executable. | 1960 | /// Additional arguments passed by the engine after it finished trying to launch the preapproved executable. |
1961 | /// </summary> | 1961 | /// </summary> |
1962 | [Serializable] | 1962 | [Serializable] |
1963 | public class LaunchApprovedExeCompleteArgs : StatusEventArgs | 1963 | public class LaunchApprovedExeCompleteEventArgs : StatusEventArgs |
1964 | { | 1964 | { |
1965 | private int processId; | 1965 | private int processId; |
1966 | 1966 | ||
1967 | public LaunchApprovedExeCompleteArgs(int hrStatus, int processId) | 1967 | public LaunchApprovedExeCompleteEventArgs(int hrStatus, int processId) |
1968 | : base(hrStatus) | 1968 | : base(hrStatus) |
1969 | { | 1969 | { |
1970 | this.processId = processId; | 1970 | this.processId = processId; |
@@ -1979,4 +1979,187 @@ namespace WixToolset.Mba.Core | |||
1979 | get { return this.processId; } | 1979 | get { return this.processId; } |
1980 | } | 1980 | } |
1981 | } | 1981 | } |
1982 | |||
1983 | /// <summary> | ||
1984 | /// Additional arguments passed by the engine before beginning an MSI transaction. | ||
1985 | /// </summary> | ||
1986 | [Serializable] | ||
1987 | public class BeginMsiTransactionBeginEventArgs : CancellableHResultEventArgs | ||
1988 | { | ||
1989 | private string transactionId; | ||
1990 | |||
1991 | public BeginMsiTransactionBeginEventArgs(string transactionId, bool cancelRecommendation) | ||
1992 | : base(cancelRecommendation) | ||
1993 | { | ||
1994 | this.transactionId = transactionId; | ||
1995 | } | ||
1996 | |||
1997 | /// <summary> | ||
1998 | /// Gets the MSI transaction Id. | ||
1999 | /// </summary> | ||
2000 | public string TransactionId | ||
2001 | { | ||
2002 | get { return this.transactionId; } | ||
2003 | } | ||
2004 | } | ||
2005 | |||
2006 | /// <summary> | ||
2007 | /// Additional arguments passed by the engine after beginning an MSI transaction. | ||
2008 | /// </summary> | ||
2009 | [Serializable] | ||
2010 | public class BeginMsiTransactionCompleteEventArgs : StatusEventArgs | ||
2011 | { | ||
2012 | private string transactionId; | ||
2013 | |||
2014 | public BeginMsiTransactionCompleteEventArgs(string transactionId, int hrStatus) | ||
2015 | : base(hrStatus) | ||
2016 | { | ||
2017 | this.transactionId = transactionId; | ||
2018 | } | ||
2019 | |||
2020 | /// <summary> | ||
2021 | /// Gets the MSI transaction Id. | ||
2022 | /// </summary> | ||
2023 | public string TransactionId | ||
2024 | { | ||
2025 | get { return this.transactionId; } | ||
2026 | } | ||
2027 | } | ||
2028 | |||
2029 | /// <summary> | ||
2030 | /// Additional arguments passed by the engine before committing an MSI transaction. | ||
2031 | /// </summary> | ||
2032 | [Serializable] | ||
2033 | public class CommitMsiTransactionBeginEventArgs : CancellableHResultEventArgs | ||
2034 | { | ||
2035 | private string transactionId; | ||
2036 | |||
2037 | public CommitMsiTransactionBeginEventArgs(string transactionId, bool cancelRecommendation) | ||
2038 | : base(cancelRecommendation) | ||
2039 | { | ||
2040 | this.transactionId = transactionId; | ||
2041 | } | ||
2042 | |||
2043 | /// <summary> | ||
2044 | /// Gets the MSI transaction Id. | ||
2045 | /// </summary> | ||
2046 | public string TransactionId | ||
2047 | { | ||
2048 | get { return this.transactionId; } | ||
2049 | } | ||
2050 | } | ||
2051 | |||
2052 | /// <summary> | ||
2053 | /// Additional arguments passed by the engine after committing an MSI transaction. | ||
2054 | /// </summary> | ||
2055 | [Serializable] | ||
2056 | public class CommitMsiTransactionCompleteEventArgs : StatusEventArgs | ||
2057 | { | ||
2058 | private string transactionId; | ||
2059 | |||
2060 | public CommitMsiTransactionCompleteEventArgs(string transactionId, int hrStatus) | ||
2061 | : base(hrStatus) | ||
2062 | { | ||
2063 | this.transactionId = transactionId; | ||
2064 | } | ||
2065 | |||
2066 | /// <summary> | ||
2067 | /// Gets the MSI transaction Id. | ||
2068 | /// </summary> | ||
2069 | public string TransactionId | ||
2070 | { | ||
2071 | get { return this.transactionId; } | ||
2072 | } | ||
2073 | } | ||
2074 | |||
2075 | /// <summary> | ||
2076 | /// Additional arguments passed by the engine before rolling back an MSI transaction. | ||
2077 | /// </summary> | ||
2078 | [Serializable] | ||
2079 | public class RollbackMsiTransactionBeginEventArgs : HResultEventArgs | ||
2080 | { | ||
2081 | private string transactionId; | ||
2082 | |||
2083 | public RollbackMsiTransactionBeginEventArgs(string transactionId) | ||
2084 | { | ||
2085 | this.transactionId = transactionId; | ||
2086 | } | ||
2087 | |||
2088 | /// <summary> | ||
2089 | /// Gets the MSI transaction Id. | ||
2090 | /// </summary> | ||
2091 | public string TransactionId | ||
2092 | { | ||
2093 | get { return this.transactionId; } | ||
2094 | } | ||
2095 | } | ||
2096 | |||
2097 | /// <summary> | ||
2098 | /// Additional arguments passed by the engine after rolling back an MSI transaction. | ||
2099 | /// </summary> | ||
2100 | [Serializable] | ||
2101 | public class RollbackMsiTransactionCompleteEventArgs : StatusEventArgs | ||
2102 | { | ||
2103 | private string transactionId; | ||
2104 | |||
2105 | public RollbackMsiTransactionCompleteEventArgs(string transactionId, int hrStatus) | ||
2106 | : base(hrStatus) | ||
2107 | { | ||
2108 | this.transactionId = transactionId; | ||
2109 | } | ||
2110 | |||
2111 | /// <summary> | ||
2112 | /// Gets the MSI transaction Id. | ||
2113 | /// </summary> | ||
2114 | public string TransactionId | ||
2115 | { | ||
2116 | get { return this.transactionId; } | ||
2117 | } | ||
2118 | } | ||
2119 | |||
2120 | /// <summary> | ||
2121 | /// Additional arguments passed by the engine before pausing Windows automatic updates. | ||
2122 | /// </summary> | ||
2123 | [Serializable] | ||
2124 | public class PauseAutomaticUpdatesBeginEventArgs : HResultEventArgs | ||
2125 | { | ||
2126 | public PauseAutomaticUpdatesBeginEventArgs() | ||
2127 | { | ||
2128 | } | ||
2129 | } | ||
2130 | |||
2131 | /// <summary> | ||
2132 | /// Additional arguments passed by the engine after pausing Windows automatic updates. | ||
2133 | /// </summary> | ||
2134 | [Serializable] | ||
2135 | public class PauseAutomaticUpdatesCompleteEventArgs : StatusEventArgs | ||
2136 | { | ||
2137 | public PauseAutomaticUpdatesCompleteEventArgs(int hrStatus) | ||
2138 | : base(hrStatus) | ||
2139 | { | ||
2140 | } | ||
2141 | } | ||
2142 | |||
2143 | /// <summary> | ||
2144 | /// Additional arguments passed by the engine before taking a system restore point. | ||
2145 | /// </summary> | ||
2146 | [Serializable] | ||
2147 | public class SystemRestorePointBeginEventArgs : HResultEventArgs | ||
2148 | { | ||
2149 | public SystemRestorePointBeginEventArgs() | ||
2150 | { | ||
2151 | } | ||
2152 | } | ||
2153 | |||
2154 | /// <summary> | ||
2155 | /// Additional arguments passed by the engine after taking a system restore point. | ||
2156 | /// </summary> | ||
2157 | [Serializable] | ||
2158 | public class SystemRestorePointCompleteEventArgs : StatusEventArgs | ||
2159 | { | ||
2160 | public SystemRestorePointCompleteEventArgs(int hrStatus) | ||
2161 | : base(hrStatus) | ||
2162 | { | ||
2163 | } | ||
2164 | } | ||
1982 | } | 2165 | } |