RE: Will package install if software already exists? HELP!
- From: Marcus Cotey <MarcusCotey@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 30 May 2007 12:46:07 -0700
Late to the discussion. Sorry. Anyway I am posting in case someone else
comes along with a similar issue. How we are doing deployments here with
software is we package the content (Office, Visio, whatever) into an MSI,
create an MST file and then wrap it up in VBS. This allows you to throw any
kind of logic at it you want. So in your case when you want to install only
if it doesn't exist you can write some code in VBS to check for the file
VISIO.EXE and if it exists you can quit else you can have it run the command
line for your package. Also I found it pretty easy to create a AD security
group and then create a collection in SMS with the criteria that any
COMPUTERS that are a member of XYZ security group get placed into the SMS
collection. Then I take the package (with the VBS wrapper) and make a
permanent advertisement to that collection. Add whatever target systems you
want to have Visio installed into that AD security group membership and wait
about 3 or 4 hours and you should start to see results in the SMS
System/Advertisement Status. It is actually pretty easy to setup, doesn't
take a ton of work once it is done and you can add and remove systems from
that group at will.
If you don't have any VBS skills just check out the Script Center here on
TechNet. It has lots of info on getting started with VBS. Between AD, SMS
and VBS I pretty much have stopped doing "cube calls" to our clients...I am
able to run, tweak and install everything remotely. :)
"Matthew Hudson" wrote:
I have sent you a file off line. If this solves your problem then I will.
post a shorter version here for everyone to see.
"net1994" wrote:
My head hurts after trying to figure the best way to do this. There are
many, many ways to solve this and 99.99999% of them are brutally painful and
time consuming.
If you could send some screen shots, please do. While all of what were
talking about now is fresh in my mind, 12 hours from now it might not be so
crisp. Screenshots=good. I think the part I could use some visuals on is
turning a membership in a AD Security Group to Membership in a machine based
collection.
Send whatever you can to zoutv@xxxxxxxx
Thanks man. I'll let you know how it turns out. Not sure if youll be
available tomorrow in case I had a follow up question? Nonetheless, thanks a
million!!
"Matthew Hudson" wrote:
oh, I understand. There is nothing more frustrating than dealing with
problem when you can't find a good solution.
I hope this will help you. I am sure you have been knocking you head against
that wall thinking "How and I suppose to solve this one?"
I have been there many many many times. Let me know if I need to send you
some screen shots offline to illustrate how I did it in my enviroment.
"net1994" wrote:
I think I get the idea. What I'll do is see if I can get this setup on my
server tomorrow. Thanks matt. Appreciate your help, didn't mean to sound
like I did not.
"Matthew Hudson" wrote:
There is not line switch or any thing. You need to check your settings for
the query. Under the part where it says limit collection. Select the AD
Security Group [Collection] If you don't have a collection then make a
collection based on this group member ship. What this does is create a group
of computer [Group z] Then my query can be used to create another collection
[Needing Visio] that is only looking at those computers. It will pull of the
50 computers in the collection [Group z] only say 25 populate the new
collection [Needing Visio]. Now advertise your visio install to the
collection marked [Needing visio].
If you run HW inventory every week then set your adv to run once a week and
update the collection each week. As the computers install visio they will
remove themselves from the collection. You now have a dynamic collection, no
need to check to see if they have it installed. They will remove when done
so and hw inventory is run.
Does this make better sense?
"net1994" wrote:
Thanks Matt. But what I'm trying to target is those users in AD Security
Group Z who does not have Visio. The collection you wrote below (I think)
will return all machines in the company that do not have Visio. This is a
good start, but I need to install Visio for the members of the AD Group. The
query below returns over a thousand pcs in the company; I just need to
install on 50.
On a side note. I think maybe 20 of the machines already have it. But most
not installed recently via SMS or manually.
Is there another query I could run? Or specify MSI command line switch?
Not sure if a switch exists to skip if already present.
"Matthew Hudson" wrote:
Yes and no. If you deployed it with SMS and the record is not old/deleted
then when you tell it to install the client will post back with "already
sucessfull on x date, not applying adv" But if you didn't install it with
SMS or that data is old/deleted then it will re-install it. You need to
create a new collection to this collection for visio. You have a collection
with computers in it. In a subcollection keyed off your orginal one put this
in there...
-----------------
select
SMS_R_System.ResourceID,SMS_R_System.ResourceType,SMS_R_System.Name,SMS_R_System.SMSUniqueIdentifier,SMS_R_System.ResourceDomainORWorkgroup,SMS_R_System.Client
from SMS_R_System inner join SMS_G_System_COMPUTER_SYSTEM on
SMS_G_System_COMPUTER_SYSTEM.ResourceID = SMS_R_System.ResourceId where
SMS_G_System_COMPUTER_SYSTEM.Name not in (select distinct
SMS_G_System_COMPUTER_SYSTEM.Name from SMS_R_System inner join
SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceID =
SMS_R_System.ResourceId inner join SMS_G_System_ADD_REMOVE_PROGRAMS on
SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where
SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName = "Microsoft Office Visio
Professional 2003")
--------------------------------
This will find computers that don't have visio and now do the adv for visio
to this new collection
"net1994" wrote:
Need to deploy Visio 2003 to about 50 people in our company. Have the
package ready to go. Learned quickly that doing this by collection would be
a nightmare for several reasons. Will use their AD Security group to push
out.
Anyway..... Some of the people already have Visio in the dept. I don't want
them to have it install on top of itself and kick the user out, or bog them
down.
Will SMS check to see if it is installed on the target pc, and if so skip
the pc from installing Visio 2003?? Is this automatic, or a MSI command line
setting?
If so, this will save me excruciating time setting up very specific
collections. and deploying to the machines.
HELP!
- Prev by Date: RE: Office Service Pack 2 Installations Failing
- Next by Date: RE: Office Service Pack 2 Installations Failing
- Previous by thread: Re: Force Outlook.exe to close before installing antivirus (AV) client
- Next by thread: Advertisement Receive status
- Index(es):
Relevant Pages
|