Thankfully I don't have that problem, because I happen to be doing my PB development on Windows Server, but deploying the compiled routine to Windows 11 and consequently it has a proper application name.Axolotl wrote: Thu Dec 07, 2023 3:50 pm When I run e.g. the help examaple code for AddSysTrayIcon the system creates a new key under HKCU\Control Panel\NotifyIconSettings\
(Unfortunately) with ExecutablePath = "....\AppData\Local\Temp\PureBasic_Compilation0.exe"
Anyway, yes, it's working and I've got my icon appearing just nicely. The way that I've programmed this, is that when the application starts, I send the icon to the system tray as a 1-second test. While the icon is displayed, I then promote it in the registry. Since this is a background task which begins when the user logs-in, the 1-second test is useful to ensure that it is working.

Incidentally, what is the relevance of the optional parameter ComputerName.s in the code?