Hi,
I bought Advanced Installer primarily because of its simple "Single Instance" mode for Java (secondaryMain). However, it does not work as advertised in command line mode!
The problems are as follows:
(1) The java launcher returns immediately, while it should wait for secondaryMain to return.
(2) Standard-in, -out, -err are still that of first, rather than second, launcher.
(3) Exit-code (return value of secondaryMain) is not returned.
This renders the "Single Instance" mode useless for command line mode, i.e., only useful when registering file extensions.
This is not as advertised!
When will you fix the above problems?
(I am aware that, for backwards-compatibilty, you may have to introduce a secondaryMainBlocking or secondaryMainCLI method -- however, on the other side, probaly nobody has been made use of this feature in CLI).
Let me add that Single Instance mode for command line tools would be extremely beneficial to boost popularity of your tool - simply because the start-up time of the JDK is that high - think of scripts and how they could become 10 times faster!
Regards,
Falk