26 October 2012

OpenLM Agent Silent Install

Installing OpenLM Agent is a relatively straight-forward process. There are no settings required for the msi installer. In order to make it a silent install, you first need to install it on your own machine. Once installed, the  first time it runs, there will be a configuration window appear. Input the server name and any other pertinent data and then click apply. Now, go to the %ProgramFiles%\OpenLM\OpenLM Agent\ and copy the OpenLM_Agent.exe.config file to your installation directory. In your installation script, copy this file to the %ProgramFiles%\OpenLM\OpenLM Agent\ directory once the app is installed. That is all that needs to be done to automate the silent install.

You can download the script from here

Here is the tasks in file I named install.cmd:
 msiexec.exe /i %~dp0\openlm_utilizer_agent_win_1713.msi /qb- /norestart  
 timeout 2  
 taskkill.exe /IM OpenLM_Agent.exe /t /f  
 timeout 2  
 copy %~dp0\OpenLM_Agent.exe.config "C:\Program Files (x86)\OpenLM\OpenLM Agent\OpenLM_Agent.exe.config" /v /y /z  
 "C:\Program Files (x86)\OpenLM\OpenLM Agent\OpenLM_Agent.exe"  

Related Posts:

  • Retrieve MSU Information While working on the Windows 10 upgrade project, I ran into a situation which I needed the information from an MSU file for the task sequence. Specifically, I needed the KB number. The first thing I did was to try and use th… Read More
  • Adding ShareThis to Blogger Below is a video on how to add ShareThis to Blogger. It is a very easy process. Apparantly the process has changed since other instuction pages were created. I spent a few hours trying to figure out why injecting the javascr… Read More
  • PowerShell MSI Uninstaller By Application Name This is now an old version. The new version is now located in this blog posting.  Here is a function that will uninstall an MSI installed application by the name of the app. You do not need to input the entire name … Read More
  • Uninstall MSI by Application Name Here is a function that will uninstall an MSI installed application by the name of the app. You do not need to input the entire name either. For instance, say you are uninstalling all previous versions of Adobe Reader. Adobe… Read More
  • Uninstall MSI by GUID This script function will uninstall an MSI installed application by specifying the GUID and the switches. I have included the ability for the script to query the registry for the name of the application to display for user o… Read More

4 comments:

  1. Are you installing as the user or the system? This method causes the OpenLM agent to run as system when installed as system.

    ReplyDelete
  2. This was being installed as the user. This took place in my last position where all users had local administrator privs.

    ReplyDelete
  3. Yeah, that is an issue for us. Not all of our users have admin rights. Do you know of a way around this?

    ReplyDelete
  4. You may need to add to the script to temporarily give the user local admin privs and then take them back away after the installation is complete. I would manually try that first and if it works, you could create a powershell script to do the sequence of processes. I wish I could be of more help, but I am now working in a completely different industry that doesn't have OpenLM.

    ReplyDelete