I'm trying to upgrade from Windows Agent 2.0.4 and 2.0.5 to 2.1.1. All servers report Error on opening file for writing on ocsservice.exe.
If I first stop the service and the manualy install/upgrade the agent I the same error on file libay32.dll, msvcp90.dll, msvcr90.dll, mfc90u.dll, zlib1.dll, OcsWmi.dll, Sysinfo.dll, OCSInventory Front.dll, Ocsservice.exe, OcsSysTray.exe. Now ocsservice starts but is still the old version.
********************************************************
Starting OCS Inventory NG Agent 2.1.1.1 setup on 05/09/2014 at 11:49:28
Checking if setup not already running...OK.
Checking Operating System...OK, Windows 2000 or higher.
Command line is: "<remote setup location>\OCS-NG-Windows-Agent-Setup.exe"
Parsing command line arguments...OK.
Checking for silent mode...Disabled.
Checking for splash screen...Enabled.
Checking if logged in user has Administrator privileges...OK.
Creating directory <C:\Documents and Settings\All Users\Application Data\OCS Inventory NG\Agent>...
SetACL allowing Users / Power users read/write permissions on <C:\Documents and Settings\All Users\Application Data\OCS Inventory NG\Agent>...Result: 0
SetACL propagating inherited permissions on <C:\Documents and Settings\All Users\Application Data\OCS Inventory NG\Agent\Download>...Result: 0
Trying to determine if service was previously installed...Yes.
Trying to stop service and kill processes...
Is Service <OCS Inventory Service> running...No.
Trying to stop Service <OCS Inventory Service>...The service has not been started.
Is Service <OCS Inventory Service> running...No - Waiting 1 second(s) for Service to stop...
Trying to kill process OcsSystray.exe...Result: 0
Trying to kill process OcsSystray.exe...Result: 603
Trying to kill process OcsService.exe...Result: 603
Trying to kill process OCSInventory.exe...Result: 603
Trying to kill process download.exe...Result: 603
Trying to kill process inst32.exe...Result: 603
Waiting 10 seconds for processes to terminate...
Copying new files to directory <C:\Program Files\OCS Inventory Agent>...
Windows XP or higher detected, installing default cURL library and MS CRT/MFC 9.0...
ERROR copying libeay32.dll
ERROR copying msvcp90.dll
ERROR copying msvcr90.dll
ERROR copying mfc90u.dll
ERROR copying zlib1.dll
ERROR copying OcsWmi.dll
ERROR copying SysInfo.dll
ERROR copying OCSInventory Front.dll
ERROR copying OcsService.exe
ERROR copying OcsSystray.exe
Copying new files status is :(
Writing TAG <hostname> into <C:\Documents and Settings\All Users\Application Data\OCS Inventory NG\Agent\admininfo.conf> file...
Writing agent configuration file by launching ocsinventory.exe /SAVE_CONF...Result: 128
Windows Advanced Firewall is disabled. Skip adding custom rules.
[/NOW] used, so launching "C:\Program Files\OCS Inventory Agent\ocsinventory.exe"...Result: 128
Creating startup menu shortCut <C:\Documents and Settings\All Users\Start Menu\Programs\Startup\OCS Inventory NG Systray.lnk> to start Systray applet...
Checking if service OCS Inventory Service is registered into Windows Service Manager...Yes
Nothing to do to register OCS Inventory Service into Windows Service Manager.
Starting OCS Inventory Service...Ok.
ERROR: OCS Inventory NG Agent 2.1.1.1 may not work correctly since 05/09/2014 at 11:56:57
:(
Related OS: Windows 2003 SE, EE, Windows 2008 SE.
I'm running a manual script with psexec and following command:
\\<remote location>\Windows-Agent-<version>\OCS-NG-Windows-Agent-Setup.exe /S /SERVER=http://<OCS server>/ocsinventory /TAG=%COMPUTERNAME% /NOW /NOSPLASH
This worked for me to install 2.0.4 and later upgrade to 2.0.5 without reboot. If I try to update to 2.1.1 I need to reboot to let the system release ocsservice.exe. I also tried the option /UPGRADE without luck.