Critical System Protection agent installation trouble

(imported topic written by tigger0191)

Hello,

I’m trying to install the SCSP. The action script below worked prior to adding the INSTALLDIR= parameter to the agent.exe command line. I know its a matter of syntax, parentheses, commas, curly braces!! ARGGHHH!

Can you take a peek at the line that starts appendfile agent.exe and tell me where I’m going wrong?

Thanks.

action parameter query “drive” with description “Please enter the drive letter you want to write the logs to.” with default “d”

download http://myenvironment.org:52311/Uploads/c33324bc3ca7c14aced146ed457e0f5de33d3aee/SRV00227.tmp

continue if {(size of it = 11864592 AND sha1 of it = “c33324bc3ca7c14aced146ed457e0f5de33d3aee”) of file “SRV00227.tmp” of folder “__Download”}

extract SRV00227.tmp

delete __appendfile

delete runinstall.bat

appendfile @echo off

appendfile cd “{((pathname of client folder of current site)& “__Download”)}”

appendfile mkdir “{((parameter “drive” of action) & “:\OSS\CSP\CSP_5.2.4”)}”

appendfile if exist “{((parameter “drive” of action) & “:\OSS\CSP\CSP_5.2.4\CSPagent-inst.log”)}” goto existinst

appendfile net start | find “Symantec Critical System Protection Agent” > null 2>&1

appendfile if %errorlevel% == 0 goto existinst

appendfile if %errorlevel% == 1 goto nocsp

appendfile :existinst

appendfile ECHO “Symantec Critical System Protection Agent is already installed. Exiting installation” > “{((parameter “drive” of action) & “:\OSS\CSP\CSP_5.2.4\CSPagentNotInstalled.log”)}”

appendfile GOTO :EOF

appendfile :nocsp

appendfile reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /v “Uninstall SIS Agent” /f

appendfile if exist “C:\Program Files (x86)\Symantec\Critical System Protection\Agent” RD /S /Q “C:\Program Files (x86)\Symantec\Critical System Protection\Agent”

appendfile RD /S /Q “C:\Program Files (x86)\Symantec\Critical System Protection”

appendfile if exist “C:\Program Files\Symantec\Critical System Protection\Agent” RD /S /Q “C:\Program Files\Symantec\Critical System Protection\Agent”

appendfile RD /S /Q “C:\Program Files\Symantec\Critical System Protection”

appendfile copy /Y TierM-agent-cert.ssl “{((parameter “drive” of action) & “:\OSS\CSP\CSP_5.2.4\TierM-agent-cert.ssl”)}”

appendfile agent.exe /s /v"MANAGEMENT_SERVER=10.47.135.204 ALT_MANAGEMENT_SERVERS=10.47.71.204 IPS_ENABLE=True REBOOT=ReallySuppress IDS_POLICY_GROUP=GCS/Windows IDS_CONFIG_GROUP=Windows COMMON_CONFIG_GROUP=Windows INSTALLDIR="{((parameter “drive” of action) & “:\Program Files\Symantec\Critical System Protection\Agent”)}" SSL_CERT_FILE="{((parameter “drive” of action) & “:\OSS\CSP\CSP_5.2.4\TierM-agent-cert.ssl”)}" -l*v+! “{((parameter “drive” of action) & “:\OSS\CSP\CSP_5.2.4\CSPagent-inst.log”)}” /qn"

appendfile :EOF

move __appendfile runinstall.bat

waithidden cmd.exe /C runinstall.bat

(imported comment written by NoahSalzman)

What happens if you just replace:

action parameter query “drive” with description “Please enter the drive letter you want to write the logs to.” with default “d”

with

parameter “drive” = “d”

I get this result:

Command succeeded appendfile agent.exe /s /v"MANAGEMENT_SERVER=10.47.135.204 ALT_MANAGEMENT_SERVERS=10.47.71.204 IPS_ENABLE=True REBOOT=ReallySuppress IDS_POLICY_GROUP=GCS/Windows IDS_CONFIG_GROUP=Windows COMMON_CONFIG_GROUP=Windows INSTALLDIR=“d:\Program Files\Symantec\Critical System Protection\Agent” SSL_CERT_FILE=“d:\OSS\CSP\CSP_5.2.4\TierM-agent-cert.ssl” -l*v+! “d:\OSS\CSP\CSP_5.2.4\CSPagent-inst.log” /qn"

Also, are you seeing this error in the Debugger rather than actually running it on a real test target? It could be simply a Debugger deficiency.

(imported comment written by tigger0191)

Turns out I needed a “” after the “=” and before the rest of the path. Like this:

INSTALLDIR="{((parameter “drive” of action) & “:\Program Files\Symantec\Critical System Protection\Agent”)}"

I don’t understand it, but that’s what solved the problem.

Thanks for your help. I do appreciate it. I did use the parameter “drive” = “d” you sent. Simpler, less potential for error.

(imported comment written by tigger0191)

I have another issue. I need to edit a .vbs file that was uploaded as part of a Windows Software Deployment Wizard operation that someone else did. They are no longer with the organization, so I don’t have access to the original file. I need to “unpack” a …tmp file. I tried with Winzip unsuccessfully. Is it possible? Do I need a particular utility?

Thanks

(imported comment written by tigger0191)

I no longer need an answer to this. We commented out the wait command line in the task, ran it on an endpoint, and found the unpacked files from there.

Thanks