PC Review


Reply
Thread Tools Rate Thread

Adding a shortcut to start menu

 
 
Dennis Heuer
Guest
Posts: n/a
 
      4th Jun 2005
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

 
Reply With Quote
 
 
 
 
KM
Guest
Posts: n/a
 
      4th Jun 2005
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
>



 
Reply With Quote
 
=?Utf-8?B?QW5kcmV3IFJveQ==?=
Guest
Posts: n/a
 
      6th Jun 2005
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
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setup project and adding a start menu shortcut MarkusJ_NZ Microsoft C# .NET 1 13th Aug 2007 07:55 AM
Adding shortcut to the Start Menu? eric Windows XP Customization 4 11th Dec 2006 10:52 AM
How do I repin a Start Menu shortcut back to my XP's Start Menu? Phillip Pi Windows XP Customization 6 26th Apr 2006 12:47 AM
Adding A Start Menu Shortcut Scott Windows XP New Users 10 16th May 2005 03:32 AM
Adding a shortcut in the start menu in PPC2003 PeterB Microsoft Dot NET Compact Framework 1 1st Oct 2003 07:15 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:47 AM.