NAV Install
NAV Install
- Subject: NAV Install
- From: "Alatorre, Michael" <email@hidden>
- Date: Sat, 1 Dec 2001 21:19:03 -0800
Perhaps, I'm looking to script things that don't need it (but it offers me
practice as I learn AppleScript). Anyway, in our institution, we've
standardized on the new Norton Anti-Virus 7.0.2 (Mac & PC) for our clients.
We've setup NAV servers, again Mac & PC, that take the responsibility of
regularly downloading the latest definitions...which then will be the
primary source by which the clients get their update (and avoiding having
all of our 6000+ clients--mostly PCs--going outside our network to get
them).
What I'd like to do is have AppleScript help simplify some in the
installation process for our Mac clients (OS 8.1 - 9.x only at this point).
A manual installation involves:
- mounting a public sharepoint on the Mac NAV server
- running the NAV installer from there
- after Restart, re-mount the server and copy down and replace a NAV pref
file with
a custom preference file that will re-direct to the internal NAV server
when updating definitions
- having the user launch NAV and run the LiveUpdate feature
What I thought of was to create two Classic applets and use the Startup
Items folder. The primary to be run locally or launched from the mounted
sharepoint. I'm looking for feedback or suggestions on how this looks, or
could to do this better.
-- primary file named Start NAV Install Process
tell application "Finder"
-- mount public NAV sharepoint, if needed
if not (disk "NAV:" exists) then
mount volume "afp://mac:public@cshsnavmac/NAV"
end if
-- set file/folder path variable
set startupitemsPath to startup items folder
-- place the updated liveupdt.tri file in pre-position
duplicate file "NAV:liveupdt.tri" to startup disk with replacing
-- place NAVsetup AS applet in startup items folder for launching
-- after NAV installer Restart
duplicate file "NAV:NAVsetup" to startupitemsPath with replacing
-- launch NAV installer
open file "NAV:application:Norton AntiVirus CD:Install for OS 8.1 -
9.x:Install Norton AntiVirus"
end tell
-- secondary file named NAVsetup & launched at Startup after Restart
tell application "Finder"
-- set file/folder path variables
set startupDisk to startup disk as alias
set prefPath to preferences folder as alias
set startupitemsPath to startup items folder as alias
set liveupdtFolder to prefPath & "LiveUpdate Preferences:" as text
set liveupdtFile to startupDisk & "liveupdt.tri" as text
set killFile to startupitemsPath & "NAVsetup" as text
-- move the updated liveupdt.tri file from pre-position to Preferences
folder
move file liveupdtFile to folder liveupdtFolder with replacing
-- remove the NAVsetup AS applet from Startup Items Folder
delete file killFile
-- remind user to launch the NAV app & run LiveUpdate
display dialog ,
"Launch NAV application and run LiveUpdate. Hit the Customize this
update session or update everything now button."
end tell
BTW, there is a NAV OS X client installer, but since we're not supporting X
yet here, this will wait for later. Thanks in advance.
Michael Alatorre (
mailto:email@hidden)
EIS Liaison Analyst
Cedars-Sinai Health System (
http://www.cedars-sinai.edu/)
Medical Affairs: 310.423.6237 310.423.0448 (fax)
"good, fast, cheap: pick two." -- the evil triangle
and in this case: "To a man with a hammer, everything looks like a nail"