(imported topic written by skuumm)
Then I deploy CPM 10.6 SP2 to some of my clients, alle steps in the actions script comples BUT the task end in status FAILED and CPM is NOT installed correct…
What the hell to do?
(imported topic written by skuumm)
Then I deploy CPM 10.6 SP2 to some of my clients, alle steps in the actions script comples BUT the task end in status FAILED and CPM is NOT installed correct…
What the hell to do?
(imported comment written by Tim.Rice)
Check the client log to see what the return code from the installer was.
(imported comment written by skuumm)
sorry, my mistake… the task ends in “failed” state
it fails on this step:
Failed
waithidden “{download path “TMCPMInstaller.exe”}” -f “multi-language” -i “{name of drive of system folder & “” & following text of last “” of value of variable “ProgramFiles” of environment & “\Trend Micro”}”
The task is workning just fine on other maschines-.
(imported comment written by skuumm)
Now we also have the issue with all steped “completed” but the program is not installed. errorcode 5
Core Protection Module - Endpoint Deploy (Version 10.6 Service Pack 2)
COMPUTER
Summary
The action failed.
This action has been applied 1 time and will not be applied again.
Status
Failed
Start Time
28-10-2013 10:55:24
End Time
28-10-2013 10:56:03
Exit Code
5
Action Script Execution Detail
Completed
// action script to deploy CPM Endpoint application
Completed
begin prefetch block
Completed
if {x64 of operating system}
Completed
add prefetch item name=TMCPMInstaller.exe sha1=2034f356a8a2f18c0af7799ec63bbc10dfa0485b size=131720166 url=http://esp-download.trendmicro.com/download/cpm/TMCPMInstaller_x64_10.6.0.3014_en.exe
Completed
else
Completed
// add prefetch item for 32-bit installer
Completed
add prefetch item name=TMCPMInstaller.exe sha1=6bebc7cd3e2de6e619d08d4984a907efd7fcad54 size=114434959 url=http://esp-download.trendmicro.com/download/cpm/TMCPMInstaller_x86_10.6.0.3014_en.exe
Completed
endif
Completed
end prefetch block
Completed
// specify custom install path
Completed
action parameter query “install_path” with description “Specify an installation path%0A%0AFor default installation path, leave blank”
Completed
// *** CHECK *** Action fails here if install path contains %environment_variables% OR illegal characters " ? * | / < > and :
Completed
// OR if the path has no drive letter specified, i.e. “\folder1\folder2”
Completed
continue if {(if (it = “”) then (true) else ((not exists matches (regular expression “[%25%22?|/<>:]") of it) of ((parenthesized part 3 of matches (regular expression "^(\w+):(\)?(.)$”) of it) as string) of (if (it starts with “%22” AND it ends with “%22”) then ((preceding text of position (length of it - 1) of it) of (following text of position 1 of it) of it) else (it)))) of ((parameter “install_path” of action) as string)}
Completed
// *** CHECK *** Action fails here if default install path ("") OR custom install path does not contain a valid drive that meets minimum 700 MB space requirement
Completed
continue if {(if (it = “”) then (exists it whose (type of it = “DRIVE_FIXED” AND free space of it >= 70010241024) of (drive of parent folder of client)) else (if (exists parenthesized part 2 of matches (regular expression “^(%22)?(\w):”) of it) then ((exists drive it whose (type of it = “DRIVE_FIXED” AND free space of it >= 70010241024)) of ((parenthesized part 2 of matches (regular expression “^(%22)?(\w):”) of it as string) & “:”)) else (false))) of ((parameter “install_path” of action) as string)}
Completed
//delete CPMInstallResult.log
Completed
delete “{pathname of windows folder}\CPMInstallResult.log”
Completed
//rename temp file(if exist) at SYSTEMDRIVE before running installer
Completed
if {exist file ((value of variable “SYSTEMDRIVE” of environment) & “” & “temp”)}
Completed
move {((value of variable “SYSTEMDRIVE” of environment) & “” & “temp”)} {((value of variable “SYSTEMDRIVE” of environment) & “” & “temp_trendmicrocpm”)}
Completed
endif
Completed
continue if { not exist file ((value of variable “SYSTEMDRIVE” of environment) & “” & “temp”)}
Completed
// run installer. To avoid a Windows API bug, the -i option should always be the last one
Completed
if {((parameter “install_path” of action)) as string = “”}
Completed
// default path
Completed
if {version of client < “8.0”}
Completed
waithidden “{download path “TMCPMInstaller.exe”}” -l “en” -i “{name of drive of system folder & “” & following text of last “” of value of variable “ProgramFiles” of environment & “\Trend Micro”}”
Completed
else
Completed
waithidden “{download path “TMCPMInstaller.exe”}” -f “multi-language” -i “{name of drive of system folder & “” & following text of last “” of value of variable “ProgramFiles” of environment & “\Trend Micro”}”
Completed
endif
Completed
else
Completed
// custom path
Completed
if {version of client < “8.0”}
Completed
waithidden “{download path “TMCPMInstaller.exe”}” -l “en” -i “{(if (exists substring between “%22” of it) then (substring between “%22” of it) else (it)) of ((parameter “install_path” of action) as string)}”
Completed
else
Completed
waithidden “{download path “TMCPMInstaller.exe”}” -f “multi-language” -i “{(if (exists substring between “%22” of it) then (substring between “%22” of it) else (it)) of ((parameter “install_path” of action) as string)}”
Completed
endif
Completed
endif
Completed
// Apply default ondemand.ini [on demand settings wizard]
Completed
delete ondemand.ini
Completed
delete “{(value “Application Path” of keys “HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\CPM” of registry as string)}\ondemand.ini”
Completed
createfile until __DONE
Completed
[Scan Now Configuration]
Completed
Enable = 1
Completed
ScanAllFiles = 1
Completed
IntelliScan = 1
Completed
ExtList =
Completed
ScanCompressed = 1
Completed
CompressedLayer = 2
Completed
ScanBoot = 1
Completed
IntelliTrap = 1
Completed
ScanSpeed = 1
Completed
EnableExclusion = 1
Completed
ActiveAction = 1
Completed
EnableUniAct = 1
Completed
BkUpIfClean = 1
Completed
MoveDir = {value “Application Path” of keys “HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\CPM” of registry as string}\Quarantine
Completed
CleanFailedMoveDir = {value “Application Path” of keys “HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\CPM” of registry as string}\Quarantine
Completed
Completed
[Scan Now Configuration Ex]
Completed
ExcludeTrendProduct = 1
Completed
ExcludedFolder =
Completed
ExcludedFile =
Completed
ExcludedExt =
Completed
Completed
[Spyware Scan Now Configuration]
Completed
Enable = 1
Completed
ActionType = 1
Completed
__DONE
Completed
copy __createfile “{(value “Application Path” of keys “HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\CPM” of registry as string)}\ondemand.ini”
Completed
waithidden “{(value “Application Path” of keys “HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\CPM” of registry as string)}\TMCPMCLI.exe” CONFIG -i “{(value “Application Path” of keys “HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\CPM” of registry as string)}\ondemand.ini”
Completed
regset “[HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\CPM]” “SetDefaultScanSettingsActionID”="{id of active action}"
Completed
// Apply default realtime.ini [real-time settings wizard]
Completed
delete realtime.ini
Completed
delete “{(value “Application Path” of keys “HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\CPM” of registry as string)}\realtime.ini”
Completed
createfile until __DONE
Completed
[Real Time Scan Configuration]
Completed
Enable = 1
Completed
ScanIncoming = 1
Completed
ScanOutgoing = 1
Completed
ScanAllFiles = 1
Completed
IntelliScan = 1
Completed
ExtList =
Completed
ScanShutdown = 0
Completed
ScanNetwork = 0
Completed
ScanCompressed = 1
Completed
CompressedLayer = 2
Completed
IntelliTrap = 1
Completed
EnableExclusion = 1
Completed
ActiveAction = 1
Completed
EnableUniAct = 1
Completed
BkUpIfClean = 1
Completed
MoveDir = {value “Application Path” of keys “HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\CPM” of registry as string}\Quarantine
Completed
CleanFailedMoveDir = {value “Application Path” of keys “HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\CPM” of registry as string}\Quarantine
Completed
Completed
[Spyware Real Time Scan Configuration]
Completed
Enable = 1
Completed
ActionType = 1
Completed
Completed
[Real Time Scan Configuration Ex]
Completed
ExcludeTrendProduct = 1
Completed
ExcludedFolder = {(concatenation “|” of ((if (exists regapp “besclient.exe”) then (pathname of parent folder of regapp “besclient.exe” as string & “__BESData”) else “C:\Program Files\BigFix Enterprise\BES Client__BESData”) ; (if (exists regapp “besrelay.exe”) then (pathname of parent folder of regapp “besrelay.exe” as string) else “C:\Program Files\BigFix Enterprise\BES Relay”) ; (if (exists value “EnterpriseServerFolder” of keys “HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\Enterprise Server” of registry) then (value “EnterpriseServerFolder” of keys “HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\Enterprise Server” of registry as string) else “C:\Program Files\BigFix Enterprise\BES Server”) ; (if (exists value “Application Path” of keys “HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\CPM” of registry) then (value “Application Path” of keys “HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\CPM” of registry as string) else “C:\Program Files\Trend Micro\Core Protection Module”) ; (if (exists value “InstallPath” of keys “HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\CPMsrv” of registry) then (value “InstallPath” of keys “HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\CPMsrv” of registry as string) else “C:\Program Files\Trend Micro\Core Protection Module Server”)))}
Completed
ExcludedFile =
Completed
ExcludedExt =
Completed
__DONE
Completed
copy __createfile “{(value “Application Path” of keys “HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\CPM” of registry as string)}\realtime.ini”
Completed
waithidden “{(value “Application Path” of keys “HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\CPM” of registry as string)}\TMCPMCLI.exe” CONFIG -i “{(value “Application Path” of keys “HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\CPM” of registry as string)}\realtime.ini”
Completed
regset “[HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\CPM]” “SetCPMRealTimeSettingsActionID”="{id of active action}"
Completed
// Apply default global.ini [global settings wizard]
Completed
delete global.ini
Completed
delete “{(value “Application Path” of keys “HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\CPM” of registry as string)}\global.ini”
Completed
createfile until __DONE
Completed
[Global Setting]
Completed
GlobalLargeCompressedFileScanSetting = 1
Completed
MaximumExtractFileSize = 2
Completed
CompressedFileCount = 100
Completed
OleLayer = 3
Completed
ExcludeExchangeStore = 1
Completed
ZipCleanOnOff = 0
Completed
EnableAssessment = 0
Completed
CookieScanner = 0
Completed
DiskReserved = 60
Completed
__DONE
Completed
copy __createfile “{(value “Application Path” of keys “HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\CPM” of registry as string)}\global.ini”
Completed
waithidden “{(value “Application Path” of keys “HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\CPM” of registry as string)}\TMCPMCLI.exe” CONFIG -i “{(value “Application Path” of keys “HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\CPM” of registry as string)}\global.ini”
Completed
regset “[HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\CPM]” “SetCPMGlobalSettingsActionID”="{id of active action}"
Completed
// Switch Site for beta and production
Completed
if {(name of current site as string as lowercase) contains “beta”}
Completed
// Switch opr AU to pre-opr AU for beta
Completed
regset “[HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\CPM\AuUpdater]” “CloudUrl”=“http://esp-p.pre-opr-au.trendmicro.com/activeupdate”
Completed
// Switch BigFix compliance for beta
Completed
regset “[HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\CPM\BigFixCompliance\License]” “SiteName”=“Trend Core Protection Module BETA”
Completed
regset “[HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\CPM\BigFixCompliance\License]” “SiteURL”=“http://sync.bigfix.com/cgi-bin/bfgather/trendcpmbeta”
Completed
else
Completed
// recovery pre-opr AU to opr AU for CPM 10.5 beta
Completed
regset “[HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\CPM\AuUpdater]” “CloudUrl”=“http://esp-p.activeupdate.trendmicro.com/activeupdate”
Completed
// recovery BigFix compliance for CPM 10.5 beta
Completed
regset “[HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\CPM\BigFixCompliance\License]” “SiteName”=“Trend Core Protection Module”
Completed
regset “[HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\CPM\BigFixCompliance\License]” “SiteURL”=“http://sync.bigfix.com/cgi-bin/bfgather/trendcpm”
Completed
endif
Completed
waithidden “{(value “Application Path” of keys “HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\CPM” of registry as string)}\BigFixLicenseChecker.exe”
Completed
// set install time.
Completed
regset “[HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\CPM\client]” “InstallTime”="{apparent registration server time}"
Completed
// Enable Endpoint Autoupdate automatically
Completed
if {(exists key “HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\CPM” whose (exists value “Application Path” whose (exists (it as folder) whose (exists file “TMCPMAuUpdater.exe” of it)) of it) of registry) AND (not exists setting “CPM_InRollbackState” whose (exists value whose (it as integer = 1) of it) of client) AND ((exists key “HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\PC-cillinNTCorp\CurrentVersion\Misc.” whose (exists value “ProgramVer” whose (it as string as version >= “1.5”) of it) of registry))}
Completed
// Windows: Set flag
Completed
regset “[HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\CPM\client]” “EnableAutoUpdate”=dword:00000001
Completed
//Unsubscribe the custom site if the site has been subscribed.
Completed
if {exists site “CustomSite_FileOnlyCustomSite_CPMAutoUpdate”}
Completed
custom site unsubscribe CustomSite_FileOnlyCustomSite_CPMAutoUpdate on “{parameter “action issue date” of action}”
Completed
endif
Completed
// Subscribe to Custom Site
Completed
custom site subscribe CustomSite_FileOnlyCustomSite_CPMAutoUpdate as “FileOnlyCustomSite_CPMAutoUpdate” on “{parameter “action issue date” of action}”
Completed
//End - Enable Endpoint Autoupdate automatically
Completed
endif
Completed
// if necessary, reboot the machine.
Completed
if {x64 of operating system}
Completed
if {(exists key “HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\PC-cillinNTCorp\CurrentVersion\HIPS” whose (exists value “NeedRebootForDrivers” of it) of x64 registry) OR (exists key “HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\PC-cillinNTCorp\CurrentVersion\HIPS” whose (exists value “NeedRebootForDrivers” of it) of registry) OR (exists key “HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\PC-cillinNTCorp\CurrentVersion\Volatile” of registry)}
Completed
// reboot
Completed
action requires restart {“CPM_DEPLOY”}
Completed
else
Completed
//in case of any pending file rename operations
Completed
//action may require restart {“CPM_DEPLOY”}
Completed
endif
Completed
else
Completed
if {(exists key “HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\PC-cillinNTCorp\CurrentVersion\HIPS” whose (exists value “NeedRebootForDrivers” of it) of registry) OR (exists key “HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\PC-cillinNTCorp\CurrentVersion\Volatile” of registry)}
Completed
// reboot
Completed
action requires restart {“CPM_DEPLOY”}
Completed
else
Completed
//in case of any pending file rename operations
Completed
//action may require restart {“CPM_DEPLOY”}
Completed
endif
Completed
endif
Completed
// OfficeScan installation reboot check
Completed
if {(exists file “CPMInstallResult.log” whose (exists line whose (it as string contains “Status=6”) of it) of windows folder)}
Completed
action requires restart {“CPM_DEPLOY”}
Completed
endif
(imported comment written by Xie_Ran91)
Exit Code - 5 basically means “A newer version of Core Protection Module exists”
You probably need to check C:\Windows\CPMInstallResult.log for detailed reason.
(imported comment written by skuumm)
the CPMInstallResult file gives just the following:
[InstallResult]
StartTime=2013/10/28 10:55:50
Status=0
Error=-13
FinishTime=2013/10/28 10:56:15
(imported comment written by Xie_Ran91)
Error = -13 means “Unknown Error”
You will need to check CPMInstall.log ClnExtor.log ComUninst.log OFCNT.log under %Windows% directory for more details in this case.
(imported comment written by skuumm)
Hereby Log files, I doen’t find anything special----
(imported comment written by Xie_Ran91)
This seems to be a bit complicated. You’d better open a support ticket.
Looks like you have installed an older version before and you are upgrading it.