Developers:HOWTO Build the OCS Inventory NG 1.X Windows Installers

From OCS Inventory NG
Jump to: navigation, search

Requirement

NSIS 2.x

TextReplace plugin http://nsis.sourceforge.net/TextReplace_plugin

Services plugin http://nsis.sourceforge.net/Services_plug-in Just copy the .dll in NSIS plugins directory in c:/Program Files/NSIS/plugins

KillProcDLL plugin http://nsis.sourceforge.net/KillProcDLL_plug-in Just copy the .dll in NSIS plugins directory in c:/Program Files/NSIS/plugins

Inetc plugin http://nsis.sourceforge.net/Inetc_plug-in Just copy the inetc.dll in NSIS plugins directory in c:/Program Files/NSIS/plugins DO NOT USE THE UTF-8 VERSION OF THE DLL (See #497001)


Build OCS Inventory Service Agent Setup

First of all, get the win32 agent sources using bazaar:

bzr branch lp:ocsinventory-windows-agent

Build Ocs_contact.exe

Get the Ocs_contact.exe source using bazaar:

bzr branch lp:ocsinventory-contact

Just copy the directory you just get as "Ocs_contact" in the win32 agent source tree (that you get previously).

Now, go to the "Ocs_contact" directory in the win32 agent source directory and compile the Ocs_contact.nsi file (right click on the file).

Build OcsAgentSetup.exe

Go to the "service_agent_setup" directory in the win32 agent source tree and compile the ocs servive agent.nsi file (right click on the file).

Et voilà, you now have the OcsAgentSetup.exe file to install the OCS Inventory service agent. Have fun !


Generate the ChangeLog file

Under Linux, just go in your win32 agnet source tree (that you get using bazaar) and type :

bzr log > ChangeLog


Build OCS Inventory NG Packager

Go in the Packager directory. Copy the c:\Program Files\NSIS directory in and build in this order the .nsi files (Right click on the file):

  • uninstocs.nsi
  • 1runasUninst.nsi
  • instocs.nsi
  • ListBox.nsi
  • 1runas.nsi
  • OcsPackager.nsi