WinShell plug-in - NSIS document.documentElement.className="client-js";RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"asiq39Udwkjzo-cfD64PMQAAAFA","wgCSPNonce":false,"wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"WinShell_plug-in","wgTitle":"WinShell plug-in","wgCurRevisionId":25687,"wgRevisionId":25687,"wgArticleId":5133,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Plugins"],"wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"WinShell_plug-in","wgRelevantArticleId":5133,"wgIsProbablyEditable":false,"wgRelevantPageIsProbablyEditable":false,"wgRestrictionEdit":[],"wgRestrictionMove":[]};RLSTATE={"site.styles":"ready","user.styles":"ready","user":"ready","user.options":"loading","skins.monobook.styles":"ready"}; RLPAGEMODULES=["site","mediawiki.page.ready","mediawiki.toc","skins.monobook.scripts"]; (RLQ=window.RLQ||[]).push(function(){mw.loader.implement("user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"});});}); WinShell plug-in From NSIS Wiki Jump to navigationJump to search Author: Anders (talk, contrib) Contents 1 Plugin Info 2 Information 3 Usage Example 4 System plug-in alternative 5 Credits Plugin Info Version: 20121005 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 CreateShortcut "$SMPrograms\MyApp.lnk" "$Instdir\MyApp.exe" WinShell::SetLnkAUMI "$SMPrograms\MyApp.lnk" "${MyApp_AppUserModelId}" SectionEnd     Section Uninstall WinShell::UninstAppUserModelId "${MyApp_AppUserModelId}"   WinShell::UninstShortcut "$SMPrograms\MyApp.lnk" Delete "$SMPrograms\MyApp.lnk" SectionEnd System plug-in alternative !include "Win\COM.nsh" !include LogicLib.nsh   Section Uninstall !insertmacro ComHlpr_CreateInProcInstance ${CLSID_DestinationList} ${IID_ICustomDestinationList} r1 "" ${If} $1 P<> 0 ${ICustomDestinationList::DeleteList} $1 '("${MyApp_AppUserModelId}")' ${IUnknown::Release} $1 "" ${EndIf}   !insertmacro ComHlpr_CreateInProcInstance ${CLSID_ApplicationDestinations} ${IID_IApplicationDestinations} r1 "" ${If} $1 P<> 0 ${IApplicationDestinations::SetAppID} $1 '("${MyApp_AppUserModelId}")i.r0' ${If} $0 >= 0 ${IApplicationDestinations::RemoveAllDestinations} $1 '' ${EndIf} ${IUnknown::Release} $1 "" ${EndIf}   !include Integration.nsh ${UnpinShortcut} "$SMPrograms\MyApp.lnk" Delete "$SMPrograms\MyApp.lnk" SectionEnd Credits Written by Anders (For fun and profit?) Retrieved from "https://nsis.sourceforge.io/mediawiki/index.php?title=WinShell_plug-in&oldid=25687" Category: Plugins Navigation menu Page actions PageCommentReadView sourceHistory Page actions PageCommentMoreTools Personal tools Create accountLog in Website navigation Main PageNewsFeaturesScreenshotsNSIS 2LicenseDocumentationSupportCommunityFAQBug ReportsRequestsDeveloper CenterPlug-insTutorialsExamplesDownloadSpecial BuildsDevelopment FilesUsersContactWiki Information Search Tools What links hereRelated changesSpecial pagesPrintable versionPermanent linkPage information This page was last edited on 7 June 2021, at 22:01.Content is available under zlib/libpng license unless otherwise noted. Privacy policyAbout NSIS WikiDisclaimers (RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgPageParseReport":{"limitreport":{"cputime":"0.030","walltime":"0.042","ppvisitednodes":{"value":42,"limit":1000000},"postexpandincludesize":{"value":179,"limit":2097152},"templateargumentsize":{"value":24,"limit":2097152},"expansiondepth":{"value":3,"limit":100},"expensivefunctioncount":{"value":0,"limit":100},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":5067,"limit":5000000},"timingprofile":["100.00% 8.580 1 Template:PageAuthor","100.00% 8.580 1 -total"]},"cachereport":{"timestamp":"20261008154434","ttl":86400,"transientcontent":false}}});mw.config.set({"wgBackendResponseTime":278});});