Skip to content

Sets AppUserModel ID and ToastActivatorCLSID on a shortcut - the required properties for Win 8+ toast messages.

License

Notifications You must be signed in to change notification settings

safing/nsis-shortcut-properties

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Sets AppUserModel ID and ToastActivatorCLSID on a shortcut - the required properties for Win 8+ toast messages.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages