[Labtech]Mac Script to install Vipre Business AntiVirus.

On October 23, 2013, in How-to, Scripting, by Cubert aka (Cube Dweller)

So you want a script to install Vipre AV on Mac systems well I got just the thing for you.

Here is what I did.

Create a 2 line LT script,
In the description field of your new script type in the following, feel free to cut and paste if you want.

“I promise if this script works for me to send Cubert a Starbucks Gift card”
Now lets add our first line to the script

Line 1 = “write file” command to /tmp/myviperinstall.sh

content =


cd /tmp

curl -O http://myserver/labtech/transfer/Vipre/MacVIPREBusiness2.0.87.dmg

hdiutil attach MacVIPREBusiness2.0.87.dmgcd “/

Volumes/GFI Software VIPRE Business – 2.0.87″/

installer -pkg “GFI Software VIPRE Business Install.pkg” -target “/”

cd /tmp

sleep 5

hdiutil detach “/Volumes/GFI Software VIPRE Business – 2.0.87″/


Do not forget to edit the URL and name of the viper DMG file. I was using 2.0.87 when I wrote this so you will need to make any changes to file names and mount directory names.

*note* I left out the first line of text which normally would be (#!/bin/sh). The “Write File” function had issues with the !, not sure if I needed to escape that or not so I just left it out.

The next script line should be “Shell Extended” with a cmd of “/bin/sh /tmp/myvipreinstall.sh”

The 2 lines combined will write the script file to the Mac system and then execute the shell script. The shell script uses curl to download your DMG and then mounts DMG, and executes the PKG installer.

I am also working on updating the server preference for Mac to point to Vipre server and then updating LT database to show that AV is installed.

That will come later in the show!



Tagged with:

12 Responses to “[Labtech]Mac Script to install Vipre Business AntiVirus.”

  1. scubes13 says:

    Thanks for this write up. I used this to develop an ESET Mac Install script in LabTech.

  2. Kenneth says:

    Any luck changing the server URL?

  3. domain says:

    Definitely believe that which you stated. Your favorite reason seemed to be on the net the simplest thing to be aware of.

    I say to you, I definitely get irked while people think about
    worries that they just don’t know about. You managed to hit the nail upon the top as well as defined out the whole thing without having side effect ,
    people could take a signal. Will probably be back to get more.

  4. Seedbank.pl says:

    Obsłużyli mnie szybko i profesjonalnie

  5. The 5 ‘Credits’ perain to tҺе credit bet ƿer lіne.
    Theгe are trivial variations betweеn the tաο roulette forms, աҺere
    thе European haѕ exhibited a single ƶero

  6. Thanks for the auspicious writeup. It actually used to be
    a entertainment account it. Glance complex to far brought agreeable
    from you! However, how could we keep in touch?

  7. Hi, i think that i saw you visited my blog so i got here to return the prefer?.I am trying
    to to find issues to improve my website!I suppose its good enough to use some of your ideas!!

  8. If you revitol or bio oil don’t want to get their treatment.

    Everyone I know it’s a lengthening posture. Thiss causes the skin, giving that” fills uup yokur skin.

  9. Rita says:

    Wonderful post! We are linking to this great article on our site.
    Keep up the good writing.

  10. Face Flash says:

    It’s amazing to go to see this web page and reading the views of all friends concerning
    this paragraph, while I am also eager of getting experience.

  11. Ray says:

    Hi Cubert,
    I got to where you got and am struggling to figure out how to set the server preferences. Any luck with that?

  12. Mark says:

    You should change the name of the file you create, and the file you execute, to be the same thing 😉

Leave a Reply