Closed EasyG0ing1 closed 1 year ago
Hi @EasyG0ing1! sorry for my late reply!
I think it's possible using a custom iss.vtl
template.
Just copy iss.vtl
file to ${project_root}/assets/windows
and change this line:
to:
Name: "{autodesktop}\Session Manager"; Filename: "{app}\{#MyAppExeName}"; IconFilename: "{app}\\${info.iconFile.name}"; Tasks: desktopicon
and the next time you build your app with JP it will use this template instead of the default one.
Maybe in the future we can add a new property to Windows specific configuration to set up the shortcut name.
I hope it helps!
Hi @EasyG0ing1! Did you finally manage to change shortcut name this way?
@fvarrui - Sorry, I just now saw this ... I will check this out and get back to you asap.
@fvarrui - I tested the iss.vtl
template as you instructed and it worked beautifully!
Thank you so much!
Maybe we can add a new option: displayName
, as a better human readable name, setting it to $name
by default?
@fvarrui - This can be easily done so that it is a setting in the pom file?
@fvarrui I'm tracing out the code now trying to understand it ... I'm going to submit this in a PR here very soon hopefully.
Fixed with PR #329
1.7.3 released to Maven Central
Is there a way to assign a name for the shortcut that is generated on the Desktop during a Windows install that is different than the name of the project? For example, suppose the project name is
SessionManager
but the shortcut that gets created gets word-wrapped so that the word session has the last few letters chopped down to the next line of the icon label. It would be nice to assign a different label for that icon (for exampleSession Manager
in this case so that it word wraps the label at the space making the appearance and the label of the icon more aesthetically pleasing for the end user.