Installbuilder installs the Linux desktop shortcut below, but not the Windows shortcut. I've tried every variation of escaping the characters (spaces, ™, etc.). I also tried file:// and file:/// Nothing works. The <startMenuShortcutList> link also does not work.

Help.

<desktopShortcutList>
    <linkShortcut>
        <comment>Term glossary for statistical machine translation (SMT)</comment>
        <icon></icon>
        <name>DoMY™ SMT Glossary</name>
        <platforms>linux linux-x64</platforms>
        <runAsAdmin>0</runAsAdmin>
        <runInTerminal>0</runInTerminal>
        <url>file://${installdir}/doc/domy-ce/DoMY™%20SMT%20Glossary.html</url>
        <windowsIcon></windowsIcon>
    </linkShortcut>
    <linkShortcut>
        <comment>Term glossary for statistical machine translation (SMT)</comment>
        <icon></icon>
        <name>DoMY™ SMT Glossary</name>
        <platforms>windows</platforms>
        <runAsAdmin>0</runAsAdmin>
        <runInTerminal>0</runInTerminal>
        <url>file:///${installdir}/corpusfg/doc/DoMY%E2%84%A2%20SMT%20Glossary.html</url>
        <windowsIcon></windowsIcon>
    </linkShortcut>
</desktopShortcutList>

asked 09 Jun '12, 12:02

tahoar's gravatar image

tahoar
201313236
accept rate: 42%


You should use <desktopShortcut> inside <desktopShortcutList> to create a desktop shortcut. For example:

<desktopShortcutList>
  <shortcut>
    <comment>${project.fullName}</comment>
    <exec>${installdir}/bin/application</exec>
    <icon>${installdir}/bin/logo.png</icon>
    <name>${project.fullName}</name>
    <windowsExec>${installdir}/bin/application.exe</windowsExec>
  </shortcut>
</desktopShortcutList>

This will create shortcut to bin/application on Unix systems and bin/application.exe on Windows.

link

answered 10 Jun '12, 05:02

wojciechka's gravatar image

wojciechka ♦♦
7.8k61122
accept rate: 26%

I'm not linking do an application, but to a document. I changed from <linkshortcut> to <fileshortcut> and it works.

(11 Jun '12, 02:04) tahoar

On 64-bit Windows XP if you go into Control Panel and Remove a program it also removes the "..\All Users\Desktop" folder if the program's shortcuts are the only shortcuts in that folder. When re-installing the program if the "..\All Users\Desktop" folder doesn't exist the Desktop icons will not be installed (i.e. when using the Wise Installer and perhaps other older installers).

On 64-bit Windows Vista and Windows 7 the "C:\Documents and Settings\All Users" folder no-longer exists. The new folder name is "C:\Users\Public", and therefore once again the Wise Installer and perhaps other old installers are not installing the Desktop shortcuts where they're supposed to be located.

Please address your Thank You notes to Bill Gates at Microsoft Corporation.

link

answered 28 Aug '12, 20:25

Starbuck's gravatar image

Starbuck
11
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×176
×41

Asked: 09 Jun '12, 12:02

Seen: 2,975 times

Last updated: 28 Aug '12, 20:28