Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Howto prepare preconfigured Eclipse Installer
Howto prepare preconfigured Eclipse Installer [message #1734546] Thu, 09 June 2016 09:52 Go to next message
Matthias Albert is currently offline Matthias AlbertFriend
Messages: 8
Registered: July 2009
Junior Member
Hi,
as an Oomph beginner, I am trying to use the Eclipse installer (eclipse-inst-win64.exe downloaded from https://www.eclipse.org/downloads/download.php?file=/oomph/epp/neon/RC3a/eclipse-inst-win64.exe) in such a way:

I wrote a product setup file for an Eclipse product based on the C++ package plus some utility plugins and some company-internal features.

This product can be installed successfully using eclipse-inst-win64.exe by interactively switching to the advanced mode, adding the setup file und starting the install process.

Is it possible to prepare an easy-to-use preconfigured eclipse-inst-win64.exe so that any user in our department can install the tailored Eclipse just with a double click, but without any further actions?

Thank you in advance
Matthias
Re: Howto prepare preconfigured Eclipse Installer [message #1734578 is a reply to message #1734546] Thu, 09 June 2016 13:44 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Matthias,

That's certainly possible in principle, but the not something we've
implemented in practice. If there were funding for such an effort, it
would be done already...


On 09.06.2016 11:52, Matthias Albert wrote:
> Hi,
> as an Oomph beginner, I am trying to use the Eclipse installer
> (eclipse-inst-win64.exe downloaded from
> https://www.eclipse.org/downloads/download.php?file=/oomph/epp/neon/RC3a/eclipse-inst-win64.exe)
> in such a way:
>
> I wrote a product setup file for an Eclipse product based on the C++
> package plus some utility plugins and some company-internal features.
>
> This product can be installed successfully using
> eclipse-inst-win64.exe by interactively switching to the advanced
> mode, adding the setup file und starting the install process.
>
> Is it possible to prepare an easy-to-use preconfigured
> eclipse-inst-win64.exe so that any user in our department can install
> the tailored Eclipse just with a double click, but without any further
> actions?
>
> Thank you in advance
> Matthias
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Howto prepare preconfigured Eclipse Installer [message #1740065 is a reply to message #1734578] Mon, 08 August 2016 19:53 Go to previous message
Taylor Abrahamson is currently offline Taylor AbrahamsonFriend
Messages: 9
Registered: March 2016
Junior Member
Yes it can be done. I did it!

Once you have your product setup file, you need to build another eclipse catalog file that points to your product setup file.

I placed one eclipse-installer onto a shared drive that every has access to in my development department. This eclipse-installer has an .ini file for it. In this file you must place this:
-Doomph.redirection.setups=index:/->file://D:/your/directory/

That is for a static file on a file system, You can also use a URI and host the file.
At that location you must have a file called: org.eclipse.setup
This file needs to have a productCatalog node which points to your custom setup file

<?xml version="1.0" encoding="UTF-8"?>
<setup:Index
xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
name="index"
label="Index">
<discoverablePackage
href="models/Git.ecore#/"/>
<discoverablePackage
href="models/Launching.ecore#/"/>
<discoverablePackage
href="models/JDT.ecore#/"/>
<discoverablePackage
href="models/Maven.ecore#/"/>
<discoverablePackage
href="models/Mylyn.ecore#/"/>
<discoverablePackage
href="models/PDE.ecore#/"/>
<discoverablePackage
href="models/Predicates.ecore#/"/>
<discoverablePackage
href="models/Projects.ecore#/"/>
<discoverablePackage
href="models/ProjectSet.ecore#/"/>
<discoverablePackage
href="models/Resources.ecore#/"/>
<discoverablePackage
href="models/SetupTarglets.ecore#/"/>
<discoverablePackage
href="models/SetupWorkingSets.ecore#/"/>
<discoverablePackage
href="models/Targlets.ecore#/"/>
<discoverablePackage
href="models/Workbench.ecore#/"/>
<discoverablePackage
href="models/WorkingSets.ecore#/"/>
<productCatalog
href="your.products.setup#/"/>
</setup:Index>

You also need to save all of those models listed too.

Basically to acheive this I used the normal eclipse installer to install a fresh version of eclipse. Then after installed I opened up Navigate->Open Setup->Parent Models->Catalog Index

That will open up the xml file of the default product catalog, the one from eclipse. You just need to remove everything from that other than one product catalog pointed to your own custom setup. It will end up looking like the above.
You can then leave the hosted links to the Models/ nodes, or you can manually download them into your shared drive and host them yourself.

Sorry this is a terrible guide as I don't have time to write an amazing one.

But basically I learned everything I needed to know from this guide: https://wiki.eclipse.org/Eclipse_Oomph_Authoring

[Updated on: Mon, 08 August 2016 19:57]

Report message to a moderator

Previous Topic:Reusing variables across setups
Next Topic:using boolean variables in filter
Goto Forum:
  


Current Time: Fri Apr 26 23:30:06 GMT 2024

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

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

Back to the top