Archive: shortcuts Question


shortcuts Question
Hi

I have an application for which i have $SMPROGRAMS shortcuts to launch the application.

i.e.
CreateShortCut "$SMPROGRAMS\My Program\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
This works well.

I have been trying to add the Version number of the application to make it show in the $SMPROGRAMS shortcuts.
I have been able to add the Version number to the directory but can not have it appear on the shortcuts, I am trying to add it just the same way as I add it to the directory.

Like this for the Directory which works fine:
CreateDirectory "$SMPROGRAMS\My Program ${version}"

and like this for the shortcut which fails to add the version info on to My Program
CreateShortCut "$SMPROGRAMS\My Program ${version}\Uninstall.lnk" "$INSTDIR\uninst.exe"

Is this possable to do this with shortcuts, I would have thought it was as it is a string being added to a string,I would be thankful for any help or if any one can show me what I am doing wrong.


Many Thanks

:confused:


Yes it should be fine. Make sure the directory is created and make sure that ${version} has a value when the shortcuts are created.

Stu


Thanks for the reply Afrow, I am still having a problem as it will write the version number to the $SMPROGRAMS
However it wont write it to the shortcuts in $SMPROGRAMS for example I can get My Program 1.0.0.0,
then in the drop down menu displaying the shortcuts My Program, Uninstall, it doesent add the version number, still will have another look at it must be missing something that I should see, will let you know again many thanks.