![]() |
#1 |
Junior Member
Join Date: Dec 2009
Posts: 2
|
[Windows 7] Pin a program to the superbar
I finally found a way to pin exe files to the windows 7 superbar, so I share my method
![]() First, I made this little vbsript (Pin.vbs). code: And I made this two very little functions : code: Usage : code: (same with UnpinFromTaskbar) Feel free to improve this and, of course, reuse it if you need ![]() Note: "Pin to taskbar" and "Unpin from taskbar" may vary with windows language. I only check this on english and french language. You can find the good strings with this little script : code: |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,358
|
Verb's should also have a "internal" name that probably does not change with the language, but I'm not going to help you look for it because code like this is evil. The _USER_ should decide what is pinned, not your setup. (There is a reason that the pinned lists don't have a API you can call)
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#3 |
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
I'm with Anders on this one. This code is evil. Any program doing this on my Windows 7 will get itself uninstalled before it's even opened, followed by a couple of malware scans.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
![]() |
![]() |
![]() |
#4 |
Junior Member
Join Date: Dec 2009
Posts: 2
|
Well, the only user of my setup is me...for now.
Later it will be installed only in the company I work for. My boss wants this, so I found a (crappy) solution ![]() But if there is a more "proper" way to pin programs to the superbar, I'm open. Btw, I agree, this is evil for a public setup. |
![]() |
![]() |
![]() |
#5 |
Join Date: Sep 2003
Posts: 27,873
|
from my understanding, there's not meant to be a way for an app to pin itself or anything else - it's meant to be done by the user so there shouldn't be any true way of doing it.
-daz |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|