Changeset 1255
- Timestamp:
- 06/04/03 07:10:43 (5 years ago)
- Files:
-
- trunk/swishctl/src/setup/setup.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/swishctl/src/setup/setup.cpp
r1232 r1255 18 18 19 19 // Global Variables: 20 enum dllnames { SWISHCTL=0, PCRE=1, ZLIB=2};20 enum dllnames { SWISHCTL=0, ZLIB=1 }; 21 21 22 22 23 23 // Names of files to be installed in System directory 24 24 char * 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 27 const char registrykey[] = "Software\\SWISH-E Team\\SwishCtl\\Options"; 28 28 29 29 static const char uninstallkey[] = … … 176 176 } 177 177 178 // Remove the ACCIndexkey from the registry179 // should remove the Kaurangakey if it is empty178 // Remove the SwishCtl key from the registry 179 // should remove the "SWISH-E Team" key if it is empty 180 180 bool UnregisterIndexFile() 181 181 { 182 182 RegKey key(HKEY_LOCAL_MACHINE); 183 183 184 if ( ! key.OpenKey( "Software\\ Kauranga" ) ) return false;185 return key.DeleteKey( " ACCIndex" );186 } 187 188 // Create the ACCIndexregistry key and add the184 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 189 189 // IndexLocation, IndexFiles and DLLVersion keys 190 190 bool RegisterIndexFile(char *indexdir, char *indexname) … … 202 202 } 203 203 204 // Remove reference to ACCIndexfrom the Uninstall section204 // Remove reference to SwishCtl from the Uninstall section 205 205 // of the registry 206 206 bool UnregisterUninstall() … … 209 209 210 210 if ( ! key.OpenKey( uninstallkey ) ) return false; 211 return key.DeleteKey( " ACCIndex" );211 return key.DeleteKey( "SwishCtl" ); 212 212 } 213 213 … … 217 217 218 218 string keyname(uninstallkey); 219 keyname += " ACCIndex";219 keyname += "SwishCtl"; 220 220 221 221 RegKey key(HKEY_LOCAL_MACHINE);
