diff --git a/docs/Docs.vcproj b/docs/Docs.vcproj
index eacab0a..c257533 100644
--- a/docs/Docs.vcproj
+++ b/docs/Docs.vcproj
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="Windows-1252"?>
 <VisualStudioProject
 	ProjectType="Visual C++"
-	Version="9,00"
+	Version="9.00"
 	Name="Docs"
 	ProjectGUID="{CFAD4001-CC90-415E-87AC-1A85446BFA54}"
 	RootNamespace="Docs"
@@ -29,7 +29,7 @@
 			<Tool
 				Name="VCCustomBuildTool"
 				Description="Calling help build script..."
-				CommandLine="builddocs.bat&#x0D;&#x0A;"
+				CommandLine="createConf.vbs &#x0D;&#x0A;builddocs.bat&#x0D;&#x0A;"
 				AdditionalDependencies=""
 				Outputs=".\en_US\pgadmin3.chm;.\en_US\pgadmin3.hhp.cached"
 			/>
diff --git a/docs/createConf.vbs b/docs/createConf.vbs
new file mode 100644
index 0000000..82bbe37
--- /dev/null
+++ b/docs/createConf.vbs
@@ -0,0 +1,29 @@
+Set objFS = CreateObject("Scripting.FileSystemObject")
+
+' *********** Read the version from version.h ***********
+strFile= "..\pgadmin\include\version.h"
+Set objFile = objFS.OpenTextFile(strFile, 1)
+Do Until objFile.AtEndOfStream
+    strLine = objFile.ReadLine
+    If InStr(strLine,"#define VERSION_PACKAGE")> 0 then
+	strLongToken= split(strLine)
+	strLongVer = strLongToken(2)
+    End If
+Loop
+objFile.Close
+strShortToken = split(strLongVer, ".")
+strShortVer = strShortToken(0) & "." & strShortToken(1)
+
+' ********** Copy the conf.py.in file as conf.py *********
+objFS.Copyfile "en_US\conf.py.in" , "en_US\conf.py"
+
+' ****** Replace the Long and Short version in conf.py file ******
+strConfFile = "en_US\conf.py"
+Set objConfFile = objFS.OpenTextFile(strConfFile, 1)
+strText = objConfFile.ReadAll
+objConfFile.Close
+strText = Replace(strText, "PGADMIN_LONG_VERSION", strLongVer)
+strText = Replace(strText, "PGADMIN_SHORT_VERSION", strShortVer)
+Set objConfFile = objFS.OpenTextFile(strConfFile, 2)
+objConfFile.WriteLine strText
+objConfFile.Close
\ No newline at end of file
