Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Cannot create customised Installer for Windows with bundled JRE
Cannot create customised Installer for Windows with bundled JRE [message #1857517] Sun, 12 February 2023 16:54 Go to next message
Mark Lawrence is currently offline Mark LawrenceFriend
Messages: 36
Registered: February 2023
Member
I've got a script based on the Eclipse postprocess.sh (https://git.eclipse.org/c/oomph/org.eclipse.oomph.git/tree/releng/org.eclipse.oomph.releng/hudson/postprocess.sh) to take an existing installer, add the customisation parts, and then to generate the a new, unsigned installer. This works great creating a Windows installer without a bundled JRE.

However, I'd really like to make a customised Windows installer with the bundled JRE. I've got it working for mac & linux, but the Windows installer doesn't work, I double-click, it loads for a bit, but nothing happens.

Is there a magic step I'm missing?

Note, I moved from zip to tar, because I was getting complaints that the zip was either corrupt or part of a multi-part set.....then after looking at your code I saw that tar is being used, based on the data in the descriptor.

Here are the rough steps from my script:

extractorlib=~/.p2/pool/plugins/org.eclipse.oomph.extractor.lib_1.9.0.v20220421-1218.jar
  java -cp $extractorlib org.eclipse.oomph.extractor.lib.BINExtractor \
    $file \
    $concatdir/product.tar \
    -export \
    $concatdir/marker.txt \
    $concatdir/extractor.exe \
    $concatdir/libdata.jar \
    $concatdir/descriptor.txt


  tar -xvf $concatdir/product.tar
  
  # Add Redirection
  echo "-Doomph.redirection.setups=http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/->http://my.company.site.com/oomph/setups/" >> ./eclipse-inst.ini

  # Add ADVANCED config
  mkdir -p ./configuration/.settings
  echo "eclipse.preferences.version=1" >> ./configuration/.settings/org.eclipse.oomph.setup.installer.prefs
  echo "mode=ADVANCED" >> ./configuration/.settings/org.eclipse.oomph.setup.installer.prefs
  echo "poolEnabled=true" >> ./configuration/.settings/org.eclipse.oomph.setup.installer.prefs

  tar -cf $file.tar *

  # Don't use the already signed extractor.exe but rather the one directly from git.
  # Otherwise signing will fail.
  curl -O https://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/plugins/org.eclipse.oomph.extractor/extractor-64.exe

  cat extractor-64.exe \
    $concatdir/marker.txt \
    $concatdir/libdata.jar \
    $concatdir/marker.txt \
    $concatdir/descriptor.txt \
    $concatdir/marker.txt \
    $file.tar \
    $concatdir/marker.txt > $file-new


Depending on what I've changed, I can sometimes get this to appear (I can see this plugin in the zipped up customised tar before repackage, I'm not sure why it cannot see it)
index.php/fa/42915/0/

[Updated on: Sun, 12 February 2023 17:43]

Report message to a moderator

Re: Cannot create customised Installer for Windows with bundled JRE [message #1857519 is a reply to message #1857517] Mon, 13 February 2023 06:44 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
Registered: July 2009
Senior Member
All the processing logic to produce the products is now done directly from the pom.xml, so that I can build the packaged products, including the *.exe, locally and test them locally. The following is invoked from the pom.xml:

https://git.eclipse.org/c/oomph/org.eclipse.oomph.git/tree/products/org.eclipse.oomph.setup.installer.product/repackage-products.sh

One detail that's easy to miss is that tar file must be in GNU format:

tar --format=gnu -cf ../${i%.zip}.tar *



Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Cannot create customised Installer for Windows with bundled JRE [message #1857525 is a reply to message #1857519] Mon, 13 February 2023 18:38 Go to previous message
Mark Lawrence is currently offline Mark LawrenceFriend
Messages: 36
Registered: February 2023
Member
Thank you Ed, that was the missing piece!

I'm doing this on a Mac, so gnu isn't an option in tar. So I did it on a Linux machine, which does have that option.

Working great now!
Previous Topic:How do I configure an .ini file for the new self extracting installer?
Next Topic:MacOS Secure Storage keychain Name change
Goto Forum:
  


Current Time: Thu Dec 12 18:17:28 GMT 2024

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

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

Back to the top