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"  

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