Changeset 1255

Show
Ignore:
Timestamp:
06/04/03 07:10:43 (5 years ago)
Author:
augur
Message:

Changed setup program to write the correct registry keys.
Removed left-over references to ACCIndex.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/swishctl/src/setup/setup.cpp

    r1232 r1255  
    1818 
    1919// Global Variables: 
    20 enum dllnames { SWISHCTL=0, PCRE=1, ZLIB=2 }; 
     20enum dllnames { SWISHCTL=0, ZLIB=1 }; 
    2121 
    2222 
    2323// Names of files to be installed in System directory 
    2424char * installdlls[] = { 
    25                 "SwishCtl.dll", "pcre.dll", "zlib.dll" }; 
    26  
    27 const char registrykey[] = "Software\\Kauranga\\ACCIndex\\1.0\\Options"; 
     25                "SwishCtl.dll", "zlib.dll" }; 
     26 
     27const char registrykey[] = "Software\\SWISH-E Team\\SwishCtl\\Options"; 
    2828 
    2929static const char uninstallkey[] =  
     
    176176} 
    177177 
    178 // Remove the ACCIndex key from the registry 
    179 // should remove the Kauranga key if it is empty 
     178// Remove the SwishCtl key from the registry 
     179// should remove the "SWISH-E Team" key if it is empty 
    180180bool UnregisterIndexFile() 
    181181{ 
    182182        RegKey key(HKEY_LOCAL_MACHINE); 
    183183 
    184         if ( ! key.OpenKey( "Software\\Kauranga"  ) ) return false; 
    185         return key.DeleteKey( "ACCIndex" ); 
    186 } 
    187  
    188 // Create the ACCIndex registry key and add the  
     184        if ( ! key.OpenKey( "Software\\SWISH-E Team"  ) ) return false; 
     185        return key.DeleteKey( "SwishCtl" ); 
     186} 
     187 
     188// Create the SwishCtl registry key and add the  
    189189// IndexLocation, IndexFiles and DLLVersion keys  
    190190bool RegisterIndexFile(char *indexdir, char *indexname) 
     
    202202} 
    203203 
    204 // Remove reference to ACCIndex from the Uninstall section  
     204// Remove reference to SwishCtl from the Uninstall section  
    205205// of the registry  
    206206bool UnregisterUninstall() 
     
    209209 
    210210        if ( ! key.OpenKey( uninstallkey ) ) return false; 
    211         return key.DeleteKey( "ACCIndex" ); 
     211        return key.DeleteKey( "SwishCtl" ); 
    212212} 
    213213 
     
    217217 
    218218        string keyname(uninstallkey); 
    219         keyname += "ACCIndex"; 
     219        keyname += "SwishCtl"; 
    220220 
    221221        RegKey key(HKEY_LOCAL_MACHINE);