Need a little help with running a file in an exsiting folder

(imported topic written by chrism91)

Need to run the following commands in BigFix to a number of servers and was wondering what the best way is to handle this.

• C:\Program Files\Network Associates\Common Framework\frminst.exe /forceuninstall

• msiexec.exe /x {35C03C04-3F1F-42C2-A989-A757EE691F65} REMOVE=ALL /q

• Install: \VIRUSSCAN_Server\ofcscan\AUTOPPC.EXE , reboot to complete removal of McAfee

I was thinking of creating a *.cmd file with the first 2 lines and another *.cmd for the 3rd line. But maybe there is an easier way.

What do you all think? Is there an easier way? Am i over thinking a simple process BigFix can handle?

Thanks

(imported comment written by chrism91)

Is this the wrong user forum for this question?

(imported comment written by JackCoates91)

Hi Chris,

I would create two fixlets and put them in a baseline – one for the uninstall commands, with relevance to detect that the product you’re uninstalling is really there, and one to install, with relevance to detect that the product you uninstalled is really gone (and that the new one isn’t there yet). This technique lets a single action bring all the machines from an unknown state to a known state, and provides safety valves for covering failed actions.

CMD wrapping is useful when you need to ensure a particular CWD (e.g. there’s lots of files in addition to the MSI), but it also makes it a little tougher to work with exit and error codes.

Also, the new software distribution tool can assist with the creation of those fixlets, if you get a chance to check it out.