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 @@
'>
The Setup Wizard will now export your existing database in preparation for the migration to the new KnowledgeTree Stack.
';
- 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.