Cannot create customised Installer for Windows with bundled JRE [message #1857517] |
Sun, 12 February 2023 16:54 |
Mark Lawrence 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)
[Updated on: Sun, 12 February 2023 17:43] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03390 seconds