Adding a shortcut to start menu



Dennis Heuer
07-09-2005, 09:26 PM
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

KM
07-09-2005, 09:26 PM
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

> 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
>

Andrew Roy
07-09-2005, 09:26 PM
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

"Dennis Heuer" wrote:

> 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
>
>


Adding a shortcut to start menu