I have been trying to put together my first installer but I have run into a problem with it.
I followed the advice in this thread:
http://www.ryanvm.net/forum/viewtopic.php?t=5202
Downloading the tools and Java installers was straightforward enough. I then started the installers and copied the relevant files from:
%USERPROFILE%\AppData\LocalLow\Sun\Java
To my working directory.
I then opened a command window and run the following command from the msi's extracted from the installers:
Code: Select all
msiexec.exe /a jre(version/build).msi targetdir=%homedrive%\Admin /qb
I changed the icon on the 7zsd.sfx to a preferred one.
I used Kelsenellenelvian's Config.txt (although I changed the file names to match the .msi file names in my bin folder):
Code: Select all
;!@Install@!UTF-8!
GUIMode="2"
MiscFlags="4"
RunProgram="x64:jrex64.msi /qn ADDLOCAL=ALL IEXPLORER=1 MOZILLA=1 SYSTRAY=0 JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0 /norestart"
RunProgram="jrex86.msi /qn ADDLOCAL=ALL IEXPLORER=1 MOZILLA=1 SYSTRAY=0 JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0 /norestart"
RunProgram="x64:hidcon:\"%programfiles(x86)%\\Java\\jre7\\bin\\jqs.exe\" -unregister"
RunProgram="x86:hidcon:\"%programfiles%\\Java\\jre7\\bin\\jqs.exe\" -unregister"
;!@InstallEnd@!
Code: Select all
upx --ultra-brute 7zsd.sfx
cd Bin
..\7za a "..\Program.7z" -r *.* -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on
cd ..
copy /b 7zsd.sfx + Config.txt + Program.7z Java.exe
del Program.7z
Code: Select all
Java: error
Could not read SFX configuration or configuration not found.
Thanks for any help.