In contrast to Ernest's excellent
instructions, these below assume that (1) you are creating your
installer on Windows and (2) you'd like your installer to be used
on Windows only. Hence, these instructions are more limited, but
also simpler, focusing purely on the Windows scenario.Go to your JDK installation and copy the JRE somewhere else,
separately (e.g, "C:\\Program Files\\Java\\jre"), so you don't end
up messing up the JDK you're actually using to run, for...