Re: Newbie Here-Installing Flash on 50 machines
- From: Pikoro <Pikoro@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 16 Nov 2006 22:04:02 -0800
If you have that many computers in your organization, you could toss the
installer into a shared folder on a server. After making sure (via testing)
that the program can be run silently, you could use WMI to remotely execute
the application on each system first checking via Win32_Process to see if the
application is already running.
The other way would be to set it as a startup script so that when the user
logs on the application would be installed. You could do that by making
another call to create a shortcut via WMI into their profile to launch the
application installer with the appropriate switches. (See example Below)
--------------------------------------------------------------
Function WMIGetProcesses(strHostName)
Set objWMIService = GetObject("winmgmts:" &
"{impersonationLevel=impersonate}!\\" & strHostName & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_Process")
For Each objItem In colItems
On Error Resume Next
fCaption = objItem.Caption
fCreationDate = objItem.CreationDate
fDescription = objItem.Description
fExecutablePath = objItem.ExecutablePath
if fCaption = "flash.exe" Then ' Replace flash.exe with the
executable name
WMIGetProcesses = True
Goto ReturnResult
Else
WMIGetProcesses = False
Next
End Function
-----------------------------------------------------------
Then you will just need to call that from a sub with a list of hostnames and
it will tell you if the process is running.
If WMIGetProcesses returns true, then you can skip the install or kill the
process remotely and perform the install after the process is confirmed
killed.
Anyways, just an idea.
Pikoro
"Richard Mueller" wrote:
I would call this as an advanced scripting project. As Marty indicates, it.
can be done with WMI, but there are a lot of steps. The program to be
deployed must run in unattended mode. Also, you need a way to specify the
machines to deploy to, and handle cases where machines are off line. When I
have done this, I had to repeat the deployment several times to get all
computers. If there is not a way to tell if the machine has the deployment,
then it must be ok to run it repeatedly.
By coincidence I have been working on a VB app to deploy patches for a
product. I've been thinking of posting a simpler VBScript version on my web
site. However, a generic script really has no way to tell which computers
need the deployment, without a lot of work maintaining a database of
machines. If the script must be repeated because of computers not available,
either the program must be ok to run repeatedly, or the user must make sure
the deployment skips computers already updated. Also, a generic script
cannot know if the application being updated/patched is currently running,
which would probably cause problems.
My proposed script would deploy to computers in a group specified by the
user. You could modify group membership to skip computers as needed. I
should be able to post a script within a day. You would need to specify an
executable, command line switches, and a domain group of computer objects.
--
Richard
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
"jgioia" <jgioia@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:50D6CAB3-067D-4856-8D67-CD86E65A376C@xxxxxxxxxxxxxxxx
Thanks Marty.
"Marty List" wrote:
It's not practical to push the install to remote machines. You need some
process to copy the install files to the remote machine, and then cause
the
setup to execute locally with silent/unattended command line switches.
So first
you need to decide how you will accomplish this (and check the results).
The cheapest, easiest, ugliest method is probably a tool like PsExec.exe
from
SysInternals. But it's primarily designed for command line tools, I've
never
installed software with it. Or you could script it with the WMI's
Win32_Process
class.
Will this be a one-time job for you, or are you needing a software
distribution
solution going forward? If you will be doing this again, or the number
of
machines will be increasing) you should probably invest the time to look
at
software distribution tools (like Microsoft SMS)
Q: Does Macromedia provide a Windows MSI installer that can be
distributed via
Microsoft SMS for Macromedia Flash Player within an Intranet?
A: Yes, Macromedia does provide a Windows MSI installer for the Flash
Player
distribution. Customers can license the Windows MSI installer by
selecting the
Flash Player only licensing option for Intranet distribution. Customers
will
then be sent a link to download the Windows MSI installer.
http://www.macromedia.com/licensing/distribution/
Other links that may be useful:
Macromedia Flash Player Support Center
http://www.macromedia.com/support/flashplayer/
How to uninstall the Macromedia Flash Player plug-in and ActiveX control
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14157
"jgioia" <jgioia@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:BFB48A4C-8DBD-4333-B5B5-D78940A5C760@xxxxxxxxxxxxxxxx
I am very new to scripting but I am looking to install Flash on 50
machines,
is there a way to do this without having to touch all 50 machines?
Forgive my ignorance I have never done any scripting before, I am
trying to
look at ways to utilize manpower for a small understaffed school.
Thanks,
Joe
- References:
- Re: Newbie Here-Installing Flash on 50 machines
- From: Marty List
- Re: Newbie Here-Installing Flash on 50 machines
- From: Richard Mueller
- Re: Newbie Here-Installing Flash on 50 machines
- Prev by Date: The Best (and the Rest) of Hey, Scripting Guy! ?
- Next by Date: Re: Create text file
- Previous by thread: Re: Newbie Here-Installing Flash on 50 machines
- Next by thread: Re: Newbie Here-Installing Flash on 50 machines
- Index(es):
Relevant Pages
|