diff --git a/dmsctl.bat b/dmsctl.bat index f024be8..576f42f 100644 --- a/dmsctl.bat +++ b/dmsctl.bat @@ -4,7 +4,7 @@ rem KnowledgeTree Control Script rem ============= SET ENVIRONMENT VARIABLES ============== -set INSTALL_PATH=%CD% +set INSTALL_PATH=%~dp0 cd .. cd .. set ZEND_PATH=%CD% diff --git a/setup/migrate/steps/migrateServices.php b/setup/migrate/steps/migrateServices.php index a6d9fb0..de04b16 100644 --- a/setup/migrate/steps/migrateServices.php +++ b/setup/migrate/steps/migrateServices.php @@ -214,11 +214,9 @@ class migrateServices extends Step * */ private function uninstallServices() { - $this->conf = $this->getDataFromSession("installation"); // Get installation directory - if($this->conf['location'] != '') { - $func = OS."Stop";// Try the dmsctl - $this->$func(); - } + $func = OS."Stop"; + $this->$func(); + $this->shutdown(); } @@ -240,11 +238,11 @@ class migrateServices extends Step * */ private function windowsStop() { - $cmd = "sc delete KTLucene"; + $cmd = "sc stop KTLucene; sc delete KTLucene"; $this->util->pexec($cmd); - $cmd = "sc delete KTScheduler"; + $cmd = "sc stop KTScheduler; sc delete KTScheduler"; $this->util->pexec($cmd); - $cmd = "sc delete KTOpenoffice"; + $cmd = "sc stop KTOpenoffice; sc delete KTOpenoffice"; $this->util->pexec($cmd); } diff --git a/setup/migrate/templates/complete.tpl b/setup/migrate/templates/complete.tpl index fd1bbe0..651be0c 100644 --- a/setup/migrate/templates/complete.tpl +++ b/setup/migrate/templates/complete.tpl @@ -5,7 +5,7 @@ ' - . '' + . '' . 'Click Here for help on overcoming post migrate issues
'; } ?> @@ -16,7 +16,7 @@ '>     

Start new MySQL service

- In order to complete the upgrade process please start the Zend Server MySQL service and then click Next to continue (Click here for help). + In order to complete the upgrade process please start the Zend Server MySQL service and then click Next to continue (Click here for help).

diff --git a/setup/migrate/templates/database.tpl b/setup/migrate/templates/database.tpl index ba6a2c2..b1d0399 100644 --- a/setup/migrate/templates/database.tpl +++ b/setup/migrate/templates/database.tpl @@ -5,9 +5,6 @@ This step configures the connection to the database server and migrates the database.
-

The Setup Wizard will now export your existing database in preparation for the migration to the new KnowledgeTree Stack.


Please ensure that your database is backed up before proceeding. If you need assistance with backing up see the  'Backing up and restoring KnowledgeTree'  wiki entry. diff --git a/setup/wizard/lib/services/windowsOpenOffice.php b/setup/wizard/lib/services/windowsOpenOffice.php index 3ce7b23..2d64edd 100644 --- a/setup/wizard/lib/services/windowsOpenOffice.php +++ b/setup/wizard/lib/services/windowsOpenOffice.php @@ -130,7 +130,7 @@ class windowsOpenOffice extends windowsService { * @param none * @return string */ - public $name = "KTOpenOffice"; + public $name = "KTOpenoffice"; public $hrname = "KnowledgeTree OpenOffice.org Service. (KTOpenOffice)"; diff --git a/setup/wizard/lib/services/windowsScheduler.php b/setup/wizard/lib/services/windowsScheduler.php index 633ca75..17816dd 100644 --- a/setup/wizard/lib/services/windowsScheduler.php +++ b/setup/wizard/lib/services/windowsScheduler.php @@ -234,15 +234,15 @@ class windowsScheduler extends windowsService { if($state == '') { $this->writeTaskRunner(); //if (function_exists('win32_create_service')) { // TODO what if it does not exist? check how the dmsctl.bat does this - if(DEBUG) { - echo '
';
-            		print_r(array('service' => $this->name, 'display' => $this->name, 'path' => $this->getSchedulerScriptPath()));
-    	            echo '
'; - echo '
';
-    	            print_r(file_get_contents($this->getSchedulerScriptPath()));
-    	            echo '
'; - return ; - } +// if(DEBUG) { +// echo '
';
+//            		print_r(array('service' => $this->name, 'display' => $this->name, 'path' => $this->getSchedulerScriptPath()));
+//    	            echo '
'; +// echo '
';
+//    	            print_r(file_get_contents($this->getSchedulerScriptPath()));
+//    	            echo '
'; +// return ; +// } /* $response = win32_create_service(array( 'service' => $this->name, diff --git a/setup/wizard/templates/license.tpl b/setup/wizard/templates/license.tpl index cb2caec..989654a 100644 --- a/setup/wizard/templates/license.tpl +++ b/setup/wizard/templates/license.tpl @@ -4,7 +4,6 @@ foreach($errors as $k=>$e) { echo "".$e.""; } - //print_r($errors); }?>

Please read and accept the license agreement below before continuing with the setup.