Elements linux distro needs fixes

Trying to get a vaguely automated install running for a build system container image and I’ve run into a few issues with RemObjects Elements - Mac and Linux Zip Distro - 9.3.103.2211.zip

Based on Ubuntu 16.04 (Xenial) LTS

  • install.sh (uninstall.sh, etc) don’t have the extended permissions executable bit set
  • mono ElementsHelper.exe --installcodedom looks for machine.config in the wrong (hardcoded?) location “/usr/lib/mono/4.5/CONFIG/machine.config” - correct location for vanilla mono (apt-get install mono-complete) is /etc/mono/4.5/machine.config; but I think the API System.Runtime.InteropServices.RuntimeEnvironment.SystemConfigurationFile gives the right path for whatever the current mono VM is.
  • libRemObjects.Oxygene.so isn’t in the archive (!?)
  • prefacing each command in install.sh with “sudo” has a couple of problems, including introducing a dependency on sudo for single-user environments where the system paths are already writable - better to run sudo install.sh and thus execute the entire script in the same security domain
  • failed commands don’t abort the script or return non-zero exit codes, the script should include set -e near the top

Thanks, logged as bugs://79330

bugs://E20742 was closed as fixed.