Initial custom resource script for Windows bundle.

This commit is contained in:
Chris Rankin 2017-02-09 18:22:32 +00:00
parent 975bba0295
commit 38fb84a96b

View File

@ -0,0 +1,24 @@
<?xml version="1.0" ?>
<package>
<job id="postImage">
<script language="JScript">
<![CDATA[
var oShell = new ActiveXObject("wscript.shell");
var binDir = oShell.ExpandEnvironmentStrings("%JAVA_HOME%") + "\\jre\\bin\\";
var javaExe = binDir + "java.exe";
var javawExe = binDir + "javaw.exe";
var oFSO = new ActiveXObject("Scripting.FileSystemObject");
var oFolder = oFSO.getFolder(".");
var to = oFolder.path + "\\DemoBench\\runtime\\bin";
if (!oFSO.FolderExists(to)) {
oFSO.CreateFolder(to);
}
to += "\\";
oFSO.CopyFile(javaExe, to);
oFSO.CopyFile(javawExe, to);
]]>
</script>
</job>
</package>