adding the word “start” in batch file hides the dos window completely
e.g.
my startup.bat file looks like following
:run
if “%1” == “-debug” goto debug
start javaw -Dappdir=… -cp …/lib/windows/jmf.jar;…/lib/startup.jar;…/lib/windows/jdic.jar;…/resources; …/lib/windows; -Djava.library.path="…/lib/windows" org.jivesoftware.launcher.Startup
goto end
so remove the -noconsole from shortcutSpec.xml and modify the batch file with adding start and replace java with javaw
Although this hides the dos prompt but there is still a problem. after logging in , we have two Spark icons on the right hand side toolbar. and obviously one of them is that of the dos window.
`installer.izpack.exe:
[exec] Traceback (most recent call last):
[exec] File “C:\PROGRA~1\IzPack/utils/wrappers/izpack2exe/izpack2exe.py”, line 126, in
[exec] main()
[exec] File “C:\PROGRA~1\IzPack/utils/wrappers/izpack2exe/izpack2exe.py”, line 123, in main
[exec] create_exe(parse_options())
[exec] File “C:\PROGRA~1\IzPack/utils/wrappers/izpack2exe/izpack2exe.py”, line 77, in create_exe
[exec] subprocess.call(p7zcmd, shell=use_shell)
[exec] File “C:\Python27\lib\subprocess.py”, line 493, in call
[exec] return Popen(*popenargs, **kwargs).wait()
[exec] File “C:\Python27\lib\subprocess.py”, line 679, in init
[exec] errread, errwrite)
[exec] File “C:\Python27\lib\subprocess.py”, line 896, in _execute_child
[exec] startupinfo)
[exec] WindowsError: [Error 193] %1 is not a valid Win32 application