First off, i want to thank you for putting this together thus far. It's a great starting point, along with the GENA version of the script.
Also, thanks for upgrading the script, however, I have done a little more digging,...
Looks like we have a bigger issue when trying to capture the relative Registry Entries from a 64-bit machine utilizing the WOW6432....
Here's an example of the one of the Registry entries in the script. I am utilitizing a Win7PESE build, and have added this script to MyApps_Direct
Digging into the script, I noticed somethings that are actually not on the 32-bit version of a cooked build.
for example.
Just Picked a line from the [REGISTRY] section in the script, which is what is called when using 32-bit.
Line 13952 for example...
RegWrite,HKLM,0x2,Tmp_Default\SOFTWARE\Classes\Wow6432Node\CLSID\{CAFEEFAC-0014-0002-0004-ABCDEFFEDCBA}\InprocServer32,,"X:\Program Files (x86)\Java\jre1.8.0_66\bin\jp2iexp.dll"
Couple of things that we will need to change.
1. ...\Wow6432Node\... - Since I am trying to build a 32-bit W7PESE, there should be no mention of a Wow6432 in a 32-bit OS.
The Wow6432 is a Windows on Windows emulator, that allows a 64-bit OS to access/run 32-bit applications, So the 32-bit Java installer, per the script, is to install the 32-bit version and then turn around and recapture the files into a 7z, once the user agrees to Java's ridiculous licensing requirements.
This is good in the sense of capturing the entries and software, however, the emulator/Windows, makes it look as if the 32-bit version is on a 64 bit machine, which it is not when i finally run the cooked W7x86PESE build.
2 ...\X:\Program Files (x86)... - This is induced because the original installation to capture of the registry entries was on a 64-bit machine again. "Program Files (x86)" does not exist in a 32-bit build of Windows, and as such, all entries need to be entered as "Program Files" for the registry entries to actually point to the Java installation of the cooked Win7PESE 32-bit version.
I will continue to work through this. I think I will try by find/replace method first... then try a clean build of win7x86pro vm and run a capture prog to see all the changes that java install performs and see if i can repeat a similar script as we have done.
What software did you use to capture the complete installation of the java installation? if that's what you did...
I would like to repeat that on an VM Machine running Win7x86 Pro
The other thing i think i am going to do for testing is to split out the 32bit and the 64bit scripts into separate ones first, that way the "Program Files" and the associated script variables are not intermingled, and partly to keep my sanity.
I'll post back if I make progress.