I have a Java project I am successfully installing, but as we must pass command line parameters, I have to use a shortcut to launch the application.
To prevent users from accidentally trying to run the executable directly, I tried moving the executable to a subdirectory in the installation folder.
I moved both the 64K auto-created .exe file and also the associated .ini file to a subdirectory. (In the Files and Folders view, dragging the .exe to a new directory automatically moves the .ini file there, as well.)
When I try to launch the application, I always get an error stating the JVM cannot be found (we are bundling the JVM and I am installing to a machine with no pre-existing JVMs)
When I move the exe and ini back to the TARGETDIR location and run the shortcut, the application finds the JVM and runs fine.
I've tried playing with the working directory in the shortcut, but that doesn't appear to help.
How can I hide or otherwise obscure the .exe file so that users don't try to launch the application in a way that doesn't pass the command line params?