Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Disable "Launch Automatically" Automatically
Disable "Launch Automatically" Automatically [message #1791092] Fri, 22 June 2018 17:29 Go to next message
David Coley is currently offline David ColeyFriend
Messages: 37
Registered: July 2012
Member
Is there a way I can uncheck the Launch Automatically option of the Oomph installer when launching or configuring the launcher for Distro?

We have an issue where I need to configure some settings outside the GUI before the user can actually use the software. Mostly varibles for 3rd party software that the Oomph setup model does not support.
Re: Disable "Launch Automatically" Automatically [message #1791096 is a reply to message #1791092] Fri, 22 June 2018 18:40 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
If you distribute your own installer, in eclipse-installer/configuration/.metadata/.plugins/org.eclipse.oomph.setup.ui/dialog_settings.xml you can store the following:
<?xml version="1.0" encoding="UTF-8"?>
<section name="Workbench">
	<section name="SetupWizard">
		<section name="ProductPage">
		</section>
		<section name="ProgressPage">
			<item value="false" key="launchAutomatically"/>
		</section>
		<section name="ConfirmationPage">
		</section>
		<section name="VariablePage">
		</section>
	</section>
	<section name="EnablementComposite">
	</section>
</section>

I have to wonder though what needs to be configured that you can't configure. I imagine it's the case that everything that can be configured persistently is stored in a file, so a Resource Creation task should be able to do the trick to create a file with the necessary contents. E.g., most project setups contain this task to ensure that the Package Explorer shows working sets by default:
<?xml version="1.0" encoding="UTF-8"?>
<setup:ResourceCreationTask
    xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI"
    xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
    excludedTriggers="STARTUP MANUAL"
    content="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>&#xD;&#xA;&lt;section name=&quot;Workbench&quot;>&#xD;&#xA;&#x9;&lt;section name=&quot;org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart&quot;>&#xD;&#xA;&#x9;&#x9;&lt;item value=&quot;true&quot; key=&quot;group_libraries&quot;/>&#xD;&#xA;&#x9;&#x9;&lt;item value=&quot;false&quot; key=&quot;linkWithEditor&quot;/>&#xD;&#xA;&#x9;&#x9;&lt;item value=&quot;2&quot; key=&quot;layout&quot;/>&#xD;&#xA;&#x9;&#x9;&lt;item value=&quot;2&quot; key=&quot;rootMode&quot;/>&#xD;&#xA;&#x9;&#x9;&lt;item value=&quot;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;packageExplorer configured=&amp;quot;true&amp;quot; group_libraries=&amp;quot;1&amp;quot; layout=&amp;quot;2&amp;quot; linkWithEditor=&amp;quot;0&amp;quot; rootMode=&amp;quot;2&amp;quot; sortWorkingSets=&amp;quot;false&amp;quot; workingSetName=&amp;quot;&amp;quot;&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;localWorkingSetManager&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;workingSet editPageId=&amp;quot;org.eclipse.jdt.internal.ui.OthersWorkingSet&amp;quot; factoryID=&amp;quot;org.eclipse.ui.internal.WorkingSetFactory&amp;quot; id=&amp;quot;1382792884467_1&amp;quot; label=&amp;quot;Other Projects&amp;quot; name=&amp;quot;Other Projects&amp;quot;/&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;/localWorkingSetManager&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;activeWorkingSet workingSetName=&amp;quot;Other Projects&amp;quot;/&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;allWorkingSets workingSetName=&amp;quot;Other Projects&amp;quot;/&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;/packageExplorer&amp;gt;&quot; key=&quot;memento&quot;/>&#xD;&#xA;&#x9;&lt;/section>&#xD;&#xA;&lt;/section>&#xD;&#xA;"
    targetURL="${workspace.location|uri}/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml"
    encoding="UTF-8">
  <description>Ensure that working sets are display in the Package Explorer</description>
</setup:ResourceCreationTask>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Disable "Launch Automatically" Automatically [message #1791101 is a reply to message #1791096] Fri, 22 June 2018 20:53 Go to previous messageGo to next message
David Coley is currently offline David ColeyFriend
Messages: 37
Registered: July 2012
Member
Thanks Ed!

We have to create a batch launch file that sets some user variables and then run some propitiatory scripting that will depend on settings selected before we launch.

I'll look at seeing if we can get Resource Creation to work instead.
Re: Disable "Launch Automatically" Automatically [message #1791102 is a reply to message #1791092] Fri, 22 June 2018 20:53 Go to previous message
David Coley is currently offline David ColeyFriend
Messages: 37
Registered: July 2012
Member
(weird duplicate, sorry, removed)

[Updated on: Fri, 22 June 2018 20:56]

Report message to a moderator

Previous Topic:Setup Task Development
Next Topic:Enforce latest available iu version
Goto Forum:
  


Current Time: Tue Apr 23 10:53:12 GMT 2024

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

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

Back to the top