Index: branches/RC/custom/install.php
===================================================================
--- branches/RC/custom/install.php	(revision 10834)
+++ branches/RC/custom/install.php	(revision 10835)
@@ -1,4 +1,29 @@
 <?php
-	$this->RunSQL('/custom/install/install_schema.sql');
-	$this->RunSQL('/custom/install/install_data.sql');
-	$this->ImportLanguage('/custom/install/english');
\ No newline at end of file
+	$module_folder = 'custom';
+
+	if (!defined('IS_INSTALL')) {
+		// separate module install
+		define('IS_INSTALL', 1);
+		define('ADMIN', 1);
+		define('REL_PATH', $module_folder);
+		define('FULL_PATH', realpath(dirname(__FILE__) . '/..') );
+
+		include_once(FULL_PATH . '/core/kernel/startup.php');
+		require_once FULL_PATH . '/core/install/install_toolkit.php';
+
+		$toolkit = new kInstallToolkit();
+	}
+	else {
+		// install, using installation wizard
+		$toolkit =& $this->toolkit;
+		/* @var $toolkit kInstallToolkit */
+	}
+
+	$application =& kApplication::Instance();
+	$application->Init();
+
+	$toolkit->RunSQL('/' . $module_folder  .'/install/install_schema.sql');
+	$toolkit->RunSQL('/' . $module_folder  .'/install/install_data.sql');
+	$toolkit->ImportLanguage('/' . $module_folder  .'/install/english');
+
+	$toolkit->finalizeModuleInstall($module_folder, false);
\ No newline at end of file

Property changes on: branches/RC/custom/install.php
___________________________________________________________________
Modified: cvs2svn:cvs-rev
## -1 +1 ##
-1.1.1.1
\ No newline at end of property
+1.1.1.1.2.1
\ No newline at end of property