Remote Administrator

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search

Remote Administrator 2.2

This software is somewhat of a hassle to install as the supplied installer does not support silent installations. This method will install the server only and is based on the method that is recommended by Famatech.

  • Install the software to a test machine.
  • Configure all server settings and install the license file.
  • See the Remote Administrator manual for instructions on how to create a registry settings file. The manual is available from the Famatech web site. You will need the HKEY_LOCAL_MACHINE\SYSTEM\RAdmin (settings.reg) and HKEY_LOCAL_MACHINE\SOFTWARE\RAdmin (license.reg) key stores.
  • Copy r_server.exe, raddrv.dll, settings.reg and license.reg to your software repository.
  • Put install.bat and remove.bat into your software repository.

package.xml

<package id="radmin" name="Remote Administrator 2.2" revision="1" reboot="false" priority="0">
  <check type="logical" condition="or">
    <check type="logical" condition="and">
      <check type="file" condition="exists" path="%WINDIR%\system32\r_server.exe" />
      <check type="file" condition="exists" path="%WINDIR%\system32\raddrv.dll" />
    </check>
    <check type="uninstall" condition="exists" path="Remote Administrator v2.2" />
  </check>

  <install cmd='%SOFTWARE%\radmin-2.2\install.bat' />
  <remove cmd='%SOFTWARE%\radmin-2.2\remove.bat' />
</package>

install.bat

@echo off

copy %SOFTWARE%\radmin-2.2\r_server.exe %windir%\system32
copy %SOFTWARE%\radmin-2.2\raddrv.dll %windir%\system32
%windir%\system32\r_server.exe /install /silence
regedit.exe /s %SOFTWARE%\radmin-2.2\settings.reg
regedit.exe /s %SOFTWARE%\radmin-2.2\license.reg
net start "Remote Administrator Service"

exit 0

remove.bat

@echo off

%windir%\system32\r_server.exe /uninstall /silence

del %windir%\system32\r_server.exe
del %windir%\system32\raddrv.dll

exit 0