The following comment has been added to this issue: Author: dion gillard Created: Thu, 1 Jul 2004 9:40 PM Body: Is this in the startmenu-shortcuts.nsh file?
If it is, you can use any of the variables defined in the project.jelly template, e.g. !define ORGANIZATION "${pom.organization}" !define PROJECT_BUILD_DIR "${build}" !define PROJECT_FINAL_NAME "${maven.final.name}" !define PROJECT_LICENSE_FILE "${license}" !define PROJECT_LICENSE_TEXT "${maven.nsis.license.text}" !define PROJECT_NAME "${pom.name}" !define PROJECT_REG_KEY "SOFTWARE\${pom.organization}\${pom.name}\${pom.currentVersion}" !define PROJECT_REG_UNINSTALL_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${pom.name} ${pom.version}" !define PROJECT_STARTMENU_FOLDER "$$SMPROGRAMS\${pom.organization}\${pom.name} ${pom.currentVersion}" !define PROJECT_VERSION "${pom.currentVersion}" !define PROJECT_DIST_DIR "${maven.dist.bin.assembly.dir}" !define PROJECT_LOGO "${logo}" e.g. $PROJECT_VERSION --------------------------------------------------------------------- View this comment: http://jira.codehaus.org/browse/MPNSIS-4?page=comments#action_21281 --------------------------------------------------------------------- View the issue: http://jira.codehaus.org/browse/MPNSIS-4 Here is an overview of the issue: --------------------------------------------------------------------- Key: MPNSIS-4 Summary: shortcut to the executable jar not needed to be hard coded Type: Wish Status: Open Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: maven-nsis-plugin Assignee: dion gillard Reporter: Geoffrey Created: Thu, 1 Jul 2004 2:58 PM Updated: Thu, 1 Jul 2004 9:40 PM Description: Currently I am hardcoding a shortcut to the executable jar: CreateShortCut "${PROJECT_STARTMENU_FOLDER}\NetworkTools.lnk" "$INSTDIR\NetworkTools-1.2.1.jar" "" "$INSTDIR" 0 Problem here is the version number: "1.2.1", this is of course dynamic. Also the jar name could depend on the pom :) Maybe I am overlooking a way to do this dynamic? Low documentation makes this wonderfull plugin underused. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]