(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