Dealing with Shortcuts and Java Upgrades
I am curious if anyone has a solution for this scenario, or an alternative way of creating java launch shortcuts
. During our install we verify a minimum JRE version is installed
. We grab the path to that JRE
. We place that path in a desktop launch shortcut (eg "$JreHome\bin\javaw.exe foo.jar")
My concern is that the uninstall, or upgrade, of the JRE will potentially break this, or not allow the user to make use of an upgrade (if they place it in a different directory).
Here is how we create the shortcut:
CreateShortcut "$INSTDIR\${APPLICATION_NAME}.lnk" "$JreHome\bin\javaw.exe" \
"-jar foo.jar ." "$INSTDIR\some.ico"