I want to start my successfully installed Java program after the installation finished. I know how to do it in principle:
[Run]
FileName: "{app}\LaunchApp.bat"; Description: {cm:LaunchApp}; Flags: nowait postinstall skipifsilent
LaunchApp.bat:
start javaw -jar MyJar.jar Main
This way, the console window pops up for a short while, which is not very nice. Using links, this can be avoided. However, I don’t seem to be able to execute a link created in the [Icon] in the [Run] section.
Any suggestions how to solve this?
Try to add the
runhiddenflag. From the reference:So this should resolve your question: