WinShell plug-in: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
m (Fixed download) |
(New version and better description) |
||
Line 2: | Line 2: | ||
== Plugin Info == | == Plugin Info == | ||
* '''Version:''' | * '''Version:''' 20140918 | ||
* '''Type:''' Runtime plugin | * '''Type:''' Runtime plugin | ||
* '''Character encoding:''' Ansi | * '''Character encoding:''' Ansi & Unicode | ||
* '''Minimum OS:''' Win95/NT4 | * '''Minimum OS:''' Win95/NT4 | ||
* '''Minimum NSIS Version:''' 2.0 | * '''Minimum NSIS Version:''' 2.0 | ||
* '''License:''' Freeware | * '''License:''' Freeware | ||
* '''Download:''' <attach>WinShell.zip</attach> | * '''Download:''' <attach>WinShell.zip</attach> | ||
== Information == | |||
SetLnkAUMI sets the PKEY_AppUserModel_ID property on a shortcut. | |||
UninstAppUserModelId calls IApplicationDestinations::RemoveAllDestinations and ICustomDestinationList::DeleteList. | |||
UninstShortcut calls IStartMenuPinnedList::RemoveFromList. | |||
== Usage Example == | == Usage Example == |
Revision as of 18:54, 18 September 2014
Author: Anders (talk, contrib) |
Plugin Info
- Version: 20140918
- Type: Runtime plugin
- Character encoding: Ansi & Unicode
- Minimum OS: Win95/NT4
- Minimum NSIS Version: 2.0
- License: Freeware
- Download: WinShell.zip (2 KB)
Information
SetLnkAUMI sets the PKEY_AppUserModel_ID property on a shortcut.
UninstAppUserModelId calls IApplicationDestinations::RemoveAllDestinations and ICustomDestinationList::DeleteList.
UninstShortcut calls IStartMenuPinnedList::RemoveFromList.
Usage Example
!define MyApp_AppUserModelId "MyCompany.MyApp.xyz" Section Install CreateDirectory "$SMPrograms\MyApp" CreateShortcut "$SMPrograms\MyApp\MyApp.lnk" "$Instdir\MyApp.exe" WinShell::SetLnkAUMI "$SMPrograms\MyApp\MyApp.lnk" "${MyApp_AppUserModelId}" SectionEnd Section Uninstall WinShell::UninstAppUserModelId "${MyApp_AppUserModelId}" WinShell::UninstShortcut "$SMPrograms\MyApp\MyApp.lnk" Delete "$SMPrograms\MyApp\MyApp.lnk" SectionEnd
Credits
Written by Anders (For fun and profit?)