(imported topic written by tigger0191)
Hello,
My action script looks like this:
continue if {(size of it = 943 AND sha1 of it = “fe868bba074fa393521fb9d1ce1dc76fb7eb0d62”) of file “CSPUninstNoRebootvbs.tmp” of folder “__Download”}
extract CSPUninstNoRebootvbs.tmp
script “{((pathname of client folder of current site) & “__Download\CSPUninstNoReboot.vbs”)}”
// pause while {exists running application “c:\windows\system32\msiexec.exe”}
My result in the log is this:
Command succeeded script "C:\Program Files (x86)\BigFix Enterprise\BES Cl
__BESData\opsite399__Download\CSPUninstNoReboot.vbs" (fixlet 182511)
BUT - I get a Windows Script Host GUI error dialogue that says "There is no extension in “C:\Program”.
In the bigger picture, what I’m trying to do is uninstall an old version of Symantec Critical System Protection and install a new version with a reboot after each, using tasks in a baseline. The part above is the uninstall task, which works when using appendfile to build a .bat to run my .vbs (see action script below), except for the timing. When I do it this way, the task does not wait until the uninstall is complete before doing the next task in the baseline (a reboot). You can see a commented out “pause while”. I was trying to use msiexec.exe in a pause while, but sometimes that process does not exit even though the uninstall completes successfully. I went to trying out the “script” command after discovering it in the action guide.
delete __appendfile
delete rununinstall.bat
appendfile @echo off
appendfile cd “{((pathname of client folder of current site)& “__Download”)}”
appendfile cscript.exe //B //Nologo CSPUninstNoReboot.vbs
appendfile :EOF
move __appendfile rununinstall.bat
waithidden rununinstall.bat
Any ideas on how to make this work?