Spaces in $INSTDIR path causes problems
When a user selects an install directory that has spaces in the path (i.e., C:\Documents and Settings it is causing me multiple problems.
For example, I have the following piece of code in my script to create a start menu item that kicks off a Java application. When there are no spaces in the install directories path, it works perfect. When there are spaces, it fails.
CreateShortCut "$SMPROGRAMS\KAST\MyJ******gram.lnk" \
"-cp INSTDIR\config;$INSTDIR\lib\rjicons.jar;$INSTDIR\lib\kast-flashback.jar;$INSTDIR\lib\kast-core.jar kast.client.CommandLine watchdog" \
Hopefully the formatting will look ok on that.
Two things happen when there is a space:
1) The icon (earth.ico) does not show up on the start menu item.
2) The java application will not execute. Instead an error message is shown which says "Can't find main class".