(imported topic written by russwm91)
Hello below is a basic action script I’m putting together for one of our applications we use
//Downloading source files for applications
prefetch client.exe sha1:0123456789012345678901234567890123456789 size:11723 http://x/client.exe
prefetch clientz.exe sha1:0123456789012345678901234567890123456789 size:11723 http://x/clientz.exe
//Close any open instance of Client
If {exist running application “client.exe”} waithidden taskkill /F /IM client.exe
If {exist running application “client.exe”} waithidden taskkill /F /IM clientz.exe
//Remove any old instance of Ellis
//Uninstall Client
waithidden msiexec /x {044cf88e-88fd-4dd1-b9da-4236cb530a2} /passive
//uninstall Client Common Client
waithidden msiexec /x {3D8382AE-FF27-4BFE-AE02-63CCC4111E9B} /passive
//Delete Old Client Files if present from workstation before installing the new client
if exist {“c:\program files\true blue\client”} then
waithidden cmd.exe /C rd /s /q “C:\Program Files\True Blue\Client”
//Install Client Common Client
waithidden msiexec /i “Client Common - ENG.msi” /passive
//Install Client Branch
waithidden msiexec /i “Client - ENG.msi” APPSERVER=servername ISBRANCH=1 Client_SHARE="\servername" COGNOSREPORTSERVERURL=“http://servername/cognos8/” /passive
Please review my action script and provide me with ways to improve it. I have only been using Bigfix for a month so this is my first attempt at Fixlet or task authoring.
Ideally I would want it to determine weather or not client process is running and the kill it
I would like it to do a regapp look up for the uninstall parameter in case the hard coded one is different from what is on the workstation. I would like to see a check at the end to make sure it installed correctly by checking the version of the client on the workstation =XXXX if not then it failed