Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Specified default installation path
Specified default installation path [message #1794908] Mon, 10 September 2018 18:45 Go to next message
Pawel Okas is currently offline Pawel OkasFriend
Messages: 4
Registered: January 2016
Junior Member
I see that oomph have some configuration options for installer inside .ini file, ie.: -Doomph.setup.product.filter

I would like to specified default product installation location inside .ini file, for example:
-Doomph.setup.product.installation.location="some path"

It is possible?

[Updated on: Mon, 10 September 2018 22:54]

Report message to a moderator

Re: Specified default installation path [message #1794919 is a reply to message #1794908] Tue, 11 September 2018 06:43 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 29545
Registered: July 2009
Senior Member
You can influenced the default used by the simple mode of the installer using -Doomph.setup.install.root. The advanced mode uses install.root. In all cases, the product name is determined by the catalog, and can be influenced by defining a variable "installation.id.default" in the product.
Re: Specified default installation path [message #1795018 is a reply to message #1794919] Wed, 12 September 2018 19:35 Go to previous messageGo to next message
Pawel Okas is currently offline Pawel OkasFriend
Messages: 4
Registered: January 2016
Junior Member
-Doomph.setup.install.root seems to work.

I added into my product setup:
<setupTask
xsi:type="setup:VariableTask"
id=""
filter=""
name="installation.id.default"
value="testname"
defaultValue=""
label="">
<description></description>
</setupTask>

but this is not affecting simple installer.
Simple installer field: "Installation Folder" have content: <path from -Doomph.setup.install.root>/<product name>-<eclipseversion>
example:
lets assume: -Doomph.setup.install.root=/home/pawel/test
I get:
/home/pawel/test/microide-oxygen
but I expected:
/home/pawel/test/testname
Tested on: Installer version: 1.9.0 Build 3649

I am doing something wrong or I misunderstand purpose of variable "installation.id.default".


Re: Specified default installation path [message #1795027 is a reply to message #1795018] Thu, 13 September 2018 06:11 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 29545
Registered: July 2009
Senior Member
Sorry, I was wrong. Only advanced mode does variable evaluation.

In simple mode, org.eclipse.oomph.setup.internal.installer.SimpleVariablePage.getDefaultInstallationFolder() builds the folder's name, and that's all hard coded. Perhaps it could be changed so that if there is only one product version, it doesn't append the "-<version.name>" but I don't know if that would actually achieve your goal.
Previous Topic:Upgrading Oomph on Ubuntu 18.04
Next Topic:Target URI is not well formed
Goto Forum:
  


Current Time: Sun Sep 23 19:52:50 GMT 2018

Powered by FUDForum. Page generated in 0.01417 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top