The Oven

Project World => Win10XPE HomePage => Topic started by: 50vince50 on June 25, 2020, 12:36:58 PM

Title: AddPin - could not find the way to make it work with icon parameter
Post by: 50vince50 on June 25, 2020, 12:36:58 PM
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?

Title: Re: AddPin - could not find the way to make it work with icon parameter
Post by: James on June 25, 2020, 12:53:32 PM
AddPin does not work in the manner in which you are trying to use............
Title: Re: AddPin - could not find the way to make it work with icon parameter
Post by: 50vince50 on June 25, 2020, 02:38:36 PM
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 ?
Title: Re: AddPin - could not find the way to make it work with icon parameter
Post by: 50vince50 on June 25, 2020, 02:45:14 PM
Anyway, it's minor importance!
Thanks James!