CCTNS Offline Application Package Installation Manual On Windows (32bit) For Core Application Software (CAS)
CCTNS Offline Application Package Installation Manual On Windows (32bit) For Core Application Software (CAS)
Submitted By
Wipro Limited
Confidentiality
This document is being submitted to National Crime Records Bureau, Ministry of Home Affairs, Government of
India, with the explicit understanding that the contents would not be divulged to any third party without prior
written consent from Wipro Limited
PROJECT CONTROL
Customer Name: National Crime Records Bureau, Ministry of Home Affairs, GOI
East Block 7, R. K. Puram, New Delhi- 110066
Customer Contact Information:
[email protected]
Project Manager / Email ID: Raman Gulati/ [email protected]
DOCUMENT SIGN-OFF
DOCUMENT CONTROL
Table of Contents
1 Introduction...................................................................................................................................... 5
2 Hardware & Software Configuration ................................................................................................ 5
3 Dependents and Requirements ...................................................................................................... 5
4 Know Your WINDOWS Version ...................................................................................................... 5
5 Installation Procedure (Complete installation) ................................................................................ 6
1 Introduction
This document is intended to provide the steps to install CCTNS Offline Server Application.
2. Right click on “Computer” icon and click on properties. The screen below will get open.
The area marked in red is showing the version of Windows (here it is 32 –bit).
NOTE:
To find out whether Offline server application is installed on your system, check if the directory
C:\CCTNSApplication exists, if yes, it is installed, and you need to install with incremental
installation provided separately.
3. This procedure will delete the old offline database (if exists) and create a blank database, if
you want to preserve the old database, then take a backup of the database
“cctns_offline_db_sync_proc”
4. MySQL command to take backup: mysqldump -uroot -p[<root-password>] --routines
cctns_offline_db_sync_proc > <LocalPathForOutput>/Offline_backup_<Date>.sql
Example : mysqldump -uroot -proot--routines cctns_offline_db_sync_proc >
D:/DB_backup/Offline_backup_01-Jan-2014.sql
5. All the user(s) should be Logged off before executing the setup. Else the setup will fail.
6. If some errors are encountered while installing the file
"C:\cctns_offline_installation_log\simple.log" can be refferred.
Step1) Put the CD inside the CD-ROM, whatever you got from the NCRB Team, or browse to the
latest release downloaded from NCRB website, whatever you got from the NCRB Team.
Step2) You will find there two folders one for installation 32 bit and one for installation on 64 bit
system. Browse “Server CCTNS Application” Folder for respective bit operating system. Once you
open the Folder you will get the CCTNS.bat file.
On Windows 7, right click on file CCTNS.bat and click on Run as Administrator, as show
below.
Step3) Utility will automatically copy the installation software inside the temp folder. You will get the
below screen.
Once copying is done, all the CCTNS related software are placed inside the temp folder and user gets
the below screen.
If JDK is already present, it will prompt whether or not you want to reinstall JDK, press the No button
as shown below.
2: Now a "License Agreement" window opens. Just read the agreement and click "Accept" button to
accept and go further.
4: We require only Public JRE rest of other like Development Tools, Demo and Samples and Source
Code “Do no install this feature now”.
5: Click Next
8:Click Finish.
Step5) After the JDK installation complete press any key to continue, as show below.
Step6) Then is will the check the MySQL 5.5 installed or not. You will get the below screen.
Step7) If MySQL is already installed; check that the version should be equal or higher than 5.5.20
To check the version on command prompt you can type the command mysql -V
If version of MySQL is lower than 5.5.20, you need to upgrade, the best way to do it is as follows, but
note that this will delete all the MySQL databases from local machine, for your reference take backup
of the databases.
1. Uninstall MySQL from Control Panel->Programs
2. Delete directory MySQL from directory C:\Program Files(or whatever directory in which
MySQL is installed)
3. Delete directory MySQL from directory C:\ProgramData
4. Restart the computer.
5. Now re-run this (ServerCCTNS application installation) utility and install MySQL at this step
and go further.
If MySQL 5.5 not installed, follow the below steps to install the MySql5.5.
Follow the below mentioned steps to install My SQL Server.
1) Click Next
3) Once you press the next you will get the below screen, click Next.
6) Click on Next
8) Once installation is finished, we will get To Configure MysQl server instance wizard then Click
Next
13) Choose "Online Transaction Processing (OLTP)”,select Concurrent connections as1000 and Click Next
14) Leave the defaults (both check boxes enabled, port: 3306)
Add firewall exception for this port need to be checked. This is required to connect to the database
server from a remote location.
15) Choose "Manual Selected Default Character Set/Collation", select “utf8” and Click Next
16) Check the "Include Bin Directory in Windows PATH" checkbox and click “Next”
After the service has been successfully started and the security settings successfully applied, here is
what you can do to test your configuration.
Step8) once the Mysql5.5 installation is completed. It will ask you to press any key to continue. As
shown below.
Step9) Once you finish the JDK 1.6 and MySQL 5.5 installation is completedYou will get the below
screen to get the java version what you have installed on your system, press enter key as show below.
Step10) After this Offline application is copied to local system the progress is show in screen below
After this the utility will ask the MySQL credential for executing database scriptAs shown below
screen.
Enter the Application Configuration Settings (recommended values are pre-filled for ease of user) As
shown below:
MySql Driver class: This is the driver name to be used for connecting
database.
com.mysql.jdbc.Driver
cctns_offline_db_sync_proc
jdbc:mysql://localhost:3306/cctns_offline_db_sync_proc
Path of MySql Folder This is the path of MySql directory upto bin.
After these installations, utility will execute the database script to install the database schema.
Step11). Once it is finish its will provide the user with below screen.
Significance of the parameters: (recommended values are pre-filled for ease of user)
Database Driver class: This is the driver name to be used for connecting
database.
com.mysql.jdbc.Driver
Database User Name: The default user name is “cctnsuser”. Only this user
should be used, as this user has got tailored access
over database. For the security purpose the user
name is encrypted. This encryption is done at the
time of application configuration done by user.
Database User Password: The password for the default user is “cctns” to
access the database. For the security purpose the
user name is encrypted. This encryption is done at
the time of application configuration done by user.
Database Schema URL: The standard URL of the database. If the database is
installed centrally on a system and the other
desktops are connecting to it, then the URL would
contain the IP address of the system on which
database is installed.
jdbc:mysql://localhost:3306/cctns_offline_db_sync_proc
CAS State URL This is the url of the the CAS state application.
http://10.105.115.28/CCTNSWeb/Login.aspx
C:\CCTNSApplication\CCTNSApplication
Path of Report Folder This is the path where fir pdf is created. It can be any
path in file system that has write permissions.
Police Station This is the Police Station for the ongoing installation.
After providing proper inputs, the configuration screen will have all the parameters as shown below.
A confirmation message would be shown showing the police station code, this is just for information.
Click on Ok
At the last step you would be asked to review all the output shown, if no errors are shown, you have
successfully installed. If you find any error repeat the installation.
Step12) Finally as the last step an icon for CCTNS application will be generated on your desktop..
If in case the icon is not created on the desktop, follow the following steps.
a. Go to location C:\CCTNSApplication
b. Right click on CreateShortcut.bat and click Run as administrator
Step13).On clicking the CCTNS Icon you will get the CCTNS Application below screen.
Step14). User can log on to the system using the user credentials synched from state DB(as
mentioned in pre-requisites in technical manual).