Changeset 8
- Timestamp:
- 03/06/06 21:18:32 (6 years ago)
- Files:
-
- trunk/wipt-get/src/Main.cs (modified) (1 diff)
- trunk/WiptLib/src/Library.cs (modified) (2 diffs)
- trunk/Wipt.wxs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wipt-get/src/Main.cs
r4 r8 189 189 foreach(Transform transform in product.transforms) 190 190 { 191 if(transform.version.major == instVersion.major 192 && transform.version.minor == instVersion.minor) 193 { 194 transforms = transform.URL + ";"; 195 } 191 if(transform.minVersion != null) 192 { 193 if(transform.minVersion > instVersion) 194 continue; 195 } 196 if(transform.maxVersion != null) 197 { 198 if(transform.maxVersion < instVersion) 199 continue; 200 } 201 202 transforms = transform.URL + ";"; 196 203 } 197 204 } trunk/WiptLib/src/Library.cs
r7 r8 70 70 { 71 71 /// <summary> 72 /// A Version object containing the version this transform applies to.72 /// A Version object containing the minimum version this transform applies to. 73 73 /// The build member may be null. 74 74 /// </summary> 75 public Version version; 75 public Version minVersion; 76 /// <summary> 77 /// A Version object containing the maximum version this transform applies to. 78 /// The build member may be null. 79 /// </summary> 80 public Version maxVersion; 76 81 /// <summary>The URL of the transform.</summary> 77 82 public string URL; … … 539 544 switch(t.Name) 540 545 { 541 case "Version": 542 q.version = new Version( 546 case "MinVersion": 547 q.minVersion = new Version( 548 t.GetAttribute("Major"), 549 t.GetAttribute("Minor"), 550 t.GetAttribute("Build") 551 ); 552 break; 553 case "MaxVersion": 554 q.maxVersion = new Version( 543 555 t.GetAttribute("Major"), 544 556 t.GetAttribute("Minor"), trunk/Wipt.wxs
r7 r8 39 39 </Directory> 40 40 <Feature Id="DefaultFeature" Title="Default Install" Level="1"> 41 <ComponentRef Id="WiptComponent" /> 41 <ComponentRef Id="WiptgetComponent" /> 42 <ComponentRef Id="WiptguiComponent" /> 42 43 <ComponentRef Id="SystemInstallerComponent" /> 43 44 <ComponentRef Id="WiptLibComponent" />
