Pinned icons in the taskbar

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

May 6, 2019 - 12:04

Good morning,
I reused the code from the Thunderbird package to add a Firefox icon to the taskbar, and at the same time remove the IE icon. The IE icon disappears, but the Firefox icon doesn't appear in the taskbar, even though the .lnk file is correctly located in "C:\Users\username\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar". If I manually pin the Firefox shortcut, it works.

Code: Select all

def session_setup():
    firefox_quickLaunch = makepath(user_appdata(),'Microsoft','Internet Explorer','Quick Launch', 'User Pinned', 'TaskBar', 'Mozilla firefox.Lnk')
    ie_quickLaunch = makepath(user_appdata(),'Microsoft','Internet Explorer','Quick Launch', 'User Pinned', 'TaskBar', 'Internet Explorer.Lnk')

    if iswin64:
        destdir64 = makepath(programfiles,'Mozilla Firefox')
        if isfile(makepath(destdir64,'firefox.exe')):
            create_shortcut(firefox_quickLaunch,target=makepath(destdir64,'firefox.exe'), wDir=makepath(destdir64),icon=makepath(destdir64,'firefox.exe'))
    else:
        destdir32 = makepath(programfiles32,'Mozilla Firefox')
        if isfile(makepath(destdir32,'firefox.exe')):
            create_shortcut(firefox_quickLaunch,target=makepath(destdir32,'firefox.exe'), wDir=makepath(destdir32),icon=makepath(destdir32,'firefox.exe'))

    if isfile(ie_quickLaunch):
        remove_file(ie_quickLaunch)
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

May 24, 2019 - 1:29 PM

In Thunderbird, replace if present:

To add ...:

https://social.technet.microsoft.com/Fo ... progeneral
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

May 24, 2019 - 1:40 PM

Hey, after searching for a while I just discovered Syspin

http://www.technosys.net/products/utils/pintotaskbar

Code: Select all

syspin "C:\Program Files (x86)\wapt\waptself.exe" c:5386
Launch in setup session

We would need to dig a little deeper to understand how the little software program works.
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

May 27, 2019 - 3:43 PM

Thanks for the link! It does indeed work well with Firefox or Calc, for example, but strangely I can't get it to work with Windows Explorer on the last line...

Code: Select all

run(ur'syspin.exe "%s" c:5386' %makepath(programfiles,'Mozilla Firefox',"firefox.exe"))
run(ur'syspin.exe "%windir%\System32\calc.exe" c:5386')

run(ur'syspin.exe "%windir%\explorer.exe" c:5386')
nliaudat
Messages: 29
Registration: August 8, 2019 - 8:31 AM

January 23, 2020 - 5:28 PM

reverse engineered version of syspin.exe available at https://github.com/airwolf2026/Win10Pin2TB
nliaudat
Messages: 29
Registration: August 8, 2019 - 8:31 AM

March 12, 2020 - 3:56 PM

The official method suggests modifying C:\Users\%username%\AppData\Roaming\Microsoft\Windows\Shell\LayoutModification.xml

For example

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<LayoutModificationTemplate
    xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification"
    xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout"
    xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout"
    xmlns:taskbar="http://schemas.microsoft.com/Start/2014/TaskbarLayout"
    Version="1">
  <CustomTaskbarLayoutCollection PinListPlacement="Replace">
    <defaultlayout:TaskbarLayout>
      <taskbar:TaskbarPinList>
        <taskbar:DesktopApp DesktopApplicationLinkPath="%APPDATA%\Microsoft\Windows\Start Menu\Programs\System Tools\File Explorer.lnk" />
      </taskbar:TaskbarPinList>
    </defaultlayout:TaskbarLayout>
  </CustomTaskbarLayoutCollection>
</LayoutModificationTemplate>
It replaces the taskbar and just adds the link to the file explorer.

More information on https://docs.microsoft.com/en-us/window ... 10-taskbar
Locked