how to install a windows optional component via altiris
Updated: 21 May 2010 | 5 comments
The situation is that a Windows XP CD is needed to install the optional Windows Component to a system. How can it be installed via altiris to over more than 1000 computers. I want to install the SNMP component and also to enable the service.
Discussion Filed Under:
Comments
adding SNMP via Altiris
I guess you have two options:
1. run a script job
have a look at this http://itknowledgeexchange.techtarget.com/network-administrator/install-windows-components-from-command-line/
you still need to provide access to the install CD, but you can create a pre-package to change the reg-keys for that and point to a network-share (e.g. package server).
Or you can check which files from the CD are required and copy them to a local folder on the clients - you still need to change reg-keys to point to this folder for the install files...
2. create a snapshot package
I haven't tested this for Windows components, but I'm almost sure you can create a package for this using Rapid Install or Wise. This way all the required components will be in the package and you don't need to provide the CD.
Command Line / Batch File
This should be not really too bad of a batch file to write, there are just a few things to consider.
First you would need to create a reg file to import the source location. The values are:
You could add the correct values to a test device and then export the setup key to a .reg file to include in your package.
For installation sources, you could copy the contents of the XP (or whatever OS) setup disc to a network share and make sure the account running the component installation has access (rights) to access it.
Next, create a txt file and add the following contents, modifying to your needs and save as something like snmp.txt:
This is going to be your answer file for sysocmgr.exe
You can then create a batch file that would import the registry values and install the SNMP component, naming it something like InstallSnmp.bat:
You can then use Altiris to create a package to include the .reg file for importing the reg keys, the snmp.txt answer file with your options included and the InstallSnmp.bat file. Create a program for the package that includes the command line InstallSnmp.bat. When you send this package to a machine it will copy down all the files and execute the batch file that will import the reg keys with the install sources and execute sysocmgr which will silently install the component for you.
RS
I tried the way suggested.
I tried the way suggested. But it is giving me an error message " The application could not be initialized". How can we get over this?
My guess is sysocmgr can't
My guess is sysocmgr can't find the answer file. You probably need the batch file line to specify the entire path to snmp.txt.
get the path to the answer file for the package, something like "C:\Program Files\Altiris\Altiris Agent\Agents\SoftwareManagement\Software Delivery\{GUID}\Cache\Snmp.txt" and place that in the batch file to make sure sysocmgr can find it. Remember to put in quotes since this path includes spaces.
Its working but not getting installed when depolyed
I tried all the possible methods and I developed a batch file which can install the needed component in a silent manner. But the main issue which i face now is that, when i am deploying this batch file to a system, the batch file and associated files are getting dumped to the C:\Program Files\Altiris\Altiris Agent\Agents\SoftwareManagement\Software Delivery\{GUID}\Cache\ folder and it is giving the status as Run Complete. But it is not executing the batch file. Can anyone help me in this?
The batch file conent is as follows and file name is InstallSNMP.bat
START reg import sources.reg
START reg import SourcePath.reg
START C:\Windows\system32\sysocmgr.exe /i:\inf\sysoc.inf /u:snmp.txt /q
The sources.reg and SourcePath.reg will point to the path where the files needed for the component is located.
looking forward for a reply at the earliest.
Would you like to reply?
Login or Register to post your comment.