Changeset 1632


Ignore:
Timestamp:
2000-10-30T15:21:33+13:00 (23 years ago)
Author:
sjboddie
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/checkis/checkis.cpp

    r906 r1632  
    66#pragma hdrstop
    77
    8 int __stdcall WinMain(HANDLE Instance, HANDLE /*PrevInstance*/, LPSTR CmdLineStr, int /*CmdShow*/) {
     8int __stdcall WinMain(HINSTANCE Instance, HINSTANCE /*PrevInstance*/, LPSTR CmdLineStr, int /*CmdShow*/) {
    99  HKEY hk1, hk2, hk3, hk4, hk5, lk;
    1010  char command[2048];
     
    1414  if (RegOpenKey(HKEY_LOCAL_MACHINE, "SOFTWARE", &hk1) == ERROR_SUCCESS) {
    1515    if (RegOpenKey(hk1, "Waikato University", &hk2) == ERROR_SUCCESS) {
    16       if (RegOpenKey(hk2, "FAO", &hk3) == ERROR_SUCCESS) {
     16      if (RegOpenKey(hk2, "sjnew", &hk3) == ERROR_SUCCESS) {
    1717    if (RegOpenKey(hk3, "1", &hk4) == ERROR_SUCCESS) {
    18       if (RegOpenKey(hk4, "1.00.000", &hk5) == ERROR_SUCCESS) {
     18      if (RegOpenKey(hk4, "2.26.000", &hk5) == ERROR_SUCCESS) {
    1919
    20         if (RegOpenKey(hk3, "1.00.000", &lk) == ERROR_SUCCESS) {
     20        if (RegOpenKey(hk3, "2.26.000", &lk) == ERROR_SUCCESS) {
    2121       
    2222          // look for the command to start the browser
     
    2929          while (RegEnumValue(lk, dwIndex, key, &keysize, NULL, &type,
    3030                  (unsigned char *)command, &comsize) == ERROR_SUCCESS) {
    31         // see if this is the right key
     31        // see if this is the right key (yes, this should always be library, NOT
     32        // the name of the executable
    3233        if (strcmp (key, "library") == 0) break;
    3334        else command[0] = '\0';
     
    5758    // installed ask the user whether they want to run the library now
    5859    if (MessageBox (NULL,
    59             "Would you like to run the FAO Library?",
     60            "Would you like to view the School Journal Collection?",
    6061            "Greenstone Digital Library",
    6162            MB_YESNO) == IDYES) {
Note: See TracChangeset for help on using the changeset viewer.