aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Mba.Core/PackageInfo.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Mba.Core/PackageInfo.cs')
-rw-r--r--src/WixToolset.Mba.Core/PackageInfo.cs35
1 files changed, 7 insertions, 28 deletions
diff --git a/src/WixToolset.Mba.Core/PackageInfo.cs b/src/WixToolset.Mba.Core/PackageInfo.cs
index 75a0fd53..567a7cdd 100644
--- a/src/WixToolset.Mba.Core/PackageInfo.cs
+++ b/src/WixToolset.Mba.Core/PackageInfo.cs
@@ -10,27 +10,6 @@ namespace WixToolset.Mba.Core
10 /// <summary> 10 /// <summary>
11 /// 11 ///
12 /// </summary> 12 /// </summary>
13 public enum CacheType
14 {
15 /// <summary>
16 ///
17 /// </summary>
18 No,
19
20 /// <summary>
21 ///
22 /// </summary>
23 Yes,
24
25 /// <summary>
26 ///
27 /// </summary>
28 Always,
29 }
30
31 /// <summary>
32 ///
33 /// </summary>
34 public enum PackageType 13 public enum PackageType
35 { 14 {
36 /// <summary> 15 /// <summary>
@@ -113,7 +92,7 @@ namespace WixToolset.Mba.Core
113 public string InstallCondition { get; internal set; } 92 public string InstallCondition { get; internal set; }
114 93
115 /// <inheritdoc/> 94 /// <inheritdoc/>
116 public CacheType CacheType { get; internal set; } 95 public BOOTSTRAPPER_CACHE_TYPE CacheType { get; internal set; }
117 96
118 /// <inheritdoc/> 97 /// <inheritdoc/>
119 public bool PrereqPackage { get; internal set; } 98 public bool PrereqPackage { get; internal set; }
@@ -198,7 +177,7 @@ namespace WixToolset.Mba.Core
198 /// <param name="node"></param> 177 /// <param name="node"></param>
199 /// <param name="attributeName"></param> 178 /// <param name="attributeName"></param>
200 /// <returns></returns> 179 /// <returns></returns>
201 public static CacheType? GetCacheTypeAttribute(XPathNavigator node, string attributeName) 180 public static BOOTSTRAPPER_CACHE_TYPE? GetCacheTypeAttribute(XPathNavigator node, string attributeName)
202 { 181 {
203 string attributeValue = BootstrapperApplicationData.GetAttribute(node, attributeName); 182 string attributeValue = BootstrapperApplicationData.GetAttribute(node, attributeName);
204 183
@@ -207,17 +186,17 @@ namespace WixToolset.Mba.Core
207 return null; 186 return null;
208 } 187 }
209 188
210 if (attributeValue.Equals("yes", StringComparison.InvariantCulture)) 189 if (attributeValue.Equals("keep", StringComparison.InvariantCulture))
211 { 190 {
212 return CacheType.Yes; 191 return BOOTSTRAPPER_CACHE_TYPE.Keep;
213 } 192 }
214 else if (attributeValue.Equals("always", StringComparison.InvariantCulture)) 193 else if (attributeValue.Equals("force", StringComparison.InvariantCulture))
215 { 194 {
216 return CacheType.Always; 195 return BOOTSTRAPPER_CACHE_TYPE.Force;
217 } 196 }
218 else 197 else
219 { 198 {
220 return CacheType.No; 199 return BOOTSTRAPPER_CACHE_TYPE.Remove;
221 } 200 }
222 } 201 }
223 202