Compile OCS Windows Agent 
  • Download source into linux machine (I don't have a Windows cvs client)
    • cd /tmp
    • cvs -d:pserver:anonymous@ocsinventory.cvs.sourceforge.net:/cvsroot/ocsinventory login
    • cvs -z3 -d:pserver:anonymous@ocsinventory.cvs.sourceforge.net:/cvsroot/ocsinventory co -P win32_agent
    • tar czvf Win32Agent.tar.gz win32_agent
  • Copy and extract Win32Agent.tar.gz
  • Set VC++ Includes and Library (Tools > Options > Directories)
    • Include files
      • Add and make first Item
        • C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO .NET 2003\VC7\PLATFORMSDK\INCLUDE
      • Add
        • WIN32_AGENT\INCLUDE\OPENSSL\INCLUDE
    • Library files
      • Add and make first Item
        • C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO .NET 2003\VC7\PLATFORMSDK\LIB
  • Compile
    • Open Workspace > Projects
      • OCS Inventory.dsw
    • Compile
      • Do the following steps for each project in next step 
        • Project > Set Active Project
        • Build > Set Active Configuration > Win32 Release
        • F7
      • Projects In order
        • OcsWmi
        • SysInfo
        • ZIP
        • download
        • update
        • mo_dev
        • OCSInventory Agent
        • OcsServiceMsg
        • OcsService
  • Compile Installer
    • Requirements
    • Run MakeNSISW
    • File > Load Script > win32_agent\service_agent_setup\ ocs servive agent.nsi