Adding a shortcut to start menu

D

Dennis Heuer

Hello!

I need some help for adding a shortcut for my program to the start menu.
I know that there are some how-tos on MS website, but it's not working.
I have XPe SP2 and I try to add a shortcut in component designer.
To my program-component I add Shortcut resource with the following settings:

DstName = Programname.lnk
DstPath = %16409%
IconLocation: = ,0
TargetPath = %11%\Programname.exe
WindowStyle = 1
WorkDir = %11%

And I always got this error when I try to build my image:

Error 1004: Invalid resource: "Shortcut Name": (Error -2147024894
(0x80070002) in "": )

I looked up the internet for this message but I haven't found a
solution. What have I done wrong.

I hope somebody can help me!

Greetings,

Dennis
 
K

KM

Dennis,

I don't see anything wrong with the shortcut you created.
However, do you build an English image or some other locale? If other, you may want to chaneg the DstPath and hardcode there the
localized Desktop name.

KM
 
G

Guest

Hello Dennis,

I recently resolved an issue with shortcuts in my project.
I had the exact same error message from Target Designer.
On my target system the TargetPath resolved to a folder on D: drive.
On my development system D: was a CDROM drive.
I remapped my CDROM drive to another drive letter.
Then Target Designer nolonger reported an error with my shortcut.
I reported this as a bug to WECRT, but they have not responded so far.
I hope this helps.

Andrew
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top