Topic: AddPin - could not find the way to make it work with icon parameter  (Read 74 times)

50vince50

  • Jr. Chef
  • **
  • Date Registered: Jun 2020
  • Posts: 15
Hello all!
I couldn't find how to use AddPin with an icon !
I am trying to pin to StartMenu the SlideToShutDown executable. I saw how you use Addshortcut, so I tried the same structure, and checking with the "Add_Pin" documentation that I found

I tried this:
AddPin,StartMenu,,%SystemRoot%\System32\%ProgramEXE%,,,,%WinDir%\System32\shell32.dll|27

It has created an entry in the PinUtil section of pecmd.ini
StartMenu2=%SystemRoot%\System32\SlideToShutDown.exe

As you can see, the System32\shell32.dll|27 is omitted. So I get the item in start menu, but with the standard icon of any exe (that has no icon)

How can I edit the StartMenu2=... entry to get the icon?


Re: AddPin - could not find the way to make it work with icon parameter
« Reply #1 on: June 25, 2020, 12:53:32 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
AddPin does not work in the manner in which you are trying to use............

Re: AddPin - could not find the way to make it work with icon parameter
« Reply #2 on: June 25, 2020, 02:38:36 PM »

50vince50

  • Jr. Chef
  • **
  • Date Registered: Jun 2020
  • Posts: 15
Ah... I thought it would be similar to Add_Pin:
Add_Pin,Type,[Order],Path,[Title],[WorkFolder],[Parameters],[Icon],[StartMode],[ToolTipText]

So actually, i can't put an icon ?

Re: AddPin - could not find the way to make it work with icon parameter
« Reply #3 on: June 25, 2020, 02:45:14 PM »

50vince50

  • Jr. Chef
  • **
  • Date Registered: Jun 2020
  • Posts: 15
Anyway, it's minor importance!
Thanks James!

 

Powered by EzPortal