Changeset 8

Show
Ignore:
Timestamp:
03/06/06 21:18:32 (6 years ago)
Author:
mloar2
Message:

Who knows?

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wipt-get/src/Main.cs

    r4 r8  
    189189            foreach(Transform transform in product.transforms) 
    190190            { 
    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 + ";"; 
    196203            } 
    197204          } 
  • trunk/WiptLib/src/Library.cs

    r7 r8  
    7070    { 
    7171      /// <summary> 
    72       /// A Version object containing the version this transform applies to. 
     72      /// A Version object containing the minimum version this transform applies to. 
    7373      /// The build member may be null. 
    7474      /// </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; 
    7681      /// <summary>The URL of the transform.</summary> 
    7782      public string URL; 
     
    539544                      switch(t.Name) 
    540545                      { 
    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( 
    543555                            t.GetAttribute("Major"), 
    544556                            t.GetAttribute("Minor"), 
  • trunk/Wipt.wxs

    r7 r8  
    3939                </Directory> 
    4040                <Feature Id="DefaultFeature" Title="Default Install" Level="1"> 
    41                         <ComponentRef Id="WiptComponent" /> 
     41                        <ComponentRef Id="WiptgetComponent" /> 
     42      <ComponentRef Id="WiptguiComponent" /> 
    4243                        <ComponentRef Id="SystemInstallerComponent" /> 
    4344      <ComponentRef Id="WiptLibComponent" />