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