Changeset 7
- Timestamp:
- 02/25/06 13:18:02 (6 years ago)
- Files:
-
- trunk/Makefile (modified) (3 diffs)
- trunk/WiptLib/src/Library.cs (modified) (3 diffs)
- trunk/WiptSchema.xsd (modified) (4 diffs)
- trunk/Wipt.sln (modified) (2 diffs)
- trunk/Wipt.wxs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Makefile
r4 r7 8 8 cd ..\wipt-get 9 9 nmake /$(MAKEFLAGS) wipt-get.exe 10 cd ..\wipt-gui 11 nmake /$(MAKEFLAGS) wipt-gui.exe 10 12 cd .. 11 13 -mkdir bin … … 13 15 copy /y wiptlib\wiptlib.dll bin 14 16 copy /y System.Installer\System.Installer.dll bin 17 copy /y wipt-gui\wipt-gui.exe bin 15 18 16 19 wipt.msi: all … … 24 27 25 28 clean: 29 -rmdir /s /q bin 26 30 -del Wipt.msi Wipt.wixobj 27 31 cd System.Installer trunk/WiptLib/src/Library.cs
r6 r7 131 131 132 132 /// <remarks> 133 /// The Dependency class represents a dependency. 134 /// </remarks> 135 [Serializable()] 136 public class Dependency 137 { 138 public string productName; 139 public Version minVersion; 140 public Version maxVersion; 141 142 public Dependency(string ProductName) 143 { 144 productName = ProductName; 145 } 146 } 147 148 /// <remarks> 133 149 /// The Product class represents an installable product, such as rwho or 134 150 /// Wipt. … … 149 165 /// </summary> 150 166 public Version develVersion; 151 /// <summary>A array of transforms for this product.</summary> 167 /// <summary>An array of Dependency objects this product depends on.</summary> 168 public Dependency[] dependencies; 169 /// <summary>An array of transforms for this product.</summary> 152 170 public Transform[] transforms; 153 171 … … 437 455 ); 438 456 break; 457 case "Dependency": 458 Dependency d = new Dependency(e.GetAttribute("ProductName")); 459 if(p.dependencies == null) 460 { 461 p.dependencies = new Dependency[1]; 462 p.dependencies[0] = d; 463 } 464 else 465 { 466 Dependency[] nd = new Dependency[p.dependencies.Length + 1]; 467 Array.Copy(p.dependencies, nd, p.dependencies.Length); 468 nd[p.dependencies.Length] = d; 469 p.dependencies = nd; 470 } 471 foreach(XmlElement t in e.ChildNodes) 472 { 473 switch(t.Name) 474 { 475 case "MinVersion": 476 d.minVersion = new Version( 477 t.GetAttribute("Major"), 478 t.GetAttribute("Minor"), 479 t.GetAttribute("Build") 480 ); 481 break; 482 case "MaxVersion": 483 d.maxVersion = new Version( 484 t.GetAttribute("Major"), 485 t.GetAttribute("Minor"), 486 t.GetAttribute("Build") 487 ); 488 break; 489 } 490 } 491 break; 439 492 case "Package": 440 493 Package a = new Package(e.GetAttribute("ProductCode")); trunk/WiptSchema.xsd
r2 r7 1 1 <?xml version="1.0" encoding="utf-8" ?> 2 2 <xs:schema targetNamespace="urn:xmlns:sigwin:wipt-get:repository" xmlns="urn:xmlns:sigwin:wipt-get:repository" 3 xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="0. 2">3 xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" version="0.3"> 4 4 <xs:element name="Repository"> 5 5 <xs:complexType> … … 16 16 <xs:element name="StableVersion" type="Version" minOccurs="0" maxOccurs="1" /> 17 17 <xs:element name="DevelVersion" type="Version" minOccurs="0" maxOccurs="1" /> 18 <xs:element name="Dependency" type="Dependency" minOccurs="0" maxOccurs="unbounded" /> 18 19 <xs:element name="Package" type="Package" maxOccurs="unbounded" /> 19 20 <xs:element name="Transform" type="Transform" minOccurs="0" maxOccurs="unbounded" /> … … 38 39 <xs:attribute name="Minor" type="xs:int" /> 39 40 <xs:attribute name="Build" type="xs:int" /> 40 <xs:attribute name="MatchMode" type="xs:int" />41 41 </xs:complexType> 42 <xs:complexType name="Dependency"> 43 <xs:sequence> 44 <xs:element name="MinVersion" type="Version" minOccurs="0" maxOccurs="1" /> 45 <xs:element name="MaxVersion" type="Version" minOccurs="0" maxOccurs="1" /> 46 </xs:sequence> 47 <xs:attribute name="ProductName" type="xs:string" use="required" /> 48 </xs:complexType> 42 49 <xs:complexType name="Package"> 43 50 <xs:sequence> … … 49 56 <xs:complexType name="Transform"> 50 57 <xs:sequence> 51 <xs:element name="Version" type="Version" minOccurs="0" maxOccurs="1" /> 52 <xs:element name="UpgradeCode" type="xs:string" minOccurs="0" maxOccurs="1" /> 53 <xs:element name="ProductCode" type="xs:string" minOccurs="0" maxOccurs="1" /> 58 <xs:element name="MinVersion" type="Version" minOccurs="0" maxOccurs="1" /> 59 <xs:element name="MaxVersion" type="Version" minOccurs="0" maxOccurs="1" /> 54 60 <xs:element name="URL" type="xs:string" minOccurs="1" maxOccurs="unbounded" /> 55 61 </xs:sequence> trunk/Wipt.sln
r2 r7 5 5 EndProject 6 6 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "wipt-get", "wipt-get\wipt-get.csproj", "{CE4162CC-B0C4-4541-A37D-CF64301012D4}" 7 ProjectSection(ProjectDependencies) = postProject 8 EndProjectSection 9 EndProject 10 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WiptLib", "WiptLib\WiptLib.csproj", "{269B8A70-BEDB-4C36-BAB1-05E475F9C4EC}" 7 11 ProjectSection(ProjectDependencies) = postProject 8 12 EndProjectSection … … 22 26 {CE4162CC-B0C4-4541-A37D-CF64301012D4}.Release.ActiveCfg = Release|.NET 23 27 {CE4162CC-B0C4-4541-A37D-CF64301012D4}.Release.Build.0 = Release|.NET 28 {269B8A70-BEDB-4C36-BAB1-05E475F9C4EC}.Debug.ActiveCfg = Debug|.NET 29 {269B8A70-BEDB-4C36-BAB1-05E475F9C4EC}.Debug.Build.0 = Debug|.NET 30 {269B8A70-BEDB-4C36-BAB1-05E475F9C4EC}.Release.ActiveCfg = Release|.NET 31 {269B8A70-BEDB-4C36-BAB1-05E475F9C4EC}.Release.Build.0 = Release|.NET 24 32 EndGlobalSection 25 33 GlobalSection(ExtensibilityGlobals) = postSolution trunk/Wipt.wxs
r2 r7 22 22 <RemoveFolder Id="ACMDataDirRemove" On="uninstall" Property="ACMDataDir" /> 23 23 </Component> 24 <Component Id="Wipt Component" Guid="8C9ECEB5-A540-4700-9DED-E29B13582AD7">24 <Component Id="WiptgetComponent" Guid="8C9ECEB5-A540-4700-9DED-E29B13582AD7"> 25 25 <File Id="wiptget.exeFile" Name="WIPT-GET.EXE" DiskId="1" src="wipt-get\wipt-get.exe" Vital="yes" KeyPath="yes" /> 26 26 <Environment Id="UpdatePath" Name="PATH" Action="create" System="yes" Part="last" Value="[INSTALLDIR]" /> 27 27 </Component> 28 <Component Id="WiptguiComponent" Guid="B4FCF30E-409C-45D4-81AE-CB41F0B88BF7"> 29 <File Id="wiptgui.exeFile" Name="WIPT-GUI.EXE" DiskId="1" src="wipt-gui\wipt-gui.exe" Vital="yes" KeyPath="yes" /> 30 </Component> 28 31 </Directory> 29 32 </Directory>
