Changeset 4

Show
Ignore:
Timestamp:
02/20/06 21:36:17 (6 years ago)
Author:
mloar2
Message:

I don't know what I changed.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Makefile

    r2 r4  
    1717        candle /nologo wipt.wxs 
    1818        light /nologo wipt.wixobj 
     19!IF "$(FRAMEWORKVERSION)"=="v1.1.4322" 
    1920        signcode -cn "Special Interest Group for Windows Development" wipt.msi 
     21!ELSE 
     22        signtool sign /n "Special Interest Group for Windows Development" wipt.msi 
     23!ENDIF 
    2024 
    2125clean: 
  • trunk/System.Installer/Makefile

    r2 r4  
    33System.Installer.dll: System.Installer.obj AssemblyInfo.obj 
    44        link /OUT:System.Installer.dll /INCREMENTAL:NO /NOLOGO /DLL /FIXED:No nochkclr.obj mscoree.lib msi.lib kernel32.lib System.Installer.obj 
     5!IF "$(FRAMEWORKVERSION)"=="v1.1.4322" 
    56        signcode -cn "Special Interest Group for Windows Development" System.Installer.dll 
     7!ELSE 
     8        signtool sign /n "Special Interest Group for Windows Development" System.Installer.dll 
     9!ENDIF 
    610 
    711System.Installer.obj: StdAfx.pch System.Installer.cpp 
  • trunk/System.Installer/System.Installer.cpp

    r2 r4  
    428428          return ret; 
    429429        } 
     430 
     431        Guid ApplicationDatabase::GetPackageUpgradeCode(String* path) 
     432        { 
     433          return Guid::Empty; 
     434        } 
    430435      } 
    431436    } 
  • trunk/System.Installer/System.Installer.h

    r2 r4  
    6868            static InstallState getProductState(Guid productCode); 
    6969            static int ExecuteHandler(UINT iMessageType, LPCTSTR message); 
     70            static Guid GetPackageUpgradeCode(String* path); 
    7071          private: 
    7172            static ProgressHandler* handler; 
  • trunk/wipt-get/Makefile

    r2 r4  
    33wipt-get.exe: src\Main.cs src\AssemblyInfo.cs res\App.ico ..\System.Installer\System.Installer.dll ..\WiptLib\WiptLib.dll 
    44        csc /nologo $(DEBUG) /optimize /Win32Icon:res\App.ico /r:..\System.Installer\System.Installer.dll /r:..\WiptLib\WiptLib.dll /out:wipt-get.exe src\Main.cs src\AssemblyInfo.cs 
     5!IF "$(FRAMEWORKVERSION)"=="v1.1.4322" 
    56        signcode -cn "Special Interest Group for Windows Development" wipt-get.exe 
     7!ELSE 
     8        signtool sign /n "Special Interest Group for Windows Development" wipt-get.exe 
     9!ENDIF 
    610 
    711clean: 
  • trunk/wipt-get/src/Main.cs

    r3 r4  
    5151        bool devel = false; 
    5252        bool ignoretransforms = false; 
     53        bool batch = false; 
    5354        string command = ""; 
    5455        string packages = ""; 
     
    5859          switch(arg.ToLower()) 
    5960          { 
     61            case "--batch": 
     62              batch = true; 
     63            break; 
    6064            case "--devel": 
    6165              devel = true; 
     
    7579        if(command == "") 
    7680        { 
    77           Console.WriteLine("Error: no command specified"); 
     81          Console.Error.WriteLine("Error: no command specified"); 
    7882          Usage(); 
    7983          return; 
     
    8286        if((command == "install" || command == "remove") && packages == "") 
    8387        { 
    84           Console.WriteLine("Error: no packages specified"); 
     88          Console.Error.WriteLine("Error: no packages specified"); 
    8589          Usage(); 
    8690          return; 
     
    9094        { 
    9195          case "install": 
    92             Install(packages.Split(','), devel, ignoretransforms); 
     96            Install(packages.Split(','), devel, ignoretransforms, batch); 
    9397          break; 
    9498          case "remove": 
     
    112116 
    113117    private static void Install(string[] packages, bool devel, 
    114         bool ignoretransforms
     118        bool ignoretransforms, bool batch
    115119    { 
    116120      foreach(string p in packages) 
     
    124128          if(obj == null) 
    125129          { 
    126             Console.WriteLine("No such product " + p); 
     130            Console.Error.WriteLine("No such product " + p); 
    127131            continue; 
    128132          } 
    129133          else if(obj is Suite) 
    130134          { 
    131             InstallSuite((Suite)obj, devel, ignoretransforms); 
     135            InstallSuite((Suite)obj, devel, ignoretransforms, batch); 
    132136            continue; 
    133137          } 
     
    144148          if(instVersion == null) 
    145149          { 
    146             Console.WriteLine("Specified version not listed for product " 
     150            Console.Error.WriteLine("Specified version not listed for product " 
    147151                + product.name); 
    148152            continue; 
     
    167171          if(URL == "") 
    168172          { 
    169             Console.WriteLine("No package listed for specified version of " 
     173            Console.Error.WriteLine("No package listed for specified version of " 
    170174                + product.name + ".  Contact the repository maintainer."); 
    171175            continue; 
     
    176180              && state != InstallState.Unknown) 
    177181          { 
    178             Console.WriteLine(product.name + " is already the latest version"); 
     182            Console.Error.WriteLine(product.name + " is already the latest version"); 
    179183            continue; 
    180184          } 
     
    206210          if(ret != 0) 
    207211          { 
    208             Console.WriteLine( 
     212            Console.Error.WriteLine( 
    209213                "Error code {0} returned from installProduct for " 
    210214                + product.name,ret); 
    211             Console.WriteLine(ApplicationDatabase.getErrorMessage(ret)); 
     215            Console.Error.WriteLine(ApplicationDatabase.getErrorMessage(ret)); 
    212216          } 
    213217        } 
     
    220224 
    221225    private static void InstallSuite(Suite suite, bool devel, 
    222         bool ignoretransforms) 
    223     { 
    224       Console.WriteLine(suite.name  
    225           + " is a suite consisting of the following products:"); 
    226       foreach(string s in suite.products) 
    227       { 
    228         Console.WriteLine(s); 
    229       } 
    230       Console.WriteLine("\r\nWould you like to install them?"); 
    231       Console.Write("(y or n): "); 
    232       string c = Console.ReadLine(); 
    233       while(c != "y" && c != "Y" && c != "n" && c != "N") 
    234       { 
    235         Console.Write("\r\nPlease type 'y' or 'n': "); 
     226        bool ignoretransforms, bool batch) 
     227    { 
     228      string c = ""; 
     229      if(!batch) 
     230      { 
     231        Console.WriteLine(suite.name  
     232            + " is a suite consisting of the following products:"); 
     233        foreach(string s in suite.products) 
     234        { 
     235          Console.WriteLine(s); 
     236        } 
     237        Console.WriteLine("\r\nWould you like to install them?"); 
     238        Console.Write("(y or n): "); 
    236239        c = Console.ReadLine(); 
    237       } 
    238       if(c == "y" || c == "Y") 
    239       { 
    240         Install(suite.products, devel, ignoretransforms); 
     240        while(c != "y" && c != "Y" && c != "n" && c != "N") 
     241        { 
     242          Console.Write("\r\nPlease type 'y' or 'n': "); 
     243          c = Console.ReadLine(); 
     244        } 
     245      } 
     246      if(c == "y" || c == "Y" || batch) 
     247      { 
     248        Install(suite.products, devel, ignoretransforms, batch); 
    241249      } 
    242250    } 
     
    329337        Usage:  wipt-get [options] <command> <product>[ <product> <product> ...] 
    330338        OPTIONS 
     339        --batch                     Don't ask any questions 
    331340        --devel                     Install development version 
    332341        --ignore-transforms         Don't apply transforms listed in repository 
  • trunk/WiptLib/Makefile

    r2 r4  
    33WiptLib.dll: src\Library.cs src\AssemblyInfo.cs 
    44        csc /nologo $(DEBUG) /optimize /target:library /doc:WiptLib.xml /out:WiptLib.dll src\Library.cs src\AssemblyInfo.cs 
     5!IF "$(FRAMEWORKVERSION)"=="v1.1.4322" 
    56        signcode -cn "Special Interest Group for Windows Development" WiptLib.dll 
     7!ELSE 
     8        signtool sign /n "Special Interest Group for Windows Development" WiptLib.dll 
     9!ENDIF 
    610 
    711clean: 
  • trunk/WiptLib/src/Library.cs

    r3 r4  
    110110            || ((v1.major == v2.major) && (v1.minor == v2.minor) && (v1.build < v2.build)); 
    111111      } 
    112       public static bool operator ==(Version v1, Version v2) 
    113       { 
    114         return (v1.major == v2.major) && (v1.minor == v2.minor) && (v1.build == v2.build); 
     112      public override bool Equals(object o) 
     113      { 
     114        if(!(o is Version)) 
     115        { 
     116          return false; 
     117        } 
     118         
     119        Version v = (Version)o; 
     120        return (major == v.major) && (minor == v.minor) && (build == v.build); 
    115121      } 
    116122      public static bool operator >(Version v1, Version v2) 
    117123      { 
    118124        return !((v1 < v2) || (v1 == v2)); 
    119       } 
    120       public static bool operator !=(Version v1, Version v2) 
    121       { 
    122         return !(v1 == v2); 
    123125      } 
    124126    }