
                    PACKAGE FOR MANUAL INSTALLATION / UPDATE
                              (WITHOUT INSTALLER)


1) Installation
---------------
  Please consult the wiki to install it
 
  MsOfficeKey
   - http://wiki.ocsinventory-ng.org/index.php/Plugins:MSofficeKey
   - http://wiki.ocsinventory-ng.org/index.php/Plugins:MSofficeKey/fr

  MSOfficeKey Manager
   - http://wiki.ocsinventory-ng.org/index.php/Plugins:ManageMSofficeKey
   - http://wiki.ocsinventory-ng.org/index.php/Plugins:ManageMSofficeKey/fr  


2) Update (< 2.2.0 to 2.2.x)
----------------------------
  See the "1) Installation" section.
  The SQL file "officepack.sql" don't drop the officepack table.
  However, the older vbs version may cause an incomplete data in ocsreports.
  

2) Update (>= 2.2.0 to 2.2.x)
-----------------------------
  Only replace all files (except sql file in server-db) of this package.
  Execute "officepack-guid-fr.sql"  

  
  
							IF YOU USE SEUTP.SH
								(INSTALLER)
								
####################################################################################
SCRIPT STEP BY STEP
####################################################################################
If you have a problem during setup.sh execution, you can install the plugin manually.
Report your bug at guillaume.priou@ocsinventory-ng.org or nicolas.derouet@gmail.com
####################################################################################

=======================
setup.sh
=======================
* Check that locate is installed on the system
* Check that updatedb is installed on the system
* define Map.pm directory
* Ask user for mysql server information
* Ask mysql database name

* Copy cd_officepack directory from source to /ocsreports/plugins/computer_detail/
* Copy ms_plugins directory from source to /ocsreports/plugins/main_sections/ms_plugins
* Copy img/cd_officepack.png from source to /ocsreports/plugins/computer_detail/img/
* Copy img/cd_officepack_a.png from source to /ocsreports/plugins/computer_detail/img/
* Copy img/cd_officepack_d.png from source to /ocsreports/plugins/computer_detail/img/
* Backup old french.txt and copy new french.txt file from source to /ocsreports/plugins/language/french/
* Backup old english.txt and copy new english.txt file from source to /ocsreports/plugins/language/english/
* Backup old cd_config.txt and copy new cd_config.txt from source to /ocsreports/plugins/computer_detail/
* Backup old ms_multi_search.php and copy new ms_multi_search.php file from source to /ocsreports/plugins/main_sections/ms_multi_search/
* Execute sql files to update database
* Stop Apache
* Backup old Map.pm and copy new Map.pm from source to $MAP_PM_PATH/ (path of Map.pm used
* Start Apache

======================
Upgrade your management server
======================
Before upgrading, you have to backup 
* cd_config.txt
* french.txt
* english.txt
* 4all_config.txt
Or adapt these files new version of these files

After upgrade your management server, you have to reactivate the plugin
* restore cd_config.txt
* restore french.txt
* restore english.txt
* restore 4all_config.txt 

======================
Misc
======================
Don't forget to place the vb script in agent directory (C:\Program Files\OCS Inventory Agent\Plugins)
Yous can use OCS deployment feature (method store), GPO or login script to place the script in the directory