Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 1.63 KB

README.md

File metadata and controls

18 lines (13 loc) · 1.63 KB

This header file sets the AppUserModel_ID and the AppUserModel_ToastActivatorCLSID as file properties on a specified existing shortcut with the purpose to enable toast notifications. The registry key needs to be set manually like seen in the demo (but thats not difficult in comparison to the rest).

The CLSID is a GUID that should be totally unique for a software version. You maybe also need to set the CLSID in the code that you use to create toast notifications.

C++-Implementations:

NSIS Implementation:

This headerfile sets the properties using the System plugin (which is shipped with the installer by default). This removes the need to call an external setup routine during install for setting the shortcut properties.

The system plugin is pretty low-level and poorly documented. Because of this, even more effort was put into documenting this headerfile.

Displaying Properties in File Manager:

In my opinion, the easiest way to check&set the file properties for debugging purposes was to download the .reg-file from here, to add the needed properties to every line of the file and execute the file.