Added UnpinShortcut and NotifyShell_AssocChanged macros
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7183 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
ea50284c18
commit
3c47165946
6 changed files with 63 additions and 16 deletions
|
@ -21,14 +21,15 @@ RequestExecutionLevel Admin ; Request admin rights on WinVista+ (when UAC is tur
|
|||
InstallDir "$ProgramFiles\$(^Name)"
|
||||
InstallDirRegKey HKLM "${REGPATH_UNINSTSUBKEY}" "UninstallString"
|
||||
|
||||
!include LogicLib.nsh
|
||||
!include Integration.nsh
|
||||
|
||||
Page Directory
|
||||
Page InstFiles
|
||||
|
||||
Uninstpage UninstConfirm
|
||||
Uninstpage InstFiles
|
||||
|
||||
!include LogicLib.nsh
|
||||
|
||||
!macro EnsureAdminRights
|
||||
UserInfo::GetAccountType
|
||||
Pop $0
|
||||
|
@ -70,10 +71,11 @@ SectionEnd
|
|||
|
||||
|
||||
Section -Uninstall
|
||||
${UnpinShortcut} "$SMPrograms\${NAME}.lnk"
|
||||
Delete "$SMPrograms\${NAME}.lnk"
|
||||
|
||||
Delete "$InstDir\MyApp.exe"
|
||||
Delete "$InstDir\Uninst.exe"
|
||||
RMDir "$InstDir"
|
||||
DeleteRegKey HKLM "${REGPATH_UNINSTSUBKEY}"
|
||||
|
||||
Delete "$SMPrograms\${NAME}.lnk"
|
||||
SectionEnd
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue