One way would be to have a vbscript check the model of the pc, and then
launch the package if it matched a regular expression.

Here's a little script that will pull the model number right out of WMI:

---------------------------------
On Error Resume Next
Dim strComputer
Dim objWMIService
Dim colItems

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from
Win32_ComputerSystem",,48)
For Each objItem in colItems
        WScript.Echo "Model: " & objItem.Model
Next

---------------------------------

Just add some string matching and an if/then to launch the appropriate
package and you should be all set.  Next, add a batch file to launch the
vbscript in todo.txt. 


--Pablo


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
DE-LOS-SANTOS,ORIOL (HP-Spain,ex1)
Sent: Wednesday, April 14, 2004 4:50 AM
To: 'Patrick J. LoPresti'
Cc: [EMAIL PROTECTED]
Subject: [Unattended] Installing packages depending on the model of the PC.

I'm encountering a problem that some of you have probably dealt with
already. There are some software packages that must be installed depending
on the PC brand and model. Is there a way to check this information during
the unattended distribution and execute the installation depending on this
information.

Any elegant solutions for this?

Thanks
Oriol de los Santos


________________________________________________________________________________________________

This electronic mail (including any attachments) may contain information that is 
privileged, confidential, and/or otherwise protected from disclosure to anyone other 
than its intended recipient(s). Any dissemination or use of this electronic email or 
its contents (including any attachments) by persons other than the intended 
recipient(s) is strictly prohibited. If you have received this message in error, 
please notify us immediately by reply email so that we may correct our internal 
records. Please then delete the original message (including any attachments) in its 
entirety. Thank you.

Reply via email to