WinShell plug-in: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
(Created page with "{{PageAuthor|Anders}} == Plugin Info == * '''Version:''' 20110223 * '''Type:''' Runtime plugin * '''Character encoding:''' Ansi * '''Minimum OS:''' Win95/NT4 * '''Minimum NSIS V...")
 
m (Fixed download)
Line 8: Line 8:
* '''Minimum NSIS Version:''' 2.0
* '''Minimum NSIS Version:''' 2.0
* '''License:''' Freeware
* '''License:''' Freeware
* '''Download:''' <attach>WinShell.zip‎</attach>
* '''Download:''' <attach>WinShell.zip</attach>


== Usage Example ==
== Usage Example ==

Revision as of 23:16, 29 July 2011

Author: Anders (talk, contrib)


Plugin Info

  • Version: 20110223
  • Type: Runtime plugin
  • Character encoding: Ansi
  • Minimum OS: Win95/NT4
  • Minimum NSIS Version: 2.0
  • License: Freeware
  • Download: WinShell.zip (2 KB)

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?)