Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
#
# Remotix Agent turbo.me file
# https://github.com/turboapps/turbome/tree/master/remotixagent
#
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
###################################
# Requirements
###################################
requires privilege:admin
###################################
# Meta tags
###################################
meta title="Remotix Agent"
meta namespace="nulana"
meta name="remotixagent"
###################################
# VM Settings
###################################
enable HttpUrlPassthrough
# TODO: add child prrocess spawn exceptions for SystemProperties*.exe, so that settings button opens native dialog to enable RDP service; blocked by CLNT-7127
###################################
# Pull dependency images
###################################
using powershell,turbo/turboscript-tools:2016.8.31
###################################
# Download and install
###################################
cmd mkdir c:\Workspace
workdir c:\Workspace
# Download installer
cmd "wget -O RemotixAgentInstaller.exe --no-check-certificate --no-verbose https://downloads.remotixcloud.com/rxagentwin/RemotixAgentInstaller.exe"
# Download installer settings file
## Disables hiding window on startup
## Disabled autoupdate check-certificate
cmd "wget -O agent.rxasettings --no-check-certificate --no-verbose https://raw.githubusercontent.com/turboapps/turbome/master/remotixagent/agent.rxasettings"
# Install
# /Dir=<install directory> -> installation directory path, by default it's C:\Program Files\Remotix Agent;
# /Settings=<settings file path> -> path to .rxasettings file;
# /S -> silent install.
batch
RemotixAgentInstaller.exe /S /Settings=c:\Workspace\agent.rxasettings
timeout /t 60
taskkill /F /IM RemotixAgent.exe /T
# Get version details from exe file
cmd "echo if (Test-Path 'C:\Program Files\Remotix Agent\RemotixAgent.exe') {$app='C:\Program Files\Remotix Agent\RemotixAgent.exe'} else {$app='C:\Program Files (x86)\Remotix Agent\RemotixAgent.exe'} >> GetVersion.ps1"
cmd "echo (Get-Item $app).VersionInfo.FileVersion >> GetVersion.ps1"
cmd powershell -executionpolicy remotesigned -File GetVersion.ps1
var tag = last
meta tag=tag
###################################
# Environment Variables
###################################
env path=""
env pathext=""
###################################
# Clean up
###################################
workdir c:\
# Device UIDs need to be deleted on the last container start, because the remotix agent service starts on each cmd and resets the UID
batch
powershell -ExecutionPolicy Unrestricted -NoProfile -Command "Import-Module Turbo; Remove-BuildTools"
rmdir @SYSDRIVE@\Workspace /s /q
rmdir @SYSDRIVE@\TurboBuildTools /s /q
REG DELETE HKLM\Software\Wow6432Node\Nulana /v DeviceUID /F
REG DELETE HKLM\Software\Wow6432Node\Nulana /v DeviceUIDSW /F
REG DELETE HKLM\Software\Nulana /v DeviceUID /F
REG DELETE HKLM\Software\Nulana /v DeviceUIDSW /F
###################################
# Startup File
###################################
startup file ("@PROGRAMFILESX86@\Remotix Agent\RemotixAgent.exe")