Pin to Taskbar Question on Windows 11 23H2

SD-ITLab

New Member
Hello Dear Community,

The time has come, Windows 11 23H2 is here and of course the first annoying changes are coming...

I have a custom script to install some programs quickly without the need for user interaction.

Example:
Start-Process -Wait -FilePath .\Setups\chrome*.exe -Argument "/silent /install" -PassThru | Out-Null


Problem is now with the 23H2, when installing a program you are asked if you want to pin the program to the taskbar or not.
I would like to skip the whole thing and sort of force it to be pinned to the taskbar.

Programs that should be pinned to the taskbar would be the following:
Mozilla Firefox and Thunderbird.
(Google Chrome, only if possible)

Maybe one of you has a corresponding idea because he has already dealt with 23H2.

LG TrelLyX
 
Standalone installers for Firefox & Thunderbird will pin themselves to the taskbar, but not the MSI.
"Firefox Setup 118.0.1.exe" /s
"Thunderbird Setup 115.3.1.exe" /s


https://bugzilla.mozilla.org/show_bug.cgi?id=1771951

We already do this on Windows 7 & 8, and want to do similar for Windows 10 & 11.

We have code for doing this in the installer but it only works on older versions of Windows 10 (<1903). We have code in Firefox pinning on more recent versions, but it has not been ported to the installer yet.

Independent of Windows versions, we need to consider a few install scenarios: stub, full, and MSI installs.

I would recommend that follow what we already do with creating Desktop and Start Menu shortcuts. That is to say:
  • In the stub installer, we just pin without presenting any option.
  • In the full installer, we should pin by default and allow opt-out through the INI file and the GUI.
  • The MSI will not support pinning (because it elevates prior to installation, we are unable to do so -- this is also the case on Windows 7 & 8 currently)
If we decide to try to uplift for this 102, we could punt on the GUI opt-out in the full installer to avoid a late string addition (but include it with 103).

As for Google Chrome /shrug...
 
Hello Dear Community,

The time has come, Windows 11 23H2 is here and of course the first annoying changes are coming...

I have a custom script to install some programs quickly without the need for user interaction.

Example:
Start-Process -Wait -FilePath .\Setups\chrome*.exe -Argument "/silent /install" -PassThru | Out-Null


Problem is now with the 23H2, when installing a program you are asked if you want to pin the program to the taskbar or not.
I would like to skip the whole thing and sort of force it to be pinned to the taskbar.

Programs that should be pinned to the taskbar would be the following:
Mozilla Firefox and Thunderbird.
(Google Chrome, only if possible)

Maybe one of you has a corresponding idea because he has already dealt with 23H2.

LG TrelLyX
Hi, I have not yet tried Win11 23H2, but this Microsoft article may help you pin specific apps to the taskbar (it works with 22H2). If it is not possible to pin the apps via the installers, I think this alternative method may be useful.
 
Last edited:
Thanks for your responses, maybe I wasn't very clear.

I have my own script to install my programs on the new PC's in our company:

See here (Attention, this is in German).

This also worked without problems in Windows 10 and 11 22H2
So also the icons of Firefox and Thunderbird were pinned to the taskbar.

Since Win11 23H2, however, changes have been made so that after an installation you are always asked if you want to pin the app to the taskbar.

Therefore, the question if anyone has had the same experience and has already changed
 
The script doesn't matter.
I can confirm the first time you install Firefox or Thunderbird on 23H2, a notification appears:

1696716238942.png

If you don't agree to Yes, then no notifications will ever appear again -- even if you uninstall the apps, and reinstall them. I would say Mozilla needs to go back and figure out what's happening here.

"Firefox Setup 118.0.1.exe /s /TaskbarShortcut" also doesn't work.
 
I don't think you answered the original question: how do you prevent the notification spam?

You can use a custom layout XML, but that example removes all other pinned apps except for Explorer and Firefox. While it works, you would have to explain how to add apps by AppID or AUMID, for someone who wants other pinned apps.
 
This one only adds firefox to taskbar without touching default taskbar
<?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> <defaultlayout:TaskbarLayout> <taskbar:TaskbarPinList> <taskbar:DesktopApp DesktopApplicationID="308046B0AF4A39CB" /> </taskbar:TaskbarPinList> </defaultlayout:TaskbarLayout> </CustomTaskbarLayoutCollection> </LayoutModificationTemplate>

will change the post and add this one actually
 
Back
Top