Index: nodecomment.install
===================================================================
--- nodecomment.install	(revision 8847)
+++ nodecomment.install	(working copy)
@@ -1,7 +1,8 @@
 <?php
 function nodecomment_install() {
 
-
+  drupal_set_installed_schema_version('comment', SCHEMA_UNINSTALLED);
+  
   db_query("CREATE TABLE {node_comments} (
     cid int NOT NULL default 0,
     pid int NOT NULL default 0,
@@ -58,6 +59,14 @@
   }
 }
 
+/**
+ * This update must be run before upgrading to Drupal 6, otherwise you will get 
+ * errors on upgrade, because Drupal will try to load and update comment module.
+ */
+function nodecomment_update_5001() {
+  drupal_set_installed_schema_version('comment', SCHEMA_UNINSTALLED);
+}
+
 function nodecomment_uninstall() {
   if (db_table_exists('node_comments')) {
     // The uninstall hook should do more than this and clean up the node
